-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbinding.gyp
99 lines (94 loc) · 3.1 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
{
"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/shaders.cpp",
"src/sg/image.cpp",
"src/sg/SimpleRenderer.cpp"
],
"include_dirs": [
"src/sg/",
"src/sg/fonts/",
],
'conditions': [
['OS=="mac"', {
"include_dirs": [
" <!@(freetype-config --cflags)"
],
"libraries": [
"-lglfw",
"-ljpeg",
"-lpng",
'-framework OpenGL',
'-framework OpenCL',
'<!@(freetype-config --libs)'
],
"sources": [
"src/sg/mac.cpp",
],
"defines": [
"MAC",
"GLFW_NO_GLU",
"GLFW_INCLUDE_GL3",
]
}],
['OS=="klaatu"', {
"defines": [
"KLAATU"
]
}],
['OS=="raspberrypi"', {
"sources": [
"src/sg/rpi.cpp",
],
"libraries":[
"-lpng",
"-ljpeg",
"-L/opt/vc/lib/ -lbcm_host",
"-lGLESv2",
"-lEGL",
'<!@(freetype-config --libs)',
],
"defines": [
"RPI"
],
"include_dirs": [
"/opt/vc/include/",
"/usr/include/freetype2",
"/opt/vc/include/interface/vcos/pthreads",
"/opt/vc/include/interface/vmcs_host/linux",
'<!@(freetype-config --cflags)'
],
}],
['OS=="linux"', {
"libraries":[
'<!@(freetype-config --libs)',
"-lglfw",
"-lpng",
"-ljpeg"
],
"sources": [
"src/sg/mac.cpp",
],
"defines": [
"GL_GLEXT_PROTOTYPES",
"LINUX"
],
"include_dirs": [
"/usr/include/freetype2",
'<!@(freetype-config --cflags)'
],
}]
]
}
]
}