-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
binding.gyp
203 lines (199 loc) · 6.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"targets": [{
"target_name": "mouse_button.cc",
"type": "none",
"sources": [
"./third_party/sfml/include/SFML/Window/Mouse.hpp",
"./tools/mouse_button.js"
],
"actions": [{
"action_name": "gen_mouse_button",
"inputs": [
"./third_party/sfml/include/SFML/Window/Mouse.hpp",
"./tools/mouse_button.js"
],
"outputs": [
"./src/gen/mouse_button.cc"
],
"action": [
"node",
"./tools/mouse_button.js"
]
}]
}, {
"target_name": "keycode.cc",
"type": "none",
"sources": [
"./third_party/sfml/include/SFML/Window/Keyboard.hpp",
"./tools/keycode.js"
],
"actions": [{
"action_name": "gen_keycode",
"inputs": [
"./third_party/sfml/include/SFML/Window/Keyboard.hpp",
"./tools/keycode.js"
],
"outputs": [
"./src/gen/keycode.cc"
],
"action": [
"node",
"./tools/keycode.js"
]
}]
}, {
"target_name": "joystick_axis.cc",
"type": "none",
"sources": [
"./third_party/sfml/include/SFML/Window/Joystick.hpp",
"./tools/joystick_axis.js"
],
"actions": [{
"action_name": "gen_joystick_axis",
"inputs": [
"./third_party/sfml/include/SFML/Window/Joystick.hpp",
"./tools/joystick_axis.js"
],
"outputs": [
"./src/gen/joystick_axis.cc"
],
"action": [
"node",
"./tools/joystick_axis.js"
]
}]
}, {
"target_name": "sensor_type.cc",
"type": "none",
"sources": [
"./third_party/sfml/include/SFML/Window/Sensor.hpp",
"./tools/sensor_type.js"
],
"actions": [{
"action_name": "gen_sensor_type",
"inputs": [
"./third_party/sfml/include/SFML/Window/Sensor.hpp",
"./tools/sensor_type.js"
],
"outputs": [
"./src/gen/sensor_type.cc"
],
"action": [
"node",
"./tools/sensor_type.js"
]
}]
}, {
"target_name": "binding",
"include_dirs": [
"./third_party/sfml/include",
"<!(node -e \"require('nan')\")"
],
"conditions": [
["OS==\"linux\"", {
"libraries": [
"../third_party/sfml/platform/linux/lib/libsfml-audio.so",
"../third_party/sfml/platform/linux/lib/libsfml-system.so",
"../third_party/sfml/platform/linux/lib/libsfml-window.so",
"../third_party/sfml/platform/linux/lib/libsfml-network.so",
"../third_party/sfml/platform/linux/lib/libsfml-graphics.so"
],
"ldflags": [
"-Wl,-rpath='$$ORIGIN/../../third_party/sfml/platform/linux/lib'"
]
}],
["OS==\"win\"", {
"defines": [
"NOMINMAX"
],
"copies": [{
"destination": "<(module_root_dir)/build/Release/",
"files": [
"<(module_root_dir)/third_party/sfml/platform/win/bin/openal32.dll",
"<(module_root_dir)/third_party/sfml/platform/win/bin/sfml-audio-2.dll",
"<(module_root_dir)/third_party/sfml/platform/win/bin/sfml-graphics-2.dll",
"<(module_root_dir)/third_party/sfml/platform/win/bin/sfml-network-2.dll",
"<(module_root_dir)/third_party/sfml/platform/win/bin/sfml-system-2.dll",
"<(module_root_dir)/third_party/sfml/platform/win/bin/sfml-window-2.dll"
]
}],
"libraries": [
"../third_party/sfml/platform/win/lib/flac.lib",
"../third_party/sfml/platform/win/lib/freetype.lib",
"../third_party/sfml/platform/win/lib/ogg.lib",
"../third_party/sfml/platform/win/lib/openal32.lib",
"../third_party/sfml/platform/win/lib/sfml-audio.lib",
"../third_party/sfml/platform/win/lib/sfml-graphics.lib",
"../third_party/sfml/platform/win/lib/sfml-main.lib",
"../third_party/sfml/platform/win/lib/sfml-network.lib",
"../third_party/sfml/platform/win/lib/sfml-system.lib",
"../third_party/sfml/platform/win/lib/sfml-window.lib",
"../third_party/sfml/platform/win/lib/vorbis.lib",
"../third_party/sfml/platform/win/lib/vorbisenc.lib",
"../third_party/sfml/platform/win/lib/vorbisfile.lib",
],
}],
["OS==\"mac\"", {
"libraries": [
"../third_party/sfml/platform/macOS/lib/libsfml-audio.dylib",
"../third_party/sfml/platform/macOS/lib/libsfml-system.dylib",
"../third_party/sfml/platform/macOS/lib/libsfml-window.dylib",
"../third_party/sfml/platform/macOS/lib/libsfml-network.dylib",
"../third_party/sfml/platform/macOS/lib/libsfml-graphics.dylib"
],
"link_settings": {
"libraries": [
"-Wl,-rpath,@loader_path",
"-Wl,-rpath,@loader_path/..",
"-Wl,-rpath,@loader_path/../../third_party/sfml/platform/macOS/lib"
]
}
}]
],
"sources": [
"./src/sfml.cc",
"./src/clock.cc",
"./src/color.cc",
"./src/font.cc",
"./src/image.cc",
"./src/joystick.cc",
"./src/keyboard.cc",
"./src/mouse.cc",
"./src/poll_event.cc",
"./src/rect.cc",
"./src/render_window.cc",
"./src/render_window_async_display.cc",
"./src/render_window_async_draw.cc",
"./src/sensor.cc",
"./src/touch.cc",
"./src/texture.cc",
"./src/time.cc",
"./src/vector2.cc",
"./src/vector3.cc",
"./src/vertex.cc",
"./src/video_mode.cc",
"./src/drawable/circle_shape.cc",
"./src/drawable/convex_shape.cc",
"./src/drawable/drawable.cc",
"./src/drawable/rectangle_shape.cc",
"./src/drawable/shape.cc",
"./src/drawable/sprite.cc",
"./src/drawable/text.cc",
"./src/drawable/vertex_array.cc",
"./src/gen/joystick_axis.cc",
"./src/gen/keycode.cc",
"./src/gen/mouse_button.cc",
"./src/gen/sensor_type.cc",
"./src/sound/music.cc",
"./src/sound/sound.cc",
"./src/sound/sound_buffer.cc",
"./src/sound/sound_source.cc"
],
"dependencies": [
"keycode.cc",
"joystick_axis.cc",
"sensor_type.cc",
"mouse_button.cc"
]
}]
}