forked from mikeseven/node-glfw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
43 lines (43 loc) · 1.12 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
42
43
{
'variables': {
'platform': '<(OS)',
},
'conditions': [
# Replace gyp platform with node platform, blech
['platform == "mac"', {'variables': {'platform': 'darwin'}}],
['platform == "win"', {'variables': {'platform': 'win32'}}],
],
'targets': [
{
#'target_name': 'glfw-<(platform)-<(target_arch)',
'target_name': 'glfw',
'defines': [
'VERSION=0.2.0'
],
'sources': [ 'src/atb.cc', 'src/glfw.cc' ],
'include_dirs': [
'./deps/include',
],
'library_dirs': [
'./deps/<(platform)',
],
'conditions': [
['OS=="linux"', {'libraries': ['-lAntTweakBar', '-lglfw3', '-lGLEW', '-lXxf86vm', '-lXi', '-lXrandr']}],
['OS=="mac"', {'libraries': ['-lAntTweakBar', '-lglfw3', '-lGLEW', '-framework OpenGL']}],
['OS=="win"', {
'libraries': [
'AntTweakBar64.lib',
'glew64s.lib',
'glfw64dll.lib',
'opengl32.lib'
],
'defines' : [
'WIN32_LEAN_AND_MEAN',
'VC_EXTRALEAN'
]
},
],
],
}
]
}