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 '"<(PRODUCT_DIR)/../secret_location"', | |
35 ], | |
36 }, | |
37 { | |
38 'postbuild_name': 'Copy to secret location, with secret name', | |
Nico
2012/07/23 23:37:01
postbuilds are a mac-only feature as far as I know
Brian Ellis
2012/07/23 23:45:34
Okay... trying that. Make is unhappy if an actio
| |
39 'action': [ | |
40 'cp', | |
41 '"<(LIB_DIR)/<(STATIC_LIB_PREFIX)mylib<(STATIC_LIB_SUFFIX)"', | |
42 '"<(PRODUCT_DIR)/../secret_location/<(STATIC_LIB_PREFIX)mysecretlib< (STATIC_LIB_SUFFIX)"', | |
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 '<(PRODUCT_DIR)/../secret_location', | |
56 ], | |
57 'link_settings': { | |
58 'libraries': [ | |
59 '<(STATIC_LIB_PREFIX)mysecretlib<(STATIC_LIB_SUFFIX)', | |
60 ], | |
61 }, | |
62 }, | |
63 ], | |
64 } | |
OLD | NEW |