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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'type': '<(component)', | 54 'type': '<(component)', |
55 'sources': [ | 55 'sources': [ |
56 # Note: on non-Windows we still build this file so that gyp | 56 # Note: on non-Windows we still build this file so that gyp |
57 # has some sources to link into the component. | 57 # has some sources to link into the component. |
58 'v8dll-main.cc', | 58 'v8dll-main.cc', |
59 ], | 59 ], |
60 'include_dirs': [ | 60 'include_dirs': [ |
61 '..', | 61 '..', |
62 ], | 62 ], |
63 'defines': [ | 63 'defines': [ |
| 64 'V8_SHARED', |
64 'BUILDING_V8_SHARED', | 65 'BUILDING_V8_SHARED', |
65 ], | 66 ], |
66 'direct_dependent_settings': { | 67 'direct_dependent_settings': { |
67 'defines': [ | 68 'defines': [ |
| 69 'V8_SHARED', |
68 'USING_V8_SHARED', | 70 'USING_V8_SHARED', |
69 ], | 71 ], |
70 }, | 72 }, |
71 'target_conditions': [ | 73 'target_conditions': [ |
72 ['OS=="android" and _toolset=="target"', { | 74 ['OS=="android" and _toolset=="target"', { |
73 'libraries': [ | 75 'libraries': [ |
74 '-llog', | 76 '-llog', |
75 ], | 77 ], |
76 'include_dirs': [ | 78 'include_dirs': [ |
77 'src/common/android/include', | 79 'src/common/android/include', |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 ], | 157 ], |
156 }, { | 158 }, { |
157 'toolsets': ['target'], | 159 'toolsets': ['target'], |
158 'dependencies': [ | 160 'dependencies': [ |
159 'mksnapshot', | 161 'mksnapshot', |
160 'js2c', | 162 'js2c', |
161 ], | 163 ], |
162 }], | 164 }], |
163 ['component=="shared_library"', { | 165 ['component=="shared_library"', { |
164 'defines': [ | 166 'defines': [ |
| 167 'V8_SHARED', |
165 'BUILDING_V8_SHARED', | 168 'BUILDING_V8_SHARED', |
166 ], | 169 ], |
167 'direct_dependent_settings': { | 170 'direct_dependent_settings': { |
168 'defines': [ | 171 'defines': [ |
| 172 'V8_SHARED', |
169 'USING_V8_SHARED', | 173 'USING_V8_SHARED', |
170 ], | 174 ], |
171 }, | 175 }, |
172 }], | 176 }], |
173 ], | 177 ], |
174 'dependencies': [ | 178 'dependencies': [ |
175 'v8_base', | 179 'v8_base', |
176 ], | 180 ], |
177 'include_dirs+': [ | 181 'include_dirs+': [ |
178 '..', | 182 '..', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 ['want_separate_host_toolset==1', { | 252 ['want_separate_host_toolset==1', { |
249 'toolsets': ['host', 'target'], | 253 'toolsets': ['host', 'target'], |
250 'dependencies': ['js2c#host'], | 254 'dependencies': ['js2c#host'], |
251 }, { | 255 }, { |
252 'toolsets': ['target'], | 256 'toolsets': ['target'], |
253 'dependencies': ['js2c'], | 257 'dependencies': ['js2c'], |
254 }], | 258 }], |
255 ['component=="shared_library"', { | 259 ['component=="shared_library"', { |
256 'defines': [ | 260 'defines': [ |
257 'BUILDING_V8_SHARED', | 261 'BUILDING_V8_SHARED', |
| 262 'V8_SHARED', |
258 ], | 263 ], |
259 }], | 264 }], |
260 ] | 265 ] |
261 }, | 266 }, |
262 { | 267 { |
263 'target_name': 'v8_external_snapshot', | 268 'target_name': 'v8_external_snapshot', |
264 'type': 'static_library', | 269 'type': 'static_library', |
265 'conditions': [ | 270 'conditions': [ |
266 [ 'v8_use_external_startup_data==1', { | 271 [ 'v8_use_external_startup_data==1', { |
267 'conditions': [ | 272 'conditions': [ |
268 ['want_separate_host_toolset==1', { | 273 ['want_separate_host_toolset==1', { |
269 'toolsets': ['host', 'target'], | 274 'toolsets': ['host', 'target'], |
270 'dependencies': [ | 275 'dependencies': [ |
271 'mksnapshot#host', | 276 'mksnapshot#host', |
272 'js2c#host', | 277 'js2c#host', |
273 'natives_blob', | 278 'natives_blob', |
274 ]}, { | 279 ]}, { |
275 'toolsets': ['target'], | 280 'toolsets': ['target'], |
276 'dependencies': [ | 281 'dependencies': [ |
277 'mksnapshot', | 282 'mksnapshot', |
278 'js2c', | 283 'js2c', |
279 'natives_blob', | 284 'natives_blob', |
280 ], | 285 ], |
281 }], | 286 }], |
282 ['component=="shared_library"', { | 287 ['component=="shared_library"', { |
283 'defines': [ | 288 'defines': [ |
| 289 'V8_SHARED', |
284 'BUILDING_V8_SHARED', | 290 'BUILDING_V8_SHARED', |
285 ], | 291 ], |
286 'direct_dependent_settings': { | 292 'direct_dependent_settings': { |
287 'defines': [ | 293 'defines': [ |
| 294 'V8_SHARED', |
288 'USING_V8_SHARED', | 295 'USING_V8_SHARED', |
289 ], | 296 ], |
290 }, | 297 }, |
291 }], | 298 }], |
292 ], | 299 ], |
293 'dependencies': [ | 300 'dependencies': [ |
294 'v8_base', | 301 'v8_base', |
295 ], | 302 ], |
296 'include_dirs+': [ | 303 'include_dirs+': [ |
297 '..', | 304 '..', |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 }, | 1698 }, |
1692 'msvs_disabled_warnings': [4351, 4355, 4800], | 1699 'msvs_disabled_warnings': [4351, 4355, 4800], |
1693 # When building Official, the .lib is too large and exceeds the 2G | 1700 # When building Official, the .lib is too large and exceeds the 2G |
1694 # limit. This breaks it into multiple pieces to avoid the limit. | 1701 # limit. This breaks it into multiple pieces to avoid the limit. |
1695 # See http://crbug.com/485155. | 1702 # See http://crbug.com/485155. |
1696 'msvs_shard': 4, | 1703 'msvs_shard': 4, |
1697 }], | 1704 }], |
1698 ['component=="shared_library"', { | 1705 ['component=="shared_library"', { |
1699 'defines': [ | 1706 'defines': [ |
1700 'BUILDING_V8_SHARED', | 1707 'BUILDING_V8_SHARED', |
| 1708 'V8_SHARED', |
1701 ], | 1709 ], |
1702 }], | 1710 }], |
1703 ['v8_postmortem_support=="true"', { | 1711 ['v8_postmortem_support=="true"', { |
1704 'sources': [ | 1712 'sources': [ |
1705 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 1713 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
1706 ] | 1714 ] |
1707 }], | 1715 }], |
1708 ['v8_enable_i18n_support==1', { | 1716 ['v8_enable_i18n_support==1', { |
1709 'dependencies': [ | 1717 'dependencies': [ |
1710 '<(icu_gyp_path):icui18n', | 1718 '<(icu_gyp_path):icui18n', |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2440 'conditions': [ | 2448 'conditions': [ |
2441 ['want_separate_host_toolset_mkpeephole==1', { | 2449 ['want_separate_host_toolset_mkpeephole==1', { |
2442 'toolsets': ['host'], | 2450 'toolsets': ['host'], |
2443 }, { | 2451 }, { |
2444 'toolsets': ['target'], | 2452 'toolsets': ['target'], |
2445 }], | 2453 }], |
2446 ], | 2454 ], |
2447 }, | 2455 }, |
2448 ], | 2456 ], |
2449 } | 2457 } |
OLD | NEW |