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-gtest-1.5.0.sh | 7 # nacl-gtest-1.5.0.sh |
8 # | 8 # |
9 # usage: nacl-gtest-1.5.0.sh | 9 # usage: nacl-gtest-1.5.0.sh |
10 # | 10 # |
(...skipping 14 matching lines...) Expand all Loading... |
25 export CXX=${NACLCXX} | 25 export CXX=${NACLCXX} |
26 export AR=${NACLAR} | 26 export AR=${NACLAR} |
27 export RANLIB=${NACLRANLIB} | 27 export RANLIB=${NACLRANLIB} |
28 export PATH=${NACL_BIN_PATH}:${PATH}; | 28 export PATH=${NACL_BIN_PATH}:${PATH}; |
29 export LIB_GTEST=libgtest.a | 29 export LIB_GTEST=libgtest.a |
30 | 30 |
31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
32 } | 32 } |
33 | 33 |
34 CustomInstallStep() { | 34 CustomInstallStep() { |
35 Remove ${NACL_SDK_USR_INCLUDE}/gtest | 35 Remove ${NACLPORTS_INCLUDE}/gtest |
36 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 36 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
37 (ChangeDir include; tar cf - --exclude='gtest-death-test.h' --exclude='gtest-d
eath-test-internal.h' gtest | (ChangeDir ${NACL_SDK_USR_INCLUDE}; tar xfp -)) | 37 (ChangeDir include; tar cf - --exclude='gtest-death-test.h' --exclude='gtest-d
eath-test-internal.h' gtest | (ChangeDir ${NACLPORTS_INCLUDE}; tar xfp -)) |
38 Remove ${NACL_SDK_USR_LIB}/${LIB_GTEST} | 38 Remove ${NACLPORTS_LIBDIR}/${LIB_GTEST} |
39 install -m 644 ${LIB_GTEST} ${NACL_SDK_USR_LIB}/${LIB_GTEST} | 39 install -m 644 ${LIB_GTEST} ${NACLPORTS_LIBDIR}/${LIB_GTEST} |
40 DefaultTouchStep | 40 DefaultTouchStep |
41 } | 41 } |
42 | 42 |
43 CustomPackageInstall() { | 43 CustomPackageInstall() { |
44 DefaultPreInstallStep | 44 DefaultPreInstallStep |
45 DefaultDownloadStep | 45 DefaultDownloadStep |
46 DefaultExtractStep | 46 DefaultExtractStep |
47 DefaultPatchStep | 47 DefaultPatchStep |
48 CustomConfigureStep | 48 CustomConfigureStep |
49 DefaultBuildStep | 49 DefaultBuildStep |
50 CustomInstallStep | 50 CustomInstallStep |
51 DefaultCleanUpStep | 51 DefaultCleanUpStep |
52 } | 52 } |
53 | 53 |
54 CustomPackageInstall | 54 CustomPackageInstall |
55 exit 0 | 55 exit 0 |
OLD | NEW |