OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 }, | 114 }, |
115 { | 115 { |
116 'target_name': 'v8_snapshot', | 116 'target_name': 'v8_snapshot', |
117 'type': 'static_library', | 117 'type': 'static_library', |
118 'conditions': [ | 118 'conditions': [ |
119 ['want_separate_host_toolset==1', { | 119 ['want_separate_host_toolset==1', { |
120 'toolsets': ['host', 'target'], | 120 'toolsets': ['host', 'target'], |
121 'dependencies': [ | 121 'dependencies': [ |
122 'mksnapshot#host', | 122 'mksnapshot#host', |
123 'js2c#host', | 123 'js2c#host', |
| 124 'generate_trig_table#host', |
124 ], | 125 ], |
125 }, { | 126 }, { |
126 'toolsets': ['target'], | 127 'toolsets': ['target'], |
127 'dependencies': [ | 128 'dependencies': [ |
128 'mksnapshot', | 129 'mksnapshot', |
129 'js2c', | 130 'js2c', |
| 131 'generate_trig_table', |
130 ], | 132 ], |
131 }], | 133 }], |
132 ['component=="shared_library"', { | 134 ['component=="shared_library"', { |
133 'defines': [ | 135 'defines': [ |
134 'V8_SHARED', | 136 'V8_SHARED', |
135 'BUILDING_V8_SHARED', | 137 'BUILDING_V8_SHARED', |
136 ], | 138 ], |
137 'direct_dependent_settings': { | 139 'direct_dependent_settings': { |
138 'defines': [ | 140 'defines': [ |
139 'V8_SHARED', | 141 'V8_SHARED', |
140 'USING_V8_SHARED', | 142 'USING_V8_SHARED', |
141 ], | 143 ], |
142 }, | 144 }, |
143 }], | 145 }], |
144 ], | 146 ], |
145 'dependencies': [ | 147 'dependencies': [ |
146 'v8_base', | 148 'v8_base', |
147 ], | 149 ], |
148 'include_dirs+': [ | 150 'include_dirs+': [ |
149 '../..', | 151 '../..', |
150 ], | 152 ], |
151 'sources': [ | 153 'sources': [ |
152 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 154 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
153 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 155 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 156 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
154 '<(INTERMEDIATE_DIR)/snapshot.cc', | 157 '<(INTERMEDIATE_DIR)/snapshot.cc', |
155 '../../src/snapshot-common.cc', | 158 '../../src/snapshot-common.cc', |
156 ], | 159 ], |
157 'actions': [ | 160 'actions': [ |
158 { | 161 { |
159 'action_name': 'run_mksnapshot', | 162 'action_name': 'run_mksnapshot', |
160 'inputs': [ | 163 'inputs': [ |
161 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', | 164 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
162 ], | 165 ], |
163 'outputs': [ | 166 'outputs': [ |
(...skipping 23 matching lines...) Expand all Loading... |
187 'type': 'static_library', | 190 'type': 'static_library', |
188 'dependencies': [ | 191 'dependencies': [ |
189 'v8_base', | 192 'v8_base', |
190 ], | 193 ], |
191 'include_dirs+': [ | 194 'include_dirs+': [ |
192 '../..', | 195 '../..', |
193 ], | 196 ], |
194 'sources': [ | 197 'sources': [ |
195 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 198 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
196 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 199 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 200 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
197 '../../src/snapshot-common.cc', | 201 '../../src/snapshot-common.cc', |
198 '../../src/snapshot-empty.cc', | 202 '../../src/snapshot-empty.cc', |
199 ], | 203 ], |
200 'conditions': [ | 204 'conditions': [ |
201 ['want_separate_host_toolset==1', { | 205 ['want_separate_host_toolset==1', { |
202 'toolsets': ['host', 'target'], | 206 'toolsets': ['host', 'target'], |
203 'dependencies': ['js2c#host'], | 207 'dependencies': ['js2c#host', 'generate_trig_table#host'], |
204 }, { | 208 }, { |
205 'toolsets': ['target'], | 209 'toolsets': ['target'], |
206 'dependencies': ['js2c'], | 210 'dependencies': ['js2c', 'generate_trig_table'], |
207 }], | 211 }], |
208 ['component=="shared_library"', { | 212 ['component=="shared_library"', { |
209 'defines': [ | 213 'defines': [ |
210 'BUILDING_V8_SHARED', | 214 'BUILDING_V8_SHARED', |
211 'V8_SHARED', | 215 'V8_SHARED', |
212 ], | 216 ], |
213 }], | 217 }], |
214 ] | 218 ] |
215 }, | 219 }, |
216 { | 220 { |
217 'target_name': 'v8_external_snapshot', | 221 'target_name': 'v8_external_snapshot', |
218 'type': 'static_library', | 222 'type': 'static_library', |
219 'conditions': [ | 223 'conditions': [ |
220 ['want_separate_host_toolset==1', { | 224 ['want_separate_host_toolset==1', { |
221 'toolsets': ['host'], | 225 'toolsets': ['host'], |
222 'dependencies': [ | 226 'dependencies': [ |
223 'mksnapshot#host', | 227 'mksnapshot#host', |
224 'js2c#host', | 228 'js2c#host', |
| 229 'generate_trig_table#host', |
225 'natives_blob#host', | 230 'natives_blob#host', |
226 ]}, { | 231 ]}, { |
227 'toolsets': ['target'], | 232 'toolsets': ['target'], |
228 'dependencies': [ | 233 'dependencies': [ |
229 'mksnapshot', | 234 'mksnapshot', |
230 'js2c', | 235 'js2c', |
| 236 'generate_trig_table', |
231 'natives_blob', | 237 'natives_blob', |
232 ], | 238 ], |
233 }], | 239 }], |
234 ['component=="shared_library"', { | 240 ['component=="shared_library"', { |
235 'defines': [ | 241 'defines': [ |
236 'V8_SHARED', | 242 'V8_SHARED', |
237 'BUILDING_V8_SHARED', | 243 'BUILDING_V8_SHARED', |
238 ], | 244 ], |
239 'direct_dependent_settings': { | 245 'direct_dependent_settings': { |
240 'defines': [ | 246 'defines': [ |
241 'V8_SHARED', | 247 'V8_SHARED', |
242 'USING_V8_SHARED', | 248 'USING_V8_SHARED', |
243 ], | 249 ], |
244 }, | 250 }, |
245 }], | 251 }], |
246 ], | 252 ], |
247 'dependencies': [ | 253 'dependencies': [ |
248 'v8_base', | 254 'v8_base', |
249 ], | 255 ], |
250 'include_dirs+': [ | 256 'include_dirs+': [ |
251 '../..', | 257 '../..', |
252 ], | 258 ], |
253 'sources': [ | 259 'sources': [ |
| 260 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
254 '../../src/natives-external.cc', | 261 '../../src/natives-external.cc', |
255 '../../src/snapshot-external.cc', | 262 '../../src/snapshot-external.cc', |
256 ], | 263 ], |
257 'actions': [ | 264 'actions': [ |
258 { | 265 { |
259 'action_name': 'run_mksnapshot (external)', | 266 'action_name': 'run_mksnapshot (external)', |
260 'inputs': [ | 267 'inputs': [ |
261 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', | 268 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
262 ], | 269 ], |
263 'outputs': [ | 270 'outputs': [ |
(...skipping 13 matching lines...) Expand all Loading... |
277 }, | 284 }, |
278 'action': [ | 285 'action': [ |
279 '<@(_inputs)', | 286 '<@(_inputs)', |
280 '<@(mksnapshot_flags)', | 287 '<@(mksnapshot_flags)', |
281 '<@(INTERMEDIATE_DIR)/snapshot.cc', | 288 '<@(INTERMEDIATE_DIR)/snapshot.cc', |
282 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 289 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
283 ], | 290 ], |
284 }, | 291 }, |
285 ], | 292 ], |
286 }, | 293 }, |
| 294 { 'target_name': 'generate_trig_table', |
| 295 'type': 'none', |
| 296 'conditions': [ |
| 297 ['want_separate_host_toolset==1', { |
| 298 'toolsets': ['host'], |
| 299 }, { |
| 300 'toolsets': ['target'], |
| 301 }], |
| 302 ], |
| 303 'actions': [ |
| 304 { |
| 305 'action_name': 'generate', |
| 306 'inputs': [ |
| 307 '../../tools/generate-trig-table.py', |
| 308 ], |
| 309 'outputs': [ |
| 310 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
| 311 ], |
| 312 'action': [ |
| 313 'python', |
| 314 '../../tools/generate-trig-table.py', |
| 315 '<@(_outputs)', |
| 316 ], |
| 317 }, |
| 318 ] |
| 319 }, |
287 { | 320 { |
288 'target_name': 'v8_base', | 321 'target_name': 'v8_base', |
289 'type': 'static_library', | 322 'type': 'static_library', |
290 'dependencies': [ | 323 'dependencies': [ |
291 'v8_libbase', | 324 'v8_libbase', |
292 ], | 325 ], |
293 'variables': { | 326 'variables': { |
294 'optimize': 'max', | 327 'optimize': 'max', |
295 }, | 328 }, |
296 'include_dirs+': [ | 329 'include_dirs+': [ |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 '../../src/variables.cc', | 761 '../../src/variables.cc', |
729 '../../src/variables.h', | 762 '../../src/variables.h', |
730 '../../src/vector.h', | 763 '../../src/vector.h', |
731 '../../src/version.cc', | 764 '../../src/version.cc', |
732 '../../src/version.h', | 765 '../../src/version.h', |
733 '../../src/vm-state-inl.h', | 766 '../../src/vm-state-inl.h', |
734 '../../src/vm-state.h', | 767 '../../src/vm-state.h', |
735 '../../src/zone-inl.h', | 768 '../../src/zone-inl.h', |
736 '../../src/zone.cc', | 769 '../../src/zone.cc', |
737 '../../src/zone.h', | 770 '../../src/zone.h', |
738 '../../third_party/fdlibm/fdlibm.cc', | |
739 '../../third_party/fdlibm/fdlibm.h', | |
740 ], | 771 ], |
741 'conditions': [ | 772 'conditions': [ |
742 ['want_separate_host_toolset==1', { | 773 ['want_separate_host_toolset==1', { |
743 'toolsets': ['host', 'target'], | 774 'toolsets': ['host', 'target'], |
744 }, { | 775 }, { |
745 'toolsets': ['target'], | 776 'toolsets': ['target'], |
746 }], | 777 }], |
747 ['v8_target_arch=="arm"', { | 778 ['v8_target_arch=="arm"', { |
748 'sources': [ ### gcmole(arch:arm) ### | 779 'sources': [ ### gcmole(arch:arm) ### |
749 '../../src/arm/assembler-arm-inl.h', | 780 '../../src/arm/assembler-arm-inl.h', |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 }, | 1413 }, |
1383 }], | 1414 }], |
1384 ], | 1415 ], |
1385 'variables': { | 1416 'variables': { |
1386 'library_files': [ | 1417 'library_files': [ |
1387 '../../src/runtime.js', | 1418 '../../src/runtime.js', |
1388 '../../src/v8natives.js', | 1419 '../../src/v8natives.js', |
1389 '../../src/array.js', | 1420 '../../src/array.js', |
1390 '../../src/string.js', | 1421 '../../src/string.js', |
1391 '../../src/uri.js', | 1422 '../../src/uri.js', |
1392 '../../third_party/fdlibm/fdlibm.js', | |
1393 '../../src/math.js', | 1423 '../../src/math.js', |
1394 '../../src/messages.js', | 1424 '../../src/messages.js', |
1395 '../../src/apinatives.js', | 1425 '../../src/apinatives.js', |
1396 '../../src/debug-debugger.js', | 1426 '../../src/debug-debugger.js', |
1397 '../../src/mirror-debugger.js', | 1427 '../../src/mirror-debugger.js', |
1398 '../../src/liveedit-debugger.js', | 1428 '../../src/liveedit-debugger.js', |
1399 '../../src/date.js', | 1429 '../../src/date.js', |
1400 '../../src/json.js', | 1430 '../../src/json.js', |
1401 '../../src/regexp.js', | 1431 '../../src/regexp.js', |
1402 '../../src/arraybuffer.js', | 1432 '../../src/arraybuffer.js', |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 }], | 1554 }], |
1525 ['v8_compress_startup_data=="bz2"', { | 1555 ['v8_compress_startup_data=="bz2"', { |
1526 'libraries': [ | 1556 'libraries': [ |
1527 '-lbz2', | 1557 '-lbz2', |
1528 ] | 1558 ] |
1529 }], | 1559 }], |
1530 ], | 1560 ], |
1531 }, | 1561 }, |
1532 ], | 1562 ], |
1533 } | 1563 } |
OLD | NEW |