forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemscripten-settings.gypi
More file actions
115 lines (101 loc) · 1.3 KB
/
emscripten-settings.gypi
File metadata and controls
115 lines (101 loc) · 1.3 KB
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
# -*-Javascript-*-
{
'variables':
{
'app_bundle_suffix': '',
'ext_bundle_suffix': '.so',
'lib_suffix': '.so',
'ext_suffix': '.so',
'exe_suffix': '.js',
'debug_info_suffix': '.dbg',
'c++_std': '<!(echo ${CXX_STD:-c++03})',
},
'defines':
[
'__GNU__',
],
'cflags':
[
'-s ASSERTIONS=1',
'-s DEMANGLE_SUPPORT=1',
'-s WARN_ON_UNDEFINED_SYMBOLS=1',
'-s ALLOW_MEMORY_GROWTH=1',
'-s EMTERPRETIFY=1',
'-s EMTERPRETIFY_ASYNC=1',
],
'cflags_c':
[
'-std=gnu99',
'-Wstrict-prototypes',
'-Werror=declaration-after-statement', # Ensure C89 compliance
],
'cflags_cc':
[
'-fno-exceptions',
'-fno-rtti',
'-std=<(c++_std)',
],
'target_conditions':
[
[
'silence_warnings == 0',
{
'cflags':
[
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-Wno-ignored-attributes',
],
},
{
'cflags':
[
'-w',
'-fpermissive',
'-Wno-return-type',
],
},
],
],
'configurations':
{
'Debug':
{
'cflags':
[
'-g3',
],
'defines':
[
'_DEBUG',
],
},
'Release':
{
'cflags':
[
'-Os',
'-g3',
],
'defines':
[
'_RELEASE',
'NDEBUG',
],
},
'Fast':
{
'cflags':
[
'-O0',
'-g0',
],
'defines':
[
'_RELEASE',
'NDEBUG',
],
},
},
}