| OLD | NEW |
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 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 | 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 'target_name': 'lib', | 8 'target_name': 'lib', |
| 9 'product_name': 'test_shared_lib', |
| 9 'type': 'shared_library', | 10 'type': 'shared_library', |
| 10 'sources': [ | 11 'sources': [ |
| 11 'prog2.c', | 12 'prog2.c', |
| 12 'func.c', | 13 'func.c', |
| 13 'subdir1/func.c', | 14 'subdir1/func.c', |
| 14 'subdir2/func.c', | 15 'subdir2/func.c', |
| 15 ], | 16 ], |
| 16 'defines': [ | 17 'defines': [ |
| 17 'PROG="prog2"', | 18 'PROG="prog2"', |
| 18 ], | 19 ], |
| 20 'conditions': [ |
| 21 ['OS=="linux"', { |
| 22 'cflags': ['-fPIC'], |
| 23 }], |
| 24 ], |
| 19 }, | 25 }, |
| 20 ], | 26 ], |
| 21 } | 27 } |
| OLD | NEW |