ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 1 | # Copyright 2009 the V8 project authors. All rights reserved. |
| 2 | # Redistribution and use in source and binary forms, with or without |
| 3 | # modification, are permitted provided that the following conditions are |
| 4 | # met: |
sgjesse@chromium.org | 755c5b1 | 2009-05-29 11:04:38 +0000 | [diff] [blame] | 5 | # |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 6 | # * Redistributions of source code must retain the above copyright |
| 7 | # notice, this list of conditions and the following disclaimer. |
| 8 | # * Redistributions in binary form must reproduce the above |
| 9 | # copyright notice, this list of conditions and the following |
| 10 | # disclaimer in the documentation and/or other materials provided |
| 11 | # with the distribution. |
| 12 | # * Neither the name of Google Inc. nor the names of its |
| 13 | # contributors may be used to endorse or promote products derived |
| 14 | # from this software without specific prior written permission. |
sgjesse@chromium.org | 755c5b1 | 2009-05-29 11:04:38 +0000 | [diff] [blame] | 15 | # |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | { |
| 29 | 'variables': { |
| 30 | 'chromium_code': 1, |
| 31 | 'msvs_use_common_release': 0, |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame] | 32 | 'gcc_version%': 'unknown', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 33 | 'target_arch%': 'ia32', |
| 34 | 'v8_use_snapshot%': 'true', |
sgjesse@chromium.org | 911335c | 2009-08-19 12:59:44 +0000 | [diff] [blame] | 35 | 'v8_regexp%': 'native', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 36 | }, |
| 37 | 'includes': [ |
| 38 | '../../../build/common.gypi', |
| 39 | ], |
| 40 | 'target_defaults': { |
| 41 | 'defines': [ |
| 42 | 'ENABLE_LOGGING_AND_PROFILING', |
| 43 | ], |
sgjesse@chromium.org | b9d7da1 | 2009-08-05 08:38:10 +0000 | [diff] [blame] | 44 | 'conditions': [ |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 45 | ['target_arch=="arm"', { |
| 46 | 'defines': [ |
| 47 | 'V8_TARGET_ARCH_ARM', |
| 48 | ], |
| 49 | }], |
| 50 | ['target_arch=="ia32"', { |
| 51 | 'defines': [ |
| 52 | 'V8_TARGET_ARCH_IA32', |
| 53 | 'V8_NATIVE_REGEXP', |
| 54 | ], |
| 55 | }], |
sgjesse@chromium.org | 0b6db59 | 2009-07-30 14:48:31 +0000 | [diff] [blame] | 56 | ['target_arch=="x64"', { |
| 57 | 'defines': [ |
| 58 | 'V8_TARGET_ARCH_X64', |
sgjesse@chromium.org | 911335c | 2009-08-19 12:59:44 +0000 | [diff] [blame] | 59 | 'V8_NATIVE_REGEXP', |
sgjesse@chromium.org | 0b6db59 | 2009-07-30 14:48:31 +0000 | [diff] [blame] | 60 | ], |
| 61 | }], |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 62 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 63 | 'configurations': { |
| 64 | 'Debug': { |
| 65 | 'defines': [ |
| 66 | 'DEBUG', |
| 67 | '_DEBUG', |
| 68 | 'ENABLE_DISASSEMBLER', |
ager@chromium.org | 18ad94b | 2009-09-02 08:22:29 +0000 | [diff] [blame^] | 69 | 'V8_ENABLE_CHECKS' |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 70 | ], |
| 71 | 'msvs_settings': { |
| 72 | 'VCCLCompilerTool': { |
| 73 | 'Optimizations': '0', |
| 74 | 'RuntimeLibrary': '1', |
| 75 | }, |
| 76 | 'VCLinkerTool': { |
| 77 | 'LinkIncremental': '2', |
| 78 | }, |
| 79 | }, |
| 80 | }, |
| 81 | 'Release': { |
| 82 | 'conditions': [ |
| 83 | ['OS=="linux"', { |
| 84 | 'cflags!': [ |
| 85 | '-O2', |
| 86 | ], |
| 87 | 'cflags': [ |
| 88 | '-fomit-frame-pointer', |
| 89 | '-O3', |
| 90 | ], |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame] | 91 | 'conditions': [ |
| 92 | [ 'gcc_version=="44"', { |
| 93 | 'cflags': [ |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 94 | # Avoid gcc 4.4 strict aliasing issues in dtoa.c |
| 95 | '-fno-strict-aliasing', |
| 96 | # Avoid crashes with gcc 4.4 in the v8 test suite. |
| 97 | '-fno-tree-vrp', |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame] | 98 | ], |
| 99 | }], |
| 100 | ], |
sgjesse@chromium.org | c81c894 | 2009-08-21 10:54:26 +0000 | [diff] [blame] | 101 | }], |
| 102 | ['OS=="mac"', { |
| 103 | 'xcode_settings': { |
| 104 | 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| 105 | 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc |
| 106 | # enables this at -O2 and above, |
| 107 | # but Apple gcc does not unless it |
| 108 | # is specified explicitly. |
| 109 | }, |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 110 | }], |
| 111 | ['OS=="win"', { |
| 112 | 'msvs_configuration_attributes': { |
| 113 | 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
| 114 | 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
| 115 | 'CharacterSet': '1', |
| 116 | }, |
| 117 | 'msvs_settings': { |
| 118 | 'VCCLCompilerTool': { |
| 119 | 'RuntimeLibrary': '0', |
| 120 | 'Optimizations': '2', |
| 121 | 'InlineFunctionExpansion': '2', |
| 122 | 'EnableIntrinsicFunctions': 'true', |
| 123 | 'FavorSizeOrSpeed': '0', |
| 124 | 'OmitFramePointers': 'true', |
| 125 | 'StringPooling': 'true', |
| 126 | }, |
| 127 | 'VCLinkerTool': { |
| 128 | 'LinkIncremental': '1', |
| 129 | 'OptimizeReferences': '2', |
| 130 | 'OptimizeForWindows98': '1', |
| 131 | 'EnableCOMDATFolding': '2', |
| 132 | }, |
| 133 | }, |
| 134 | }], |
| 135 | ], |
| 136 | }, |
| 137 | }, |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 138 | }, |
| 139 | 'targets': [ |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 140 | { |
| 141 | 'target_name': 'v8', |
| 142 | 'type': 'none', |
| 143 | 'conditions': [ |
| 144 | ['v8_use_snapshot=="true"', { |
| 145 | 'dependencies': ['v8_snapshot'], |
| 146 | }, |
| 147 | { |
| 148 | 'dependencies': ['v8_nosnapshot'], |
| 149 | }], |
| 150 | ], |
| 151 | 'direct_dependent_settings': { |
| 152 | 'include_dirs': [ |
| 153 | '../../include', |
| 154 | ], |
| 155 | }, |
| 156 | }, |
| 157 | { |
| 158 | 'target_name': 'v8_snapshot', |
| 159 | 'type': '<(library)', |
| 160 | 'dependencies': [ |
| 161 | 'mksnapshot', |
| 162 | 'js2c', |
| 163 | 'v8_base', |
| 164 | ], |
| 165 | 'include_dirs+': [ |
| 166 | '../../src', |
| 167 | ], |
| 168 | 'sources': [ |
| 169 | '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 170 | '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 171 | ], |
| 172 | 'actions': [ |
| 173 | { |
| 174 | 'action_name': 'run_mksnapshot', |
| 175 | 'inputs': [ |
| 176 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
| 177 | ], |
| 178 | 'outputs': [ |
| 179 | '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 180 | ], |
| 181 | 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 182 | }, |
| 183 | ], |
| 184 | }, |
| 185 | { |
| 186 | 'target_name': 'v8_nosnapshot', |
| 187 | 'type': '<(library)', |
| 188 | 'dependencies': [ |
| 189 | 'js2c', |
| 190 | 'v8_base', |
| 191 | ], |
| 192 | 'include_dirs+': [ |
| 193 | '../../src', |
| 194 | ], |
| 195 | 'sources': [ |
| 196 | '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 197 | '../../src/snapshot-empty.cc', |
| 198 | ], |
| 199 | }, |
| 200 | { |
| 201 | 'target_name': 'v8_base', |
| 202 | 'type': '<(library)', |
| 203 | 'include_dirs+': [ |
| 204 | '../../src', |
| 205 | ], |
| 206 | 'sources': [ |
| 207 | '../../src/accessors.cc', |
| 208 | '../../src/accessors.h', |
| 209 | '../../src/allocation.cc', |
| 210 | '../../src/allocation.h', |
| 211 | '../../src/api.cc', |
| 212 | '../../src/api.h', |
| 213 | '../../src/apiutils.h', |
| 214 | '../../src/arguments.h', |
| 215 | '../../src/assembler.cc', |
| 216 | '../../src/assembler.h', |
| 217 | '../../src/ast.cc', |
| 218 | '../../src/ast.h', |
| 219 | '../../src/bootstrapper.cc', |
| 220 | '../../src/bootstrapper.h', |
| 221 | '../../src/builtins.cc', |
| 222 | '../../src/builtins.h', |
| 223 | '../../src/bytecodes-irregexp.h', |
sgjesse@chromium.org | b9d7da1 | 2009-08-05 08:38:10 +0000 | [diff] [blame] | 224 | '../../src/cfg.cc', |
| 225 | '../../src/cfg.h', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 226 | '../../src/char-predicates-inl.h', |
| 227 | '../../src/char-predicates.h', |
| 228 | '../../src/checks.cc', |
| 229 | '../../src/checks.h', |
| 230 | '../../src/code-stubs.cc', |
| 231 | '../../src/code-stubs.h', |
| 232 | '../../src/code.h', |
| 233 | '../../src/codegen-inl.h', |
| 234 | '../../src/codegen.cc', |
| 235 | '../../src/codegen.h', |
| 236 | '../../src/compilation-cache.cc', |
| 237 | '../../src/compilation-cache.h', |
| 238 | '../../src/compiler.cc', |
| 239 | '../../src/compiler.h', |
| 240 | '../../src/contexts.cc', |
| 241 | '../../src/contexts.h', |
| 242 | '../../src/conversions-inl.h', |
| 243 | '../../src/conversions.cc', |
| 244 | '../../src/conversions.h', |
| 245 | '../../src/counters.cc', |
| 246 | '../../src/counters.h', |
| 247 | '../../src/cpu.h', |
| 248 | '../../src/dateparser.cc', |
| 249 | '../../src/dateparser.h', |
| 250 | '../../src/dateparser-inl.h', |
| 251 | '../../src/debug.cc', |
| 252 | '../../src/debug.h', |
| 253 | '../../src/debug-agent.cc', |
| 254 | '../../src/debug-agent.h', |
| 255 | '../../src/disasm.h', |
| 256 | '../../src/disassembler.cc', |
| 257 | '../../src/disassembler.h', |
| 258 | '../../src/dtoa-config.c', |
| 259 | '../../src/execution.cc', |
| 260 | '../../src/execution.h', |
| 261 | '../../src/factory.cc', |
| 262 | '../../src/factory.h', |
| 263 | '../../src/flag-definitions.h', |
| 264 | '../../src/flags.cc', |
| 265 | '../../src/flags.h', |
| 266 | '../../src/frames-inl.h', |
| 267 | '../../src/frames.cc', |
| 268 | '../../src/frames.h', |
kasperl@chromium.org | e959c18 | 2009-07-27 08:59:04 +0000 | [diff] [blame] | 269 | '../../src/frame-element.cc', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 270 | '../../src/frame-element.h', |
| 271 | '../../src/func-name-inferrer.cc', |
| 272 | '../../src/func-name-inferrer.h', |
| 273 | '../../src/global-handles.cc', |
| 274 | '../../src/global-handles.h', |
| 275 | '../../src/globals.h', |
| 276 | '../../src/handles-inl.h', |
| 277 | '../../src/handles.cc', |
| 278 | '../../src/handles.h', |
| 279 | '../../src/hashmap.cc', |
| 280 | '../../src/hashmap.h', |
| 281 | '../../src/heap-inl.h', |
| 282 | '../../src/heap.cc', |
| 283 | '../../src/heap.h', |
| 284 | '../../src/ic-inl.h', |
| 285 | '../../src/ic.cc', |
| 286 | '../../src/ic.h', |
| 287 | '../../src/interpreter-irregexp.cc', |
| 288 | '../../src/interpreter-irregexp.h', |
| 289 | '../../src/jump-target.cc', |
| 290 | '../../src/jump-target.h', |
| 291 | '../../src/jump-target-inl.h', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 292 | '../../src/jsregexp.cc', |
| 293 | '../../src/jsregexp.h', |
| 294 | '../../src/list-inl.h', |
| 295 | '../../src/list.h', |
| 296 | '../../src/log.cc', |
| 297 | '../../src/log-inl.h', |
| 298 | '../../src/log.h', |
| 299 | '../../src/log-utils.cc', |
| 300 | '../../src/log-utils.h', |
| 301 | '../../src/macro-assembler.h', |
| 302 | '../../src/mark-compact.cc', |
| 303 | '../../src/mark-compact.h', |
| 304 | '../../src/memory.h', |
| 305 | '../../src/messages.cc', |
| 306 | '../../src/messages.h', |
| 307 | '../../src/natives.h', |
| 308 | '../../src/objects-debug.cc', |
| 309 | '../../src/objects-inl.h', |
| 310 | '../../src/objects.cc', |
| 311 | '../../src/objects.h', |
| 312 | '../../src/oprofile-agent.h', |
| 313 | '../../src/oprofile-agent.cc', |
| 314 | '../../src/parser.cc', |
| 315 | '../../src/parser.h', |
| 316 | '../../src/platform.h', |
| 317 | '../../src/prettyprinter.cc', |
| 318 | '../../src/prettyprinter.h', |
| 319 | '../../src/property.cc', |
| 320 | '../../src/property.h', |
| 321 | '../../src/regexp-macro-assembler-irregexp-inl.h', |
| 322 | '../../src/regexp-macro-assembler-irregexp.cc', |
| 323 | '../../src/regexp-macro-assembler-irregexp.h', |
| 324 | '../../src/regexp-macro-assembler-tracer.cc', |
| 325 | '../../src/regexp-macro-assembler-tracer.h', |
| 326 | '../../src/regexp-macro-assembler.cc', |
| 327 | '../../src/regexp-macro-assembler.h', |
| 328 | '../../src/regexp-stack.cc', |
| 329 | '../../src/regexp-stack.h', |
| 330 | '../../src/register-allocator.h', |
| 331 | '../../src/register-allocator-inl.h', |
| 332 | '../../src/register-allocator.cc', |
| 333 | '../../src/rewriter.cc', |
| 334 | '../../src/rewriter.h', |
| 335 | '../../src/runtime.cc', |
| 336 | '../../src/runtime.h', |
| 337 | '../../src/scanner.cc', |
| 338 | '../../src/scanner.h', |
| 339 | '../../src/scopeinfo.cc', |
| 340 | '../../src/scopeinfo.h', |
| 341 | '../../src/scopes.cc', |
| 342 | '../../src/scopes.h', |
| 343 | '../../src/serialize.cc', |
| 344 | '../../src/serialize.h', |
| 345 | '../../src/shell.h', |
| 346 | '../../src/smart-pointer.h', |
| 347 | '../../src/snapshot-common.cc', |
| 348 | '../../src/snapshot.h', |
| 349 | '../../src/spaces-inl.h', |
| 350 | '../../src/spaces.cc', |
| 351 | '../../src/spaces.h', |
| 352 | '../../src/string-stream.cc', |
| 353 | '../../src/string-stream.h', |
| 354 | '../../src/stub-cache.cc', |
| 355 | '../../src/stub-cache.h', |
| 356 | '../../src/token.cc', |
| 357 | '../../src/token.h', |
| 358 | '../../src/top.cc', |
| 359 | '../../src/top.h', |
| 360 | '../../src/unicode-inl.h', |
| 361 | '../../src/unicode.cc', |
| 362 | '../../src/unicode.h', |
| 363 | '../../src/usage-analyzer.cc', |
| 364 | '../../src/usage-analyzer.h', |
| 365 | '../../src/utils.cc', |
| 366 | '../../src/utils.h', |
| 367 | '../../src/v8-counters.cc', |
| 368 | '../../src/v8-counters.h', |
| 369 | '../../src/v8.cc', |
| 370 | '../../src/v8.h', |
| 371 | '../../src/v8threads.cc', |
| 372 | '../../src/v8threads.h', |
| 373 | '../../src/variables.cc', |
| 374 | '../../src/variables.h', |
| 375 | '../../src/version.cc', |
| 376 | '../../src/version.h', |
| 377 | '../../src/virtual-frame.h', |
| 378 | '../../src/virtual-frame.cc', |
| 379 | '../../src/zone-inl.h', |
| 380 | '../../src/zone.cc', |
| 381 | '../../src/zone.h', |
| 382 | ], |
| 383 | 'conditions': [ |
| 384 | ['target_arch=="arm"', { |
| 385 | 'include_dirs+': [ |
| 386 | '../../src/arm', |
| 387 | ], |
| 388 | 'sources': [ |
| 389 | '../../src/arm/assembler-arm-inl.h', |
| 390 | '../../src/arm/assembler-arm.cc', |
| 391 | '../../src/arm/assembler-arm.h', |
| 392 | '../../src/arm/builtins-arm.cc', |
sgjesse@chromium.org | c81c894 | 2009-08-21 10:54:26 +0000 | [diff] [blame] | 393 | '../../src/arm/cfg-arm.cc', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 394 | '../../src/arm/codegen-arm.cc', |
| 395 | '../../src/arm/codegen-arm.h', |
| 396 | '../../src/arm/constants-arm.h', |
| 397 | '../../src/arm/cpu-arm.cc', |
| 398 | '../../src/arm/debug-arm.cc', |
| 399 | '../../src/arm/disasm-arm.cc', |
| 400 | '../../src/arm/frames-arm.cc', |
| 401 | '../../src/arm/frames-arm.h', |
| 402 | '../../src/arm/ic-arm.cc', |
| 403 | '../../src/arm/jump-target-arm.cc', |
| 404 | '../../src/arm/macro-assembler-arm.cc', |
| 405 | '../../src/arm/macro-assembler-arm.h', |
| 406 | '../../src/arm/regexp-macro-assembler-arm.cc', |
| 407 | '../../src/arm/regexp-macro-assembler-arm.h', |
| 408 | '../../src/arm/register-allocator-arm.cc', |
| 409 | '../../src/arm/simulator-arm.cc', |
| 410 | '../../src/arm/stub-cache-arm.cc', |
| 411 | '../../src/arm/virtual-frame-arm.cc', |
| 412 | '../../src/arm/virtual-frame-arm.h', |
| 413 | ], |
| 414 | }], |
| 415 | ['target_arch=="ia32"', { |
| 416 | 'include_dirs+': [ |
| 417 | '../../src/ia32', |
| 418 | ], |
| 419 | 'sources': [ |
| 420 | '../../src/ia32/assembler-ia32-inl.h', |
| 421 | '../../src/ia32/assembler-ia32.cc', |
| 422 | '../../src/ia32/assembler-ia32.h', |
| 423 | '../../src/ia32/builtins-ia32.cc', |
sgjesse@chromium.org | c81c894 | 2009-08-21 10:54:26 +0000 | [diff] [blame] | 424 | '../../src/ia32/cfg-ia32.cc', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 425 | '../../src/ia32/codegen-ia32.cc', |
| 426 | '../../src/ia32/codegen-ia32.h', |
| 427 | '../../src/ia32/cpu-ia32.cc', |
| 428 | '../../src/ia32/debug-ia32.cc', |
| 429 | '../../src/ia32/disasm-ia32.cc', |
| 430 | '../../src/ia32/frames-ia32.cc', |
| 431 | '../../src/ia32/frames-ia32.h', |
| 432 | '../../src/ia32/ic-ia32.cc', |
| 433 | '../../src/ia32/jump-target-ia32.cc', |
| 434 | '../../src/ia32/macro-assembler-ia32.cc', |
| 435 | '../../src/ia32/macro-assembler-ia32.h', |
ager@chromium.org | 18ad94b | 2009-09-02 08:22:29 +0000 | [diff] [blame^] | 436 | '../../src/ia32/regexp-macro-assembler-ia32.cc', |
| 437 | '../../src/ia32/regexp-macro-assembler-ia32.h', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 438 | '../../src/ia32/register-allocator-ia32.cc', |
| 439 | '../../src/ia32/stub-cache-ia32.cc', |
| 440 | '../../src/ia32/virtual-frame-ia32.cc', |
| 441 | '../../src/ia32/virtual-frame-ia32.h', |
| 442 | ], |
| 443 | }], |
sgjesse@chromium.org | 0b6db59 | 2009-07-30 14:48:31 +0000 | [diff] [blame] | 444 | ['target_arch=="x64"', { |
| 445 | 'include_dirs+': [ |
| 446 | '../../src/x64', |
| 447 | ], |
| 448 | 'sources': [ |
| 449 | '../../src/x64/assembler-x64-inl.h', |
| 450 | '../../src/x64/assembler-x64.cc', |
| 451 | '../../src/x64/assembler-x64.h', |
| 452 | '../../src/x64/builtins-x64.cc', |
sgjesse@chromium.org | c81c894 | 2009-08-21 10:54:26 +0000 | [diff] [blame] | 453 | '../../src/x64/cfg-x64.cc', |
sgjesse@chromium.org | 0b6db59 | 2009-07-30 14:48:31 +0000 | [diff] [blame] | 454 | '../../src/x64/codegen-x64.cc', |
| 455 | '../../src/x64/codegen-x64.h', |
| 456 | '../../src/x64/cpu-x64.cc', |
| 457 | '../../src/x64/debug-x64.cc', |
| 458 | '../../src/x64/disasm-x64.cc', |
| 459 | '../../src/x64/frames-x64.cc', |
| 460 | '../../src/x64/frames-x64.h', |
| 461 | '../../src/x64/ic-x64.cc', |
| 462 | '../../src/x64/jump-target-x64.cc', |
| 463 | '../../src/x64/macro-assembler-x64.cc', |
| 464 | '../../src/x64/macro-assembler-x64.h', |
ager@chromium.org | 18ad94b | 2009-09-02 08:22:29 +0000 | [diff] [blame^] | 465 | '../../src/x64/regexp-macro-assembler-x64.cc', |
| 466 | '../../src/x64/regexp-macro-assembler-x64.h', |
sgjesse@chromium.org | 0b6db59 | 2009-07-30 14:48:31 +0000 | [diff] [blame] | 467 | '../../src/x64/register-allocator-x64.cc', |
| 468 | '../../src/x64/stub-cache-x64.cc', |
| 469 | '../../src/x64/virtual-frame-x64.cc', |
| 470 | '../../src/x64/virtual-frame-x64.h', |
| 471 | ], |
| 472 | }], |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 473 | ['OS=="linux"', { |
| 474 | 'link_settings': { |
| 475 | 'libraries': [ |
| 476 | # Needed for clock_gettime() used by src/platform-linux.cc. |
| 477 | '-lrt', |
| 478 | ]}, |
| 479 | 'sources': [ |
| 480 | '../../src/platform-linux.cc', |
| 481 | '../../src/platform-posix.cc' |
| 482 | ], |
| 483 | } |
| 484 | ], |
| 485 | ['OS=="mac"', { |
| 486 | 'sources': [ |
| 487 | '../../src/platform-macos.cc', |
| 488 | '../../src/platform-posix.cc' |
| 489 | ]}, |
| 490 | ], |
| 491 | ['OS=="win"', { |
| 492 | 'sources': [ |
| 493 | '../../src/platform-win32.cc', |
| 494 | ], |
| 495 | # 4355, 4800 came from common.vsprops |
| 496 | # 4018, 4244 were a per file config on dtoa-config.c |
| 497 | # TODO: It's probably possible and desirable to stop disabling the |
| 498 | # dtoa-specific warnings by modifying dtoa as was done in Chromium |
| 499 | # r9255. Refer to that revision for details. |
| 500 | 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], |
| 501 | 'link_settings': { |
| 502 | 'libraries': [ '-lwinmm.lib' ], |
| 503 | }, |
| 504 | }], |
| 505 | ], |
| 506 | }, |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 507 | { |
| 508 | 'target_name': 'js2c', |
| 509 | 'type': 'none', |
| 510 | 'variables': { |
| 511 | 'library_files': [ |
| 512 | '../../src/runtime.js', |
| 513 | '../../src/v8natives.js', |
| 514 | '../../src/array.js', |
| 515 | '../../src/string.js', |
| 516 | '../../src/uri.js', |
| 517 | '../../src/math.js', |
| 518 | '../../src/messages.js', |
| 519 | '../../src/apinatives.js', |
| 520 | '../../src/debug-delay.js', |
| 521 | '../../src/mirror-delay.js', |
| 522 | '../../src/date-delay.js', |
| 523 | '../../src/json-delay.js', |
| 524 | '../../src/regexp-delay.js', |
| 525 | '../../src/macros.py', |
| 526 | ], |
| 527 | }, |
| 528 | 'actions': [ |
| 529 | { |
| 530 | 'action_name': 'js2c', |
| 531 | 'inputs': [ |
| 532 | '../../tools/js2c.py', |
| 533 | '<@(library_files)', |
| 534 | ], |
| 535 | 'outputs': [ |
| 536 | '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 537 | '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 538 | ], |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 539 | 'action': [ |
| 540 | 'python', |
kasperl@chromium.org | 3a2bafb | 2009-07-09 07:03:57 +0000 | [diff] [blame] | 541 | '../../tools/js2c.py', |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 542 | '<@(_outputs)', |
| 543 | 'CORE', |
| 544 | '<@(library_files)' |
kasperl@chromium.org | 3a2bafb | 2009-07-09 07:03:57 +0000 | [diff] [blame] | 545 | ], |
kasperl@chromium.org | 3a2bafb | 2009-07-09 07:03:57 +0000 | [diff] [blame] | 546 | }, |
| 547 | ], |
| 548 | }, |
kasperl@chromium.org | 3a2bafb | 2009-07-09 07:03:57 +0000 | [diff] [blame] | 549 | { |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 550 | 'target_name': 'mksnapshot', |
| 551 | 'type': 'executable', |
| 552 | 'dependencies': [ |
| 553 | 'v8_nosnapshot', |
| 554 | ], |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 555 | 'include_dirs+': [ |
| 556 | '../../src', |
| 557 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 558 | 'sources': [ |
| 559 | '../../src/mksnapshot.cc', |
| 560 | ], |
| 561 | }, |
| 562 | { |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 563 | 'target_name': 'v8_shell', |
| 564 | 'type': 'executable', |
| 565 | 'dependencies': [ |
kasperl@chromium.org | d628ef5 | 2009-07-09 11:16:01 +0000 | [diff] [blame] | 566 | 'v8' |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 567 | ], |
| 568 | 'sources': [ |
| 569 | '../../samples/shell.cc', |
| 570 | ], |
| 571 | 'conditions': [ |
| 572 | [ 'OS=="win"', { |
| 573 | # This could be gotten by not setting chromium_code, if that's OK. |
| 574 | 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
| 575 | }], |
| 576 | ], |
| 577 | }, |
| 578 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 579 | } |