OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 | 6 |
7 # nacl-dreadthread.sh | 7 # nacl-dreadthread.sh |
8 # | 8 # |
9 # usage: nacl-dreadthread.sh | 9 # usage: nacl-dreadthread.sh |
10 # | 10 # |
(...skipping 15 matching lines...) Expand all Loading... |
26 ${NACLCC} -c ${START_DIR}/dread_chain.c -o dread_chain.o | 26 ${NACLCC} -c ${START_DIR}/dread_chain.c -o dread_chain.o |
27 ${NACLAR} rcs libdreadthread.a \ | 27 ${NACLAR} rcs libdreadthread.a \ |
28 dread.o \ | 28 dread.o \ |
29 dread_chain.o | 29 dread_chain.o |
30 ${NACLRANLIB} libdreadthread.a | 30 ${NACLRANLIB} libdreadthread.a |
31 } | 31 } |
32 | 32 |
33 CustomInstallStep() { | 33 CustomInstallStep() { |
34 Banner "Installing ${PACKAGE_NAME}" | 34 Banner "Installing ${PACKAGE_NAME}" |
35 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" | 35 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" |
36 cp ${PACKAGE_DIR}/libdreadthread.a ${NACL_SDK_USR_LIB} | 36 cp ${PACKAGE_DIR}/libdreadthread.a ${NACLPORTS_LIBDIR} |
37 cp ${START_DIR}/dreadthread.h ${NACL_SDK_USR_INCLUDE} | 37 cp ${START_DIR}/dreadthread.h ${NACLPORTS_INCLUDE} |
38 cp ${START_DIR}/dreadthread_ctxt.h ${NACL_SDK_USR_INCLUDE} | 38 cp ${START_DIR}/dreadthread_ctxt.h ${NACLPORTS_INCLUDE} |
39 cp ${START_DIR}/dreadthread_chain.h ${NACL_SDK_USR_INCLUDE} | 39 cp ${START_DIR}/dreadthread_chain.h ${NACLPORTS_INCLUDE} |
40 DefaultTouchStep | 40 DefaultTouchStep |
41 } | 41 } |
42 | 42 |
43 CustomPackageInstall() { | 43 CustomPackageInstall() { |
44 DefaultPreInstallStep | 44 DefaultPreInstallStep |
45 CustomBuildStep | 45 CustomBuildStep |
46 CustomInstallStep | 46 CustomInstallStep |
47 DefaultCleanUpStep | 47 DefaultCleanUpStep |
48 } | 48 } |
49 | 49 |
50 CustomPackageInstall | 50 CustomPackageInstall |
51 exit 0 | 51 exit 0 |
OLD | NEW |