OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. 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 set -e | 6 set -e |
| 7 |
7 # For some reason, Xcode doesn't set MACH_O_TYPE for non-bundle executables. | 8 # For some reason, Xcode doesn't set MACH_O_TYPE for non-bundle executables. |
8 # Check for "not set", not just "empty": | 9 # Check for "not set", not just "empty": |
9 [[ ! $MACH_O_TYPE && ${MACH_O_TYPE-_} ]] | 10 [[ ! $MACH_O_TYPE && ${MACH_O_TYPE-_} ]] |
10 test $PRODUCT_TYPE = com.apple.product-type.tool | 11 test $PRODUCT_TYPE = com.apple.product-type.tool |
11 test $PRODUCT_NAME = nonbundle_executable | 12 test $PRODUCT_NAME = nonbundle_executable |
12 test $FULL_PRODUCT_NAME = nonbundle_executable | 13 test $FULL_PRODUCT_NAME = nonbundle_executable |
13 | 14 |
14 test $EXECUTABLE_NAME = nonbundle_executable | 15 test $EXECUTABLE_NAME = nonbundle_executable |
15 test $EXECUTABLE_PATH = nonbundle_executable | 16 test $EXECUTABLE_PATH = nonbundle_executable |
16 [[ ! $WRAPPER_NAME && ${WRAPPER_NAME-_} ]] | 17 [[ ! $WRAPPER_NAME && ${WRAPPER_NAME-_} ]] |
17 | 18 |
18 [[ ! $DYLIB_INSTALL_NAME_BASE && ${DYLIB_INSTALL_NAME_BASE-_} ]] | 19 [[ ! $DYLIB_INSTALL_NAME_BASE && ${DYLIB_INSTALL_NAME_BASE-_} ]] |
19 [[ ! $LD_DYLIB_INSTALL_NAME && ${LD_DYLIB_INSTALL_NAME-_} ]] | 20 [[ ! $LD_DYLIB_INSTALL_NAME && ${LD_DYLIB_INSTALL_NAME-_} ]] |
20 | 21 |
21 # Should be set, but empty. | 22 source "$(dirname "$0")/test_check_sdkroot.sh" |
22 [[ ! $SDKROOT && ! ${SDKROOT-_} ]] | |
OLD | NEW |