-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbinding.gyp
More file actions
52 lines (50 loc) · 1.81 KB
/
binding.gyp
File metadata and controls
52 lines (50 loc) · 1.81 KB
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
{
'targets': [
{
'target_name': 'sdladdon',
'cflags': ['-fexceptions', '-lSDL2', '-pthread'],
'cflags_cc': ['-fexceptions', '-lSDL2', '-pthread'],
'sources': ['src/main_window.h', 'src/main_window.cpp', 'src/node_addon.h', 'src/node_addon.cpp'],
'include_dirs': ['<!@(node -p \'require("node-addon-api").include\')'],
'libraries': [],
'dependencies': [
'<!(node -p \'require("node-addon-api").gyp\')'
],
'defines': [
'NAPI_CPP_EXCEPTIONS'
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
'libraries': [
'/usr/local/lib/libSDL2.dylib',
'/usr/local/lib/libSDL2_image.dylib'
],
'include_dirs': [
'/usr/local/include/SDL2'
]
}],
['OS=="linux" and target_arch=="x64"', {
'libraries': [
'/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so',
'/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so'
],
'include_dirs': [
'/usr/include/SDL2'
]
}],
['OS=="linux" and target_arch=="ia32"', {
'libraries': [
'/usr/lib/libSDL2-2.0.so',
'/usr/lib/libSDL2_image-2.0.so'
],
'include_dirs': [
'/usr/include/SDL2'
]
}]
]
}
]
}