Chromium Code Reviews| 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', | |
|
Mark Mentovai
2012/07/17 19:58:34
Dumping stuff into the source tree is bad news. Ca
Brian Ellis
2012/07/17 20:26:52
Hm, most of this is copied directly from test/mac/
| |
| 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 'library_dirs': [ | |
| 55 'secret_location', | |
| 56 ], | |
| 57 'link_settings': { | |
| 58 'libraries': [ | |
| 59 'libmysecretlib.a', | |
| 60 ], | |
| 61 }, | |
| 62 }, | |
| 63 ], | |
| 64 } | |
| OLD | NEW |