-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gypi
78 lines (78 loc) · 2.43 KB
/
common.gypi
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
{
'AQ':'hi',
'configurations': {
'Debug': {
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
},
},
},
'target_defaults': {
'default_configuration': 'Debug',
'cflags_cc': [ '-std=c++1y', '-fvisibility=hidden', '-fexceptions' ],
'cflags': ['-Wall', '-Wno-null-character'],
'xcode_settings': {
'OTHER_CFLAGS' : ['-Wall', '-fvisibility=hidden'],
'OTHER_CPLUSPLUSFLAGS' : ['-Wall', '-fvisibility=hidden'],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1y',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_ENABLE_OBJC_ARC': 'YES',
},
'conditions': [
['OS=="ios"', {
'xcode_settings' : {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS': 'iOS',
'OTHER_CFLAGS' : ['-D_RELEASE'],
},
'defines': ['__IOS__', 'GLSLES'],
}],
['OS=="mac"', {
'defines': ['__OSX__'],
'xcode_settings' : {
'SDKROOT': 'macosx10.9',
},
'link_settings' : {
'libraries' : [
#'-framework',
#'OpenGL'
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework'
]
}
}],
['OS=="android"', {
}],
['OS=="linux"', {
'cflags': ['-c' , '-w', '-pthread', '-std=c++11'],
'cxxflags': ['-c', '-pthread'],
'link_settings':{
"libraries":[
"-pthread", "-lGL"
]
}
}],
],
'configurations': {
'Debug': {
'defines': [ 'DEBUG' ],
'cflags' : [ '-g', '-O0' ],
'xcode_settings' : {
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [
'-O3',
'-ffast-math',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
],
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
},
},
},
},
}