forked from philogb/v8-gl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gyp
82 lines (81 loc) · 2.05 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
'variables': {
'node_module_sources': [
'node-gl.cpp',
'glbindings/glbind.cpp',
'glesbindings/glesbind.cpp',
'glubindings/glubind.cpp',
'glutbindings/glutbind.cpp',
'imageloader.cpp',
'utils.cpp',
],
'node_root': '/Users/paddy/data/work/dev/nodejs-0.6/',
},
'targets': [
{
'target_name': 'node-gl',
'product_name': 'node-gl',
'type': 'loadable_module',
'product_prefix': '',
'product_extension':'node',
'sources': [
'<@(node_module_sources)',
],
'defines': [
'BUILD_GL_BINDINGS=1',
'BUILD_GLES_BINDINGS=1',
'BUILD_GLU_BINDINGS=1',
'BUILD_GLUT_BINDINGS=1',
'PLATFORM="<(OS)"',
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
],
'conditions': [
[ 'OS=="mac"', {
'libraries': [
'-undefined dynamic_lookup',
],
'xcode_settings': {
'OTHER_LDFLAGS': [
'-undefined dynamic_lookup',
'-framework OpenGL',
'-framework GLUT',
]
},
'include_dirs': [
'include/',
'<@(node_root)/node/src',
'<@(node_root)/node/deps/v8/include',
'<@(node_root)/node/deps/uv/include',
],
}],
[ 'OS=="win"', {
'defines': [
'PLATFORM="win32"',
'_WINDOWS',
'__WINDOWS__', # ltdl
'BUILDING_NODE_EXTENSION'
],
'libraries': [
'node.lib',
'zlib.lib'
],
'include_dirs': [
'include',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalOptions': [
# https://github.com/mapnik/node-mapnik/issues/74
'/FORCE:MULTIPLE'
],
'AdditionalLibraryDirectories': [
],
},
},
},
], # windows
] # condition
}, # targets
],
}