-
Notifications
You must be signed in to change notification settings - Fork 36
/
binding.gyp
41 lines (41 loc) · 1.19 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
'targets': [
{
'type': 'shared_library',
'product_extension': 'node',
'defines': [ 'BUILDING_NODE_EXTENSION' ],
'target_name': 'ogg',
'include_dirs': [ "<!(node -e \"require('nan')\")" ],
'sources': [
'src/binding.cc',
],
'dependencies': [
'deps/libogg/libogg.gyp:libogg',
],
'conditions': [
['OS=="mac"', {
# re-export all libogg.a symbols for other node native
# modules to be able to link to this ogg.node file. on linux/solaris
# this happens because of the "shared_library" type...
'libraries': [
'-Wl,-force_load,<(module_root_dir)/build/$(BUILDTYPE)/ogg.a'
],
'xcode_settings': {
'OTHER_LDFLAGS': [
'-undefined dynamic_lookup'
],
},
}],
['OS=="win"', {
# on Windows we have to use the ogg.def file to ensure that all the
# libogg symbols get re-exported
'msvs_settings': {
'VCLinkerTool': {
'ModuleDefinitionFile': '<(module_root_dir)\\deps\\libogg\\win32\\ogg.def',
},
},
}],
],
},
],
}