forked from adobe-flash/avmplus
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mmgc.gypi
236 lines (219 loc) · 8.47 KB
/
mmgc.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
{
'targets':
[
{
'variables' :
{
'AVMGLUE_DIR': '<(DEPTH)/flash/avmglue',
},
'target_name': 'mmgc',
'type': 'static_library',
'include_dirs':
[
'core',
'platform',
'AVMPI',
'VMPI',
'vmbase',
'MMgc',
'<(AVMGLUE_DIR)',
],
'dependencies' :
[
'builtinglue',
],
'all_dependent_settings':
{
'include_dirs':
[
'MMgc',
#Including any part of MMGC requires the includes below.
'core',
'platform',
'AVMPI',
'VMPI',
'vmbase',
'<(AVMGLUE_DIR)',
],
},
'sources':
[
'MMgc/GCGlobalNew.cpp',
'MMgc/GCObject.cpp',
'MMgc/GCMemoryProfiler.cpp',
'MMgc/GCLargeAlloc.cpp',
'MMgc/GCHeap.cpp',
'MMgc/GCHashtable.cpp',
'MMgc/GCAllocObject.cpp',
'MMgc/GCAlloc.cpp',
'MMgc/GC.cpp',
'MMgc/PageMap.cpp',
'MMgc/GCPolicyManager.cpp',
'MMgc/GCTests.cpp',
'MMgc/GCStack.cpp',
'MMgc/ZCT.cpp',
'MMgc/FixedMalloc.cpp',
'MMgc/FixedAlloc.cpp',
'MMgc/GCLog.cpp',
'MMgc/GCDebug.cpp',
],
'conditions':
[
[
'OS == "win"',
{
'conditions':
[
[
'target_arch == "x86"',
{
'defines':
[
'AVMPLUS_IA32',
],
},
],
[
'target_arch == "x64"',
{
'defines':
[
'AVMPLUS_AMD64',
],
},
],
],
'defines':
[
'NOMINMAX',
],
'msvs_disabled_warnings':
[
4365, #'action' : conversion from 'type_1' to 'type_2', signed/unsigned mismatch
4062, # enumerate has no associated handler in a switch statement, and there is no default label.
4061, # enumerator 'identifier' in switch of enum 'enumeration' is not explicitly handled by a case label
4668, #'symbol' is not defined as a preprocessor macro, replacing with '0' for 'directives'
4820, #'bytes' bytes padding added after member 'member',
4625, # copy constructor could not be generated because a base class copy constructor is inaccessible
4626, # assignment operator could not be generated because a base class assignment operator is inaccessible
4710, # 'function' : function not inlined
],
'direct_dependent_settings':
{
#MMGC generates these warnings if you include it's headers
'msvs_disabled_warnings':
[
4365, # 'action' : conversion from 'type_1' to 'type_2', signed/unsigned mismatch
4625, # 'class' : copy constructor could not be generated because a base class copy constructor is inaccessible
4626, # assignment operator could not be generated because a base class assignment operator is inaccessible
4820, # 'bytes' bytes padding added after member 'member',
4710, # 'function' : function not inlined
],
},
'configurations':
{
'Debug_Base':
{
'msvs_settings':
{
'VCCLCompilerTool':
{
'BasicRuntimeChecks': '3', # /RTC1
},
'VCLibrarianTool':
{
'OutputFile' : '$(OutDir)/MMgc_d.lib',
},
},
},
'Release_Base':
{
'VCLibrarianTool':
{
'OutputFile' : '$(OutDir)/MMgc.lib',
},
},
},
'include_dirs':
[
'generated',
'<(DEPTH)/third_party/win/PlatformSDK_v6.0/Include',
],
'sources':
[
'AVMPI/MMgcPortWin.cpp',
'AVMPI/SpyUtilsWin.cpp',
'VMPI/ThreadsWin.cpp',
'VMPI/WinPortUtils.cpp',
'VMPI/GenericPortUtils.cpp',
'VMPI/WinDebugUtils.cpp',
],
},
],
[
'OS == "mac"',
{
'defines':
[
'DARWIN=1',
'SOFT_ASSERTS',
'USE_MMAP',
],
'sources':
[
'AVMPI/PosixMMgcPortUtils.cpp',
'AVMPI/MMgcPortMac.cpp',
'AVMPI/SpyUtilsPosix.cpp',
'VMPI/ThreadsPosix.cpp',
'MMgc/GCThreads.cpp',
],
},
],
[
'OS == "linux"',
{
'defines':
[
'HAVE_DLADDR',
],
'sources':
[
'AVMPI/PosixMMgcPortUtils.cpp',
'AVMPI/MMgcPortUnix.cpp',
'VMPI/PosixPortUtils.cpp',
],
},
],
[
'OS == "stagecraft"',
{
'defines':
[
'HAVE_DLADDR',
'<@(STAGECRAFT_DEFINES)',
],
'sources':
[
'AVMPI/PosixMMgcPortUtils.cpp',
'AVMPI/MMgcPortUnix.cpp',
'VMPI/PosixPortUtils.cpp',
'VMPI/PosixPortUtils.cpp',
'MMgc/GCGlobalNew.cpp',
],
},
],
[
'OS == "android"',
{
'sources':
[
'AVMPI/PosixMMgcPortUtils.cpp',
'AVMPI/MMgcPortUnix.cpp',
'VMPI/PosixSpecificUtils.cpp',
],
},
],
],
},
],
}