1 # Copyright (c) 2012 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 'target_name': 'libraries-test', 9 'type': 'executable', 10 'sources': [ 11 'hello.cc', 12 ], 13 'link_settings': { 14 'libraries': [ 15 'libcrypto.dylib', 16 ], 17 }, 18 }, 19 { 20 # This creates a static library and puts it in a nonstandard location for 21 # libraries-search-path-test. 22 'target_name': 'mylib', 23 'type': 'static_library', 24 'sources': [ 25 'mylib.c', 26 ], 27 'postbuilds': [ 28 { 29 'postbuild_name': 'Make a secret location', 30 'action': [ 31 'mkdir', 32 '-p', 33 '${SRCROOT}/../secret_location', 34 ], 35 }, 36 { 37 'postbuild_name': 'Copy to secret location, with secret name', 38 'action': [ 39 'cp', 40 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}', 41 '${SRCROOT}/../secret_location/libmysecretlib.a', 42 ], 43 }, 44 ], 45 }, 46 { 47 'target_name': 'libraries-search-path-test', 48 'type': 'executable', 49 'dependencies': [ 'mylib' ], 50 'sources': [ 51 'hello.cc', 52 ], 53 'xcode_settings': { 54 'LIBRARY_SEARCH_PATHS': [ 55 '<(DEPTH)/secret_location', 56 ], 57 }, 58 'link_settings': { 59 'libraries': [ 60 'libmysecretlib.a', 61 ], 62 }, 63 }, 64 ], 65 } 66