| Index: test/module/src/module.gyp
|
| ===================================================================
|
| --- test/module/src/module.gyp (revision 0)
|
| +++ test/module/src/module.gyp (revision 0)
|
| @@ -0,0 +1,46 @@
|
| +{
|
| + 'target_defaults': {
|
| + 'conditions': [
|
| + ['OS=="win"', {
|
| + 'defines': ['PLATFORM_WIN'],
|
| + }],
|
| + ['OS=="mac"', {
|
| + 'defines': ['PLATFORM_MAC'],
|
| + }],
|
| + ['OS=="linux"', {
|
| + 'defines': ['PLATFORM_LINUX'],
|
| + 'cflags': ['-m32'],
|
| + 'ldflags': ['-m32', '-ldl'],
|
| + }],
|
| + ],
|
| + },
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'program',
|
| + 'type': 'executable',
|
| + 'dependencies': [
|
| + 'lib1',
|
| + 'lib2',
|
| + ],
|
| + 'sources': [
|
| + 'program.c',
|
| + ],
|
| + },
|
| + {
|
| + 'target_name': 'lib1',
|
| + 'type': 'loadable_module',
|
| + 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''},
|
| + 'sources': [
|
| + 'lib1.c',
|
| + ],
|
| + },
|
| + {
|
| + 'target_name': 'lib2',
|
| + 'type': 'loadable_module',
|
| + 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''},
|
| + 'sources': [
|
| + 'lib2.c',
|
| + ],
|
| + },
|
| + ],
|
| +}
|
|
|