OLD | NEW |
(Empty) | |
| 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 'libfl.a', |
| 17 ], |
| 18 }, |
| 19 }, |
| 20 { |
| 21 # This creates a static library and puts it in a nonstandard location for |
| 22 # libraries-search-path-test. |
| 23 'target_name': 'mylib', |
| 24 'type': 'static_library', |
| 25 'sources': [ |
| 26 'mylib.c', |
| 27 ], |
| 28 'postbuilds': [ |
| 29 { |
| 30 'postbuild_name': 'Make a secret location', |
| 31 'action': [ |
| 32 'mkdir', |
| 33 '-p', |
| 34 '${SRCROOT}/../secret_location', |
| 35 ], |
| 36 }, |
| 37 { |
| 38 'postbuild_name': 'Copy to secret location, with secret name', |
| 39 'action': [ |
| 40 'cp', |
| 41 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}', |
| 42 '${SRCROOT}/../secret_location/libmysecretlib.a', |
| 43 ], |
| 44 }, |
| 45 ], |
| 46 }, |
| 47 { |
| 48 'target_name': 'libraries-search-path-test', |
| 49 'type': 'executable', |
| 50 'dependencies': [ 'mylib' ], |
| 51 'sources': [ |
| 52 'hello.cc', |
| 53 ], |
| 54 'xcode_settings': { |
| 55 'LIBRARY_SEARCH_PATHS': [ |
| 56 '<(DEPTH)/secret_location', |
| 57 ], |
| 58 }, |
| 59 'link_settings': { |
| 60 'libraries': [ |
| 61 'libmysecretlib.a', |
| 62 ], |
| 63 }, |
| 64 }, |
| 65 ], |
| 66 } |
OLD | NEW |