| OLD | NEW |
| 1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 Google Inc. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 # This creates a static library and puts it in a nonstandard location for | 8 # This creates a static library and puts it in a nonstandard location for |
| 9 # libraries-search-path-test. | 9 # libraries-search-path-test. |
| 10 'target_name': 'mylib', | 10 'target_name': 'mylib', |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 ], | 44 ], |
| 45 'sources': [ | 45 'sources': [ |
| 46 'hello.cc', | 46 'hello.cc', |
| 47 ], | 47 ], |
| 48 # Note that without this, the mylib library would not be found and | 48 # Note that without this, the mylib library would not be found and |
| 49 # successfully linked. | 49 # successfully linked. |
| 50 'library_dirs': [ | 50 'library_dirs': [ |
| 51 '<(abs_path_to_secret_library_location)', | 51 '<(abs_path_to_secret_library_location)', |
| 52 ], | 52 ], |
| 53 'link_settings': { | 53 'link_settings': { |
| 54 'libraries': [ | 54 'conditions': [ |
| 55 '-lmylib', | 55 ['OS=="linux"', { |
| 56 ], | 56 'libraries': [ |
| 57 '-lmylib', |
| 58 ], |
| 59 }, { # else |
| 60 'libraries': [ |
| 61 '<(STATIC_LIB_PREFIX)mylib<(STATIC_LIB_SUFFIX)', |
| 62 ], |
| 63 }], |
| 64 ], # conditions |
| 57 }, | 65 }, |
| 58 }, | 66 }, |
| 59 ], | 67 ], |
| 60 } | 68 } |
| OLD | NEW |