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

Side by Side Diff: tools/gyp/v8.gyp

Issue 110573004: Merge bleeding_edge 17696:18016. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 # dependency however the Android toolchain requires libv8_base.a 52 # dependency however the Android toolchain requires libv8_base.a
53 # to appear before libv8_snapshot.a so it's listed explicitly. 53 # to appear before libv8_snapshot.a so it's listed explicitly.
54 'dependencies': [ 54 'dependencies': [
55 'v8_base.<(v8_target_arch)', 55 'v8_base.<(v8_target_arch)',
56 'v8_nosnapshot.<(v8_target_arch)', 56 'v8_nosnapshot.<(v8_target_arch)',
57 ], 57 ],
58 }], 58 }],
59 ['component=="shared_library"', { 59 ['component=="shared_library"', {
60 'type': '<(component)', 60 'type': '<(component)',
61 'sources': [ 61 'sources': [
62 '../../src/defaults.cc',
63 # Note: on non-Windows we still build this file so that gyp 62 # Note: on non-Windows we still build this file so that gyp
64 # has some sources to link into the component. 63 # has some sources to link into the component.
65 '../../src/v8dll-main.cc', 64 '../../src/v8dll-main.cc',
66 ], 65 ],
67 'defines': [ 66 'defines': [
68 'V8_SHARED', 67 'V8_SHARED',
69 'BUILDING_V8_SHARED', 68 'BUILDING_V8_SHARED',
70 ], 69 ],
71 'direct_dependent_settings': { 70 'direct_dependent_settings': {
72 'defines': [ 71 'defines': [
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ], 133 ],
135 'dependencies': [ 134 'dependencies': [
136 'v8_base.<(v8_target_arch)', 135 'v8_base.<(v8_target_arch)',
137 ], 136 ],
138 'include_dirs+': [ 137 'include_dirs+': [
139 '../../src', 138 '../../src',
140 ], 139 ],
141 'sources': [ 140 'sources': [
142 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 141 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
143 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 142 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
143 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
144 '<(INTERMEDIATE_DIR)/snapshot.cc', 144 '<(INTERMEDIATE_DIR)/snapshot.cc',
145 ], 145 ],
146 'actions': [ 146 'actions': [
147 { 147 {
148 'action_name': 'run_mksnapshot', 148 'action_name': 'run_mksnapshot',
149 'inputs': [ 149 'inputs': [
150 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot.<(v8_target_arch)<(EX ECUTABLE_SUFFIX)', 150 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot.<(v8_target_arch)<(EX ECUTABLE_SUFFIX)',
151 ], 151 ],
152 'outputs': [ 152 'outputs': [
153 '<(INTERMEDIATE_DIR)/snapshot.cc', 153 '<(INTERMEDIATE_DIR)/snapshot.cc',
(...skipping 22 matching lines...) Expand all
176 'type': 'static_library', 176 'type': 'static_library',
177 'dependencies': [ 177 'dependencies': [
178 'v8_base.<(v8_target_arch)', 178 'v8_base.<(v8_target_arch)',
179 ], 179 ],
180 'include_dirs+': [ 180 'include_dirs+': [
181 '../../src', 181 '../../src',
182 ], 182 ],
183 'sources': [ 183 'sources': [
184 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 184 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
185 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 185 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
186 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
186 '../../src/snapshot-empty.cc', 187 '../../src/snapshot-empty.cc',
187 ], 188 ],
188 'conditions': [ 189 'conditions': [
189 ['want_separate_host_toolset==1', { 190 ['want_separate_host_toolset==1', {
190 'toolsets': ['host', 'target'], 191 'toolsets': ['host', 'target'],
191 'dependencies': ['js2c#host'], 192 'dependencies': ['js2c#host'],
192 }, { 193 }, {
193 'toolsets': ['target'], 194 'toolsets': ['target'],
194 'dependencies': ['js2c'], 195 'dependencies': ['js2c'],
195 }], 196 }],
196 ['component=="shared_library"', { 197 ['component=="shared_library"', {
197 'defines': [ 198 'defines': [
198 'BUILDING_V8_SHARED', 199 'BUILDING_V8_SHARED',
199 'V8_SHARED', 200 'V8_SHARED',
200 ], 201 ],
201 }], 202 }],
202 ] 203 ]
203 }, 204 },
205 { 'target_name': 'generate_trig_table',
206 'type': 'none',
207 'conditions': [
208 ['want_separate_host_toolset==1', {
209 'toolsets': ['host', 'target'],
210 }, {
211 'toolsets': ['target'],
212 }],
213 ],
214 'actions': [
215 {
216 'action_name': 'generate',
217 'inputs': [
218 '../../tools/generate-trig-table.py',
219 ],
220 'outputs': [
221 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
222 ],
223 'action': [
224 'python',
225 '../../tools/generate-trig-table.py',
226 '<@(_outputs)',
227 ],
228 },
229 ]
230 },
204 { 231 {
205 'target_name': 'generated-lexer', 232 'target_name': 'generated-lexer',
206 'type': 'none', 233 'type': 'none',
207 'actions': [ 234 'actions': [
208 { 235 {
209 'action_name': 'codegen_8', 236 'action_name': 'codegen_8',
210 'inputs': [ 237 'inputs': [
211 '../../src/lexer/lexer_py.re', 238 '../../src/lexer/lexer_py.re',
212 '../../tools/lexer_generator/*.py', 239 '../../tools/lexer_generator/*.py',
213 '../../tools/lexer_generator/*.jinja', 240 '../../tools/lexer_generator/*.jinja',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 'target_name': 'v8_base.<(v8_target_arch)', 292 'target_name': 'v8_base.<(v8_target_arch)',
266 'type': 'static_library', 293 'type': 'static_library',
267 'conditions': [ 294 'conditions': [
268 ['want_separate_host_toolset==1', { 295 ['want_separate_host_toolset==1', {
269 'toolsets': ['host', 'target'], 296 'toolsets': ['host', 'target'],
270 'dependencies': ['generated-lexer#host'], 297 'dependencies': ['generated-lexer#host'],
271 }, { 298 }, {
272 'toolsets': ['target'], 299 'toolsets': ['target'],
273 'dependencies': ['generated-lexer'], 300 'dependencies': ['generated-lexer'],
274 }], 301 }],
302 'dependencies': [
303 'generate_trig_table',
275 ], 304 ],
276 'variables': { 305 'variables': {
277 'optimize': 'max', 306 'optimize': 'max',
278 }, 307 },
279 'include_dirs+': [ 308 'include_dirs+': [
280 '../../src', 309 '../../src',
281 '../../include', 310 '../../include',
282 ], 311 ],
283 'sources': [ ### gcmole(all) ### 312 'sources': [ ### gcmole(all) ###
284 '../../src/accessors.cc', 313 '../../src/accessors.cc',
285 '../../src/accessors.h', 314 '../../src/accessors.h',
286 '../../src/allocation.cc', 315 '../../src/allocation.cc',
287 '../../src/allocation.h', 316 '../../src/allocation.h',
288 '../../src/allocation-site-scopes.cc', 317 '../../src/allocation-site-scopes.cc',
289 '../../src/allocation-site-scopes.h', 318 '../../src/allocation-site-scopes.h',
319 '../../src/allocation-tracker.cc',
320 '../../src/allocation-tracker.h',
290 '../../src/api.cc', 321 '../../src/api.cc',
291 '../../src/api.h', 322 '../../src/api.h',
292 '../../src/apiutils.h', 323 '../../src/apiutils.h',
293 '../../src/arguments.cc', 324 '../../src/arguments.cc',
294 '../../src/arguments.h', 325 '../../src/arguments.h',
295 '../../src/assembler.cc', 326 '../../src/assembler.cc',
296 '../../src/assembler.h', 327 '../../src/assembler.h',
297 '../../src/assert-scope.h', 328 '../../src/assert-scope.h',
298 '../../src/ast.cc', 329 '../../src/ast.cc',
299 '../../src/ast.h', 330 '../../src/ast.h',
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 '../../src/data-flow.h', 373 '../../src/data-flow.h',
343 '../../src/date.cc', 374 '../../src/date.cc',
344 '../../src/date.h', 375 '../../src/date.h',
345 '../../src/dateparser-inl.h', 376 '../../src/dateparser-inl.h',
346 '../../src/dateparser.cc', 377 '../../src/dateparser.cc',
347 '../../src/dateparser.h', 378 '../../src/dateparser.h',
348 '../../src/debug-agent.cc', 379 '../../src/debug-agent.cc',
349 '../../src/debug-agent.h', 380 '../../src/debug-agent.h',
350 '../../src/debug.cc', 381 '../../src/debug.cc',
351 '../../src/debug.h', 382 '../../src/debug.h',
383 '../../src/default-platform.cc',
384 '../../src/default-platform.h',
352 '../../src/deoptimizer.cc', 385 '../../src/deoptimizer.cc',
353 '../../src/deoptimizer.h', 386 '../../src/deoptimizer.h',
354 '../../src/disasm.h', 387 '../../src/disasm.h',
355 '../../src/disassembler.cc', 388 '../../src/disassembler.cc',
356 '../../src/disassembler.h', 389 '../../src/disassembler.h',
357 '../../src/diy-fp.cc', 390 '../../src/diy-fp.cc',
358 '../../src/diy-fp.h', 391 '../../src/diy-fp.h',
359 '../../src/double.h', 392 '../../src/double.h',
360 '../../src/dtoa.cc', 393 '../../src/dtoa.cc',
361 '../../src/dtoa.h', 394 '../../src/dtoa.h',
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], 964 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
932 }, 965 },
933 }], 966 }],
934 ], 967 ],
935 }], 968 }],
936 ['component=="shared_library"', { 969 ['component=="shared_library"', {
937 'defines': [ 970 'defines': [
938 'BUILDING_V8_SHARED', 971 'BUILDING_V8_SHARED',
939 'V8_SHARED', 972 'V8_SHARED',
940 ], 973 ],
941 }, {
942 'sources': [
943 '../../src/defaults.cc',
944 ],
945 }], 974 }],
946 ['v8_postmortem_support=="true"', { 975 ['v8_postmortem_support=="true"', {
947 'sources': [ 976 'sources': [
948 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', 977 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
949 ] 978 ]
950 }], 979 }],
951 ['v8_enable_i18n_support==1', { 980 ['v8_enable_i18n_support==1', {
952 'dependencies': [ 981 'dependencies': [
953 '<(icu_gyp_path):icui18n', 982 '<(icu_gyp_path):icui18n',
954 '<(icu_gyp_path):icuuc', 983 '<(icu_gyp_path):icuuc',
955 ] 984 ]
956 }, { # v8_enable_i18n_support==0 985 }, { # v8_enable_i18n_support==0
957 'sources!': [ 986 'sources!': [
958 '../../src/i18n.cc', 987 '../../src/i18n.cc',
959 '../../src/i18n.h', 988 '../../src/i18n.h',
960 ], 989 ],
961 }], 990 }],
962 ['OS=="win" and v8_enable_i18n_support==1', { 991 ['OS=="win" and v8_enable_i18n_support==1', {
963 'dependencies': [ 992 'dependencies': [
964 '<(icu_gyp_path):icudata', 993 '<(icu_gyp_path):icudata',
965 ], 994 ],
966 }], 995 }],
996 ['v8_use_default_platform==0', {
997 'sources!': [
998 '../../src/default-platform.cc',
999 '../../src/default-platform.h',
1000 ],
1001 }],
967 ], 1002 ],
968 }, 1003 },
969 { 1004 {
970 'target_name': 'js2c', 1005 'target_name': 'js2c',
971 'type': 'none', 1006 'type': 'none',
972 'conditions': [ 1007 'conditions': [
973 ['want_separate_host_toolset==1', { 1008 ['want_separate_host_toolset==1', {
974 'toolsets': ['host'], 1009 'toolsets': ['host'],
975 }, { 1010 }, {
976 'toolsets': ['target'], 1011 'toolsets': ['target'],
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 }], 1171 }],
1137 ['v8_compress_startup_data=="bz2"', { 1172 ['v8_compress_startup_data=="bz2"', {
1138 'libraries': [ 1173 'libraries': [
1139 '-lbz2', 1174 '-lbz2',
1140 ] 1175 ]
1141 }], 1176 }],
1142 ], 1177 ],
1143 }, 1178 },
1144 ], 1179 ],
1145 } 1180 }
OLDNEW
« include/v8-platform.h ('K') | « tools/generate-trig-table.py ('k') | tools/lexer-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698