forked from tyduptyler13/MyEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gyp
86 lines (86 loc) · 1.64 KB
/
build.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
{
"targets": [
{
"target_name": "MyEngine",
"type": "<(library)",
"sources": [
"src/Material.cpp",
"src/Log.cpp",
"src/Math.cpp",
"src/ShaderUtil.cpp",
"src/GLES2Shader.cpp",
"src/GLES2Renderer.cpp",
"src/GLES2MaterialLib.cpp",
"src/GLES2RenderTarget.cpp",
"src/Texture.cpp",
"src/GeometryImporter.cpp",
"src/GLFWManager.cpp",
"src/SoundObject.cpp"
],
"include_dirs": [
"include",
"local/include"
],
"dependencies": [
"glsl-optimizer"
],
"direct_dependent_settings": {
"include_dirs": [
"include"
]
},
"link_dependent_settings": {
"dependencies": [
"glsl-optimizer"
]
},
"variables": {
"asmjs%": "0"
},
"conditions": [
['OS=="linux"', {
"conditions": [
['asmjs==1', {
"link_settings": {
"libraries": [
"../deps/assimp/lib/libassimp.a",
"-lGLESv2",
"-s USE_GLFW=3",
"-lglfw3",
"../deps/assimp/lib/libzlibstatic.a" #last for a reason
]
}
}, {
"link_settings": {
"libraries": [
"../deps/assimp/lib/libassimp.a",
"-lGLESv2",
"<!(pkg-config glfw3 --static --libs-only-l)",
"-pthread" #We might need pthread for gcc (because their std::threads are broken otherwise)
]
}
}]
]
}]
],
"ldflags": [ "-L../lib" ],
"cflags": [
"-Wall",
"-Wextra",
"-pedantic",
"-fpic"
],
"cflags_cc": [
"-std=c++14"
],
'cflags!': [
'-fno-exceptions'
],
'cflags_cc!': [
'-fno-exceptions',
'-fno-rtti',
'-std=gnu++0x'
]
}
]
}