Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/v8.gyp

Issue 2342563002: [d8] Fix the shared-library build (Closed)
Patch Set: Mark as extern in .cc Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/utils.cc ('k') | src/wasm/wasm-js.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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',
65 'BUILDING_V8_SHARED', 64 'BUILDING_V8_SHARED',
66 ], 65 ],
67 'direct_dependent_settings': { 66 'direct_dependent_settings': {
68 'defines': [ 67 'defines': [
69 'V8_SHARED',
70 'USING_V8_SHARED', 68 'USING_V8_SHARED',
71 ], 69 ],
72 }, 70 },
73 'target_conditions': [ 71 'target_conditions': [
74 ['OS=="android" and _toolset=="target"', { 72 ['OS=="android" and _toolset=="target"', {
75 'libraries': [ 73 'libraries': [
76 '-llog', 74 '-llog',
77 ], 75 ],
78 'include_dirs': [ 76 'include_dirs': [
79 'src/common/android/include', 77 'src/common/android/include',
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ], 155 ],
158 }, { 156 }, {
159 'toolsets': ['target'], 157 'toolsets': ['target'],
160 'dependencies': [ 158 'dependencies': [
161 'mksnapshot', 159 'mksnapshot',
162 'js2c', 160 'js2c',
163 ], 161 ],
164 }], 162 }],
165 ['component=="shared_library"', { 163 ['component=="shared_library"', {
166 'defines': [ 164 'defines': [
167 'V8_SHARED',
168 'BUILDING_V8_SHARED', 165 'BUILDING_V8_SHARED',
169 ], 166 ],
170 'direct_dependent_settings': { 167 'direct_dependent_settings': {
171 'defines': [ 168 'defines': [
172 'V8_SHARED',
173 'USING_V8_SHARED', 169 'USING_V8_SHARED',
174 ], 170 ],
175 }, 171 },
176 }], 172 }],
177 ], 173 ],
178 'dependencies': [ 174 'dependencies': [
179 'v8_base', 175 'v8_base',
180 ], 176 ],
181 'include_dirs+': [ 177 'include_dirs+': [
182 '..', 178 '..',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 ['want_separate_host_toolset==1', { 248 ['want_separate_host_toolset==1', {
253 'toolsets': ['host', 'target'], 249 'toolsets': ['host', 'target'],
254 'dependencies': ['js2c#host'], 250 'dependencies': ['js2c#host'],
255 }, { 251 }, {
256 'toolsets': ['target'], 252 'toolsets': ['target'],
257 'dependencies': ['js2c'], 253 'dependencies': ['js2c'],
258 }], 254 }],
259 ['component=="shared_library"', { 255 ['component=="shared_library"', {
260 'defines': [ 256 'defines': [
261 'BUILDING_V8_SHARED', 257 'BUILDING_V8_SHARED',
262 'V8_SHARED',
263 ], 258 ],
264 }], 259 }],
265 ] 260 ]
266 }, 261 },
267 { 262 {
268 'target_name': 'v8_external_snapshot', 263 'target_name': 'v8_external_snapshot',
269 'type': 'static_library', 264 'type': 'static_library',
270 'conditions': [ 265 'conditions': [
271 [ 'v8_use_external_startup_data==1', { 266 [ 'v8_use_external_startup_data==1', {
272 'conditions': [ 267 'conditions': [
273 ['want_separate_host_toolset==1', { 268 ['want_separate_host_toolset==1', {
274 'toolsets': ['host', 'target'], 269 'toolsets': ['host', 'target'],
275 'dependencies': [ 270 'dependencies': [
276 'mksnapshot#host', 271 'mksnapshot#host',
277 'js2c#host', 272 'js2c#host',
278 'natives_blob', 273 'natives_blob',
279 ]}, { 274 ]}, {
280 'toolsets': ['target'], 275 'toolsets': ['target'],
281 'dependencies': [ 276 'dependencies': [
282 'mksnapshot', 277 'mksnapshot',
283 'js2c', 278 'js2c',
284 'natives_blob', 279 'natives_blob',
285 ], 280 ],
286 }], 281 }],
287 ['component=="shared_library"', { 282 ['component=="shared_library"', {
288 'defines': [ 283 'defines': [
289 'V8_SHARED',
290 'BUILDING_V8_SHARED', 284 'BUILDING_V8_SHARED',
291 ], 285 ],
292 'direct_dependent_settings': { 286 'direct_dependent_settings': {
293 'defines': [ 287 'defines': [
294 'V8_SHARED',
295 'USING_V8_SHARED', 288 'USING_V8_SHARED',
296 ], 289 ],
297 }, 290 },
298 }], 291 }],
299 ], 292 ],
300 'dependencies': [ 293 'dependencies': [
301 'v8_base', 294 'v8_base',
302 ], 295 ],
303 'include_dirs+': [ 296 'include_dirs+': [
304 '..', 297 '..',
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 }, 1699 },
1707 'msvs_disabled_warnings': [4351, 4355, 4800], 1700 'msvs_disabled_warnings': [4351, 4355, 4800],
1708 # When building Official, the .lib is too large and exceeds the 2G 1701 # When building Official, the .lib is too large and exceeds the 2G
1709 # limit. This breaks it into multiple pieces to avoid the limit. 1702 # limit. This breaks it into multiple pieces to avoid the limit.
1710 # See http://crbug.com/485155. 1703 # See http://crbug.com/485155.
1711 'msvs_shard': 4, 1704 'msvs_shard': 4,
1712 }], 1705 }],
1713 ['component=="shared_library"', { 1706 ['component=="shared_library"', {
1714 'defines': [ 1707 'defines': [
1715 'BUILDING_V8_SHARED', 1708 'BUILDING_V8_SHARED',
1716 'V8_SHARED',
1717 ], 1709 ],
1718 }], 1710 }],
1719 ['v8_postmortem_support=="true"', { 1711 ['v8_postmortem_support=="true"', {
1720 'sources': [ 1712 'sources': [
1721 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', 1713 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
1722 ] 1714 ]
1723 }], 1715 }],
1724 ['v8_enable_i18n_support==1', { 1716 ['v8_enable_i18n_support==1', {
1725 'dependencies': [ 1717 'dependencies': [
1726 '<(icu_gyp_path):icui18n', 1718 '<(icu_gyp_path):icui18n',
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 'conditions': [ 2445 'conditions': [
2454 ['want_separate_host_toolset_mkpeephole==1', { 2446 ['want_separate_host_toolset_mkpeephole==1', {
2455 'toolsets': ['host'], 2447 'toolsets': ['host'],
2456 }, { 2448 }, {
2457 'toolsets': ['target'], 2449 'toolsets': ['target'],
2458 }], 2450 }],
2459 ], 2451 ],
2460 }, 2452 },
2461 ], 2453 ],
2462 } 2454 }
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | src/wasm/wasm-js.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698