OLD | NEW |
(Empty) | |
| 1 { |
| 2 'target_defaults': { |
| 3 'conditions': [ |
| 4 ['OS=="win"', { |
| 5 'defines': ['PLATFORM_WIN'], |
| 6 }], |
| 7 ['OS=="mac"', { |
| 8 'defines': ['PLATFORM_MAC'], |
| 9 }], |
| 10 ['OS=="linux"', { |
| 11 'defines': ['PLATFORM_LINUX'], |
| 12 'cflags': ['-m32'], |
| 13 'ldflags': ['-m32', '-ldl'], |
| 14 }], |
| 15 ], |
| 16 }, |
| 17 'targets': [ |
| 18 { |
| 19 'target_name': 'program', |
| 20 'type': 'executable', |
| 21 'dependencies': [ |
| 22 'lib1', |
| 23 'lib2', |
| 24 ], |
| 25 'sources': [ |
| 26 'program.c', |
| 27 ], |
| 28 }, |
| 29 { |
| 30 'target_name': 'lib1', |
| 31 'type': 'loadable_module', |
| 32 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''}, |
| 33 'sources': [ |
| 34 'lib1.c', |
| 35 ], |
| 36 }, |
| 37 { |
| 38 'target_name': 'lib2', |
| 39 'type': 'loadable_module', |
| 40 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''}, |
| 41 'sources': [ |
| 42 'lib2.c', |
| 43 ], |
| 44 }, |
| 45 ], |
| 46 } |
OLD | NEW |