forked from joshmarinacci/aminolang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
62 lines (57 loc) · 1.82 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
{
"targets": [
{
"target_name":"aminonative",
"sources":[
"src/sg/fonts/vector.c",
"src/sg/fonts/vertex-buffer.c",
"src/sg/fonts/vertex-attribute.c",
"src/sg/fonts/texture-atlas.c",
"src/sg/fonts/texture-font.c",
"src/sg/fonts/shader.c",
"src/sg/fonts/mat4.c",
"src/sg/base.cc",
"src/sg/mac.cpp",
"src/sg/shaders.cpp",
"src/sg/image.cpp"
],
"include_dirs": [
"src/sg/",
"src/sg/fonts/",
"/usr/local/Cellar/freetype/2.4.11/include/freetype2",
"/usr/local/Cellar/freetype/2.4.11/include",
],
'conditions': [
['OS=="mac"', {
"libraries": [
"-lglfw",
"-ljpeg",
"-lpng",
'-framework OpenGL',
'-framework OpenCL',
'<!@(freetype-config --libs)'
],
"defines": [
"MAC"
]
}],
['OS=="klaatu"', {
"defines": [
"KLAATU"
]
}],
['OS=="linux"', {
"libraries":[
"-lglfw",
"-lpng",
"-ljpeg",
],
"defines": [
"GL_GLEXT_PROTOTYPES",
"LINUX"
]
}]
]
}
]
}