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', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 33 | 'base_source_files': [ |
| 34 | '../../src/arm/assembler-arm-inl.h', |
| 35 | '../../src/arm/assembler-arm.cc', |
| 36 | '../../src/arm/assembler-arm.h', |
| 37 | '../../src/arm/builtins-arm.cc', |
| 38 | '../../src/arm/codegen-arm.cc', |
| 39 | '../../src/arm/codegen-arm.h', |
| 40 | '../../src/arm/constants-arm.h', |
| 41 | '../../src/arm/cpu-arm.cc', |
| 42 | '../../src/arm/debug-arm.cc', |
| 43 | '../../src/arm/disasm-arm.cc', |
| 44 | '../../src/arm/frames-arm.cc', |
| 45 | '../../src/arm/frames-arm.h', |
| 46 | '../../src/arm/ic-arm.cc', |
| 47 | '../../src/arm/jump-target-arm.cc', |
| 48 | '../../src/arm/macro-assembler-arm.cc', |
| 49 | '../../src/arm/macro-assembler-arm.h', |
| 50 | '../../src/arm/regexp-macro-assembler-arm.cc', |
| 51 | '../../src/arm/regexp-macro-assembler-arm.h', |
| 52 | '../../src/arm/register-allocator-arm.cc', |
| 53 | '../../src/arm/simulator-arm.cc', |
| 54 | '../../src/arm/stub-cache-arm.cc', |
| 55 | '../../src/arm/virtual-frame-arm.cc', |
| 56 | '../../src/arm/virtual-frame-arm.h', |
| 57 | '../../src/ia32/assembler-ia32-inl.h', |
| 58 | '../../src/ia32/assembler-ia32.cc', |
| 59 | '../../src/ia32/assembler-ia32.h', |
| 60 | '../../src/ia32/builtins-ia32.cc', |
| 61 | '../../src/ia32/codegen-ia32.cc', |
| 62 | '../../src/ia32/codegen-ia32.h', |
| 63 | '../../src/ia32/cpu-ia32.cc', |
| 64 | '../../src/ia32/debug-ia32.cc', |
| 65 | '../../src/ia32/disasm-ia32.cc', |
| 66 | '../../src/ia32/frames-ia32.cc', |
| 67 | '../../src/ia32/frames-ia32.h', |
| 68 | '../../src/ia32/ic-ia32.cc', |
| 69 | '../../src/ia32/jump-target-ia32.cc', |
| 70 | '../../src/ia32/macro-assembler-ia32.cc', |
| 71 | '../../src/ia32/macro-assembler-ia32.h', |
| 72 | '../../src/ia32/regexp-macro-assembler-ia32.cc', |
| 73 | '../../src/ia32/regexp-macro-assembler-ia32.h', |
| 74 | '../../src/ia32/register-allocator-ia32.cc', |
| 75 | '../../src/ia32/stub-cache-ia32.cc', |
| 76 | '../../src/ia32/virtual-frame-ia32.cc', |
| 77 | '../../src/ia32/virtual-frame-ia32.h', |
| 78 | '../../src/third_party/dtoa/dtoa.c', |
| 79 | '../../src/accessors.cc', |
| 80 | '../../src/accessors.h', |
| 81 | '../../src/allocation.cc', |
| 82 | '../../src/allocation.h', |
| 83 | '../../src/api.cc', |
| 84 | '../../src/api.h', |
| 85 | '../../src/apiutils.h', |
| 86 | '../../src/arguments.h', |
| 87 | '../../src/assembler.cc', |
| 88 | '../../src/assembler.h', |
| 89 | '../../src/ast.cc', |
| 90 | '../../src/ast.h', |
| 91 | '../../src/bootstrapper.cc', |
| 92 | '../../src/bootstrapper.h', |
| 93 | '../../src/builtins.cc', |
| 94 | '../../src/builtins.h', |
| 95 | '../../src/bytecodes-irregexp.h', |
| 96 | '../../src/char-predicates-inl.h', |
| 97 | '../../src/char-predicates.h', |
| 98 | '../../src/checks.cc', |
| 99 | '../../src/checks.h', |
| 100 | '../../src/code-stubs.cc', |
| 101 | '../../src/code-stubs.h', |
| 102 | '../../src/code.h', |
| 103 | '../../src/codegen-inl.h', |
| 104 | '../../src/codegen.cc', |
| 105 | '../../src/codegen.h', |
| 106 | '../../src/compilation-cache.cc', |
| 107 | '../../src/compilation-cache.h', |
| 108 | '../../src/compiler.cc', |
| 109 | '../../src/compiler.h', |
| 110 | '../../src/contexts.cc', |
| 111 | '../../src/contexts.h', |
| 112 | '../../src/conversions-inl.h', |
| 113 | '../../src/conversions.cc', |
| 114 | '../../src/conversions.h', |
| 115 | '../../src/counters.cc', |
| 116 | '../../src/counters.h', |
| 117 | '../../src/cpu.h', |
| 118 | '../../src/dateparser.cc', |
| 119 | '../../src/dateparser.h', |
| 120 | '../../src/dateparser-inl.h', |
| 121 | '../../src/debug.cc', |
| 122 | '../../src/debug.h', |
| 123 | '../../src/debug-agent.cc', |
| 124 | '../../src/debug-agent.h', |
| 125 | '../../src/disasm.h', |
| 126 | '../../src/disassembler.cc', |
| 127 | '../../src/disassembler.h', |
| 128 | '../../src/dtoa-config.c', |
| 129 | '../../src/execution.cc', |
| 130 | '../../src/execution.h', |
| 131 | '../../src/factory.cc', |
| 132 | '../../src/factory.h', |
| 133 | '../../src/flag-definitions.h', |
| 134 | '../../src/flags.cc', |
| 135 | '../../src/flags.h', |
| 136 | '../../src/frames-inl.h', |
| 137 | '../../src/frames.cc', |
| 138 | '../../src/frames.h', |
kasperl@chromium.org | b3284ad | 2009-05-18 06:12:45 +0000 | [diff] [blame] | 139 | '../../src/frame-element.h', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 140 | '../../src/func-name-inferrer.cc', |
| 141 | '../../src/func-name-inferrer.h', |
| 142 | '../../src/global-handles.cc', |
| 143 | '../../src/global-handles.h', |
| 144 | '../../src/globals.h', |
| 145 | '../../src/handles-inl.h', |
| 146 | '../../src/handles.cc', |
| 147 | '../../src/handles.h', |
| 148 | '../../src/hashmap.cc', |
| 149 | '../../src/hashmap.h', |
| 150 | '../../src/heap-inl.h', |
| 151 | '../../src/heap.cc', |
| 152 | '../../src/heap.h', |
| 153 | '../../src/ic-inl.h', |
| 154 | '../../src/ic.cc', |
| 155 | '../../src/ic.h', |
| 156 | '../../src/interpreter-irregexp.cc', |
| 157 | '../../src/interpreter-irregexp.h', |
| 158 | '../../src/jump-target.cc', |
| 159 | '../../src/jump-target.h', |
kasperl@chromium.org | b3284ad | 2009-05-18 06:12:45 +0000 | [diff] [blame] | 160 | '../../src/jump-target-inl.h', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 161 | '../../src/jsregexp-inl.h', |
| 162 | '../../src/jsregexp.cc', |
| 163 | '../../src/jsregexp.h', |
| 164 | '../../src/list-inl.h', |
| 165 | '../../src/list.h', |
| 166 | '../../src/log.cc', |
| 167 | '../../src/log.h', |
sgjesse@chromium.org | 755c5b1 | 2009-05-29 11:04:38 +0000 | [diff] [blame^] | 168 | '../../src/log-utils.cc', |
| 169 | '../../src/log-utils.h', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 170 | '../../src/macro-assembler.h', |
| 171 | '../../src/mark-compact.cc', |
| 172 | '../../src/mark-compact.h', |
| 173 | '../../src/memory.h', |
| 174 | '../../src/messages.cc', |
| 175 | '../../src/messages.h', |
| 176 | '../../src/natives.h', |
| 177 | '../../src/objects-debug.cc', |
| 178 | '../../src/objects-inl.h', |
| 179 | '../../src/objects.cc', |
| 180 | '../../src/objects.h', |
| 181 | '../../src/oprofile-agent.h', |
| 182 | '../../src/oprofile-agent.cc', |
| 183 | '../../src/parser.cc', |
| 184 | '../../src/parser.h', |
| 185 | '../../src/platform-freebsd.cc', |
| 186 | '../../src/platform-linux.cc', |
| 187 | '../../src/platform-macos.cc', |
| 188 | '../../src/platform-nullos.cc', |
| 189 | '../../src/platform-posix.cc', |
| 190 | '../../src/platform-win32.cc', |
| 191 | '../../src/platform.h', |
| 192 | '../../src/prettyprinter.cc', |
| 193 | '../../src/prettyprinter.h', |
| 194 | '../../src/property.cc', |
| 195 | '../../src/property.h', |
| 196 | '../../src/regexp-macro-assembler-irregexp-inl.h', |
| 197 | '../../src/regexp-macro-assembler-irregexp.cc', |
| 198 | '../../src/regexp-macro-assembler-irregexp.h', |
| 199 | '../../src/regexp-macro-assembler-tracer.cc', |
| 200 | '../../src/regexp-macro-assembler-tracer.h', |
| 201 | '../../src/regexp-macro-assembler.cc', |
| 202 | '../../src/regexp-macro-assembler.h', |
| 203 | '../../src/regexp-stack.cc', |
| 204 | '../../src/regexp-stack.h', |
| 205 | '../../src/register-allocator.h', |
| 206 | '../../src/register-allocator-inl.h', |
| 207 | '../../src/register-allocator.cc', |
| 208 | '../../src/rewriter.cc', |
| 209 | '../../src/rewriter.h', |
| 210 | '../../src/runtime.cc', |
| 211 | '../../src/runtime.h', |
| 212 | '../../src/scanner.cc', |
| 213 | '../../src/scanner.h', |
| 214 | '../../src/scopeinfo.cc', |
| 215 | '../../src/scopeinfo.h', |
| 216 | '../../src/scopes.cc', |
| 217 | '../../src/scopes.h', |
| 218 | '../../src/serialize.cc', |
| 219 | '../../src/serialize.h', |
| 220 | '../../src/shell.h', |
| 221 | '../../src/smart-pointer.h', |
| 222 | '../../src/snapshot-common.cc', |
| 223 | '../../src/snapshot.h', |
| 224 | '../../src/spaces-inl.h', |
| 225 | '../../src/spaces.cc', |
| 226 | '../../src/spaces.h', |
| 227 | '../../src/string-stream.cc', |
| 228 | '../../src/string-stream.h', |
| 229 | '../../src/stub-cache.cc', |
| 230 | '../../src/stub-cache.h', |
| 231 | '../../src/token.cc', |
| 232 | '../../src/token.h', |
| 233 | '../../src/top.cc', |
| 234 | '../../src/top.h', |
| 235 | '../../src/unicode-inl.h', |
| 236 | '../../src/unicode.cc', |
| 237 | '../../src/unicode.h', |
| 238 | '../../src/usage-analyzer.cc', |
| 239 | '../../src/usage-analyzer.h', |
| 240 | '../../src/utils.cc', |
| 241 | '../../src/utils.h', |
| 242 | '../../src/v8-counters.cc', |
| 243 | '../../src/v8-counters.h', |
| 244 | '../../src/v8.cc', |
| 245 | '../../src/v8.h', |
| 246 | '../../src/v8threads.cc', |
| 247 | '../../src/v8threads.h', |
| 248 | '../../src/variables.cc', |
| 249 | '../../src/variables.h', |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 250 | '../../src/version.cc', |
| 251 | '../../src/version.h', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 252 | '../../src/virtual-frame.h', |
| 253 | '../../src/virtual-frame.cc', |
| 254 | '../../src/zone-inl.h', |
| 255 | '../../src/zone.cc', |
| 256 | '../../src/zone.h', |
| 257 | ], |
| 258 | 'not_base_source_files': [ |
| 259 | # These files are #included by others and are not meant to be compiled |
| 260 | # directly. |
| 261 | '../../src/third_party/dtoa/dtoa.c', |
| 262 | ], |
| 263 | 'd8_source_files': [ |
| 264 | '../../src/d8-debug.cc', |
| 265 | '../../src/d8-posix.cc', |
| 266 | '../../src/d8-readline.cc', |
| 267 | '../../src/d8-windows.cc', |
| 268 | '../../src/d8.cc', |
| 269 | ], |
| 270 | }, |
| 271 | 'includes': [ |
| 272 | '../../../build/common.gypi', |
| 273 | ], |
| 274 | 'target_defaults': { |
| 275 | 'defines': [ |
| 276 | 'ENABLE_LOGGING_AND_PROFILING', |
| 277 | ], |
| 278 | 'configurations': { |
| 279 | 'Debug': { |
| 280 | 'defines': [ |
| 281 | 'DEBUG', |
| 282 | '_DEBUG', |
| 283 | 'ENABLE_DISASSEMBLER', |
| 284 | ], |
| 285 | 'msvs_settings': { |
| 286 | 'VCCLCompilerTool': { |
| 287 | 'Optimizations': '0', |
| 288 | 'RuntimeLibrary': '1', |
| 289 | }, |
| 290 | 'VCLinkerTool': { |
| 291 | 'LinkIncremental': '2', |
| 292 | }, |
| 293 | }, |
| 294 | }, |
| 295 | 'Release': { |
| 296 | 'conditions': [ |
| 297 | ['OS=="linux"', { |
| 298 | 'cflags!': [ |
| 299 | '-O2', |
| 300 | ], |
| 301 | 'cflags': [ |
| 302 | '-fomit-frame-pointer', |
| 303 | '-O3', |
| 304 | ], |
kasperl@chromium.org | 71affb5 | 2009-05-26 05:44:31 +0000 | [diff] [blame] | 305 | 'conditions': [ |
| 306 | [ 'gcc_version=="44"', { |
| 307 | 'cflags': [ |
| 308 | # Avoid gcc 4.4 strict aliasing issues in dtoa.c |
| 309 | '-fno-strict-aliasing', |
| 310 | # Avoid gcc 4.4 mksnapshot segfault. |
| 311 | '-fno-tree-vectorize', |
| 312 | # Avoid crashes with gcc 4.4 in the v8 test suite. |
| 313 | '-fno-tree-vrp', |
| 314 | ], |
| 315 | }], |
| 316 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 317 | 'cflags_cc': [ |
| 318 | '-fno-rtti', |
| 319 | ], |
| 320 | }], |
| 321 | ['OS=="win"', { |
| 322 | 'msvs_configuration_attributes': { |
| 323 | 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
| 324 | 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
| 325 | 'CharacterSet': '1', |
| 326 | }, |
| 327 | 'msvs_settings': { |
| 328 | 'VCCLCompilerTool': { |
| 329 | 'RuntimeLibrary': '0', |
| 330 | 'Optimizations': '2', |
| 331 | 'InlineFunctionExpansion': '2', |
| 332 | 'EnableIntrinsicFunctions': 'true', |
| 333 | 'FavorSizeOrSpeed': '0', |
| 334 | 'OmitFramePointers': 'true', |
| 335 | 'StringPooling': 'true', |
| 336 | }, |
| 337 | 'VCLinkerTool': { |
| 338 | 'LinkIncremental': '1', |
| 339 | 'OptimizeReferences': '2', |
| 340 | 'OptimizeForWindows98': '1', |
| 341 | 'EnableCOMDATFolding': '2', |
| 342 | }, |
| 343 | }, |
| 344 | }], |
| 345 | ], |
| 346 | }, |
| 347 | }, |
| 348 | 'xcode_settings': { |
| 349 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', |
| 350 | 'GCC_ENABLE_CPP_RTTI': 'NO', |
| 351 | }, |
| 352 | }, |
| 353 | 'targets': [ |
| 354 | # Targets that apply to any architecture. |
| 355 | { |
| 356 | 'target_name': 'js2c', |
| 357 | 'type': 'none', |
| 358 | 'variables': { |
| 359 | 'library_files': [ |
| 360 | '../../src/runtime.js', |
| 361 | '../../src/v8natives.js', |
| 362 | '../../src/array.js', |
| 363 | '../../src/string.js', |
| 364 | '../../src/uri.js', |
| 365 | '../../src/math.js', |
| 366 | '../../src/messages.js', |
| 367 | '../../src/apinatives.js', |
| 368 | '../../src/debug-delay.js', |
| 369 | '../../src/mirror-delay.js', |
| 370 | '../../src/date-delay.js', |
| 371 | '../../src/json-delay.js', |
| 372 | '../../src/regexp-delay.js', |
| 373 | '../../src/macros.py', |
| 374 | ], |
| 375 | }, |
| 376 | 'actions': [ |
| 377 | { |
| 378 | 'action_name': 'js2c', |
| 379 | 'inputs': [ |
| 380 | '../../tools/js2c.py', |
| 381 | '<@(library_files)', |
| 382 | ], |
| 383 | 'outputs': [ |
| 384 | '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 385 | '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 386 | ], |
| 387 | 'action': ['python', '../../tools/js2c.py', '<@(_outputs)', 'CORE', '<@(library_files)'], |
| 388 | }, |
| 389 | ], |
| 390 | }, |
| 391 | { |
| 392 | 'target_name': 'd8_js2c', |
| 393 | 'type': 'none', |
| 394 | 'variables': { |
| 395 | 'library_files': [ |
| 396 | '../../src/d8.js', |
| 397 | '../../src/macros.py', |
| 398 | ], |
| 399 | }, |
| 400 | 'actions': [ |
| 401 | { |
| 402 | 'action_name': 'js2c', |
| 403 | 'inputs': [ |
| 404 | '../../tools/js2c.py', |
| 405 | '<@(library_files)', |
| 406 | ], |
| 407 | 'extra_inputs': [ |
| 408 | ], |
| 409 | 'outputs': [ |
| 410 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
| 411 | '<(SHARED_INTERMEDIATE_DIR)/d8-js-empty.cc', |
| 412 | ], |
| 413 | 'action': ['python', '../../tools/js2c.py', '<@(_outputs)', 'D8', '<@(library_files)'], |
| 414 | }, |
| 415 | ], |
| 416 | }, |
| 417 | |
| 418 | # Targets to build v8 for the native architecture (ia32). |
| 419 | { |
| 420 | 'target_name': 'v8_base', |
| 421 | 'type': '<(library)', |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 422 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 423 | 'V8_TARGET_ARCH_IA32' |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 424 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 425 | 'include_dirs+': [ |
| 426 | '../../src', |
| 427 | '../../src/ia32', |
| 428 | ], |
| 429 | 'msvs_guid': 'EC8B7909-62AF-470D-A75D-E1D89C837142', |
| 430 | 'sources': [ |
| 431 | '<@(base_source_files)', |
| 432 | ], |
| 433 | 'sources!': [ |
| 434 | '<@(not_base_source_files)', |
| 435 | ], |
| 436 | 'sources/': [ |
| 437 | ['exclude', '-arm\\.cc$'], |
| 438 | ['exclude', 'src/platform-.*\\.cc$' ], |
| 439 | ], |
| 440 | 'conditions': [ |
| 441 | ['OS=="linux"', |
| 442 | { |
| 443 | 'link_settings': { |
| 444 | 'libraries': [ |
| 445 | # Needed for clock_gettime() used by src/platform-linux.cc. |
| 446 | '-lrt', |
| 447 | ], |
| 448 | }, |
| 449 | 'sources/': [ |
| 450 | ['include', 'src/platform-linux\\.cc$'], |
| 451 | ['include', 'src/platform-posix\\.cc$'] |
| 452 | ] |
| 453 | } |
| 454 | ], |
| 455 | ['OS=="mac"', |
| 456 | { |
| 457 | 'sources/': [ |
| 458 | ['include', 'src/platform-macos\\.cc$'], |
| 459 | ['include', 'src/platform-posix\\.cc$'] |
| 460 | ] |
| 461 | } |
| 462 | ], |
| 463 | ['OS=="win"', { |
| 464 | 'sources/': [['include', 'src/platform-win32\\.cc$']], |
| 465 | # 4355, 4800 came from common.vsprops |
| 466 | # 4018, 4244 were a per file config on dtoa-config.c |
| 467 | # TODO: It's probably possible and desirable to stop disabling the |
| 468 | # dtoa-specific warnings by modifying dtoa as was done in Chromium |
| 469 | # r9255. Refer to that revision for details. |
| 470 | 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], |
| 471 | 'link_settings': { |
| 472 | 'libraries': [ '-lwinmm.lib' ], |
| 473 | }, |
| 474 | }], |
| 475 | ], |
| 476 | }, |
| 477 | { |
| 478 | 'target_name': 'v8_nosnapshot', |
| 479 | 'type': '<(library)', |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 480 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 481 | 'V8_TARGET_ARCH_IA32' |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 482 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 483 | 'dependencies': [ |
| 484 | 'js2c', |
| 485 | 'v8_base', |
| 486 | ], |
| 487 | 'include_dirs': [ |
| 488 | '../../src', |
| 489 | ], |
| 490 | 'sources': [ |
| 491 | '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 492 | '../../src/snapshot-empty.cc', |
| 493 | ], |
| 494 | 'export_dependent_settings': [ |
| 495 | 'v8_base', |
| 496 | ], |
| 497 | }, |
| 498 | { |
| 499 | 'target_name': 'mksnapshot', |
| 500 | 'type': 'executable', |
| 501 | 'dependencies': [ |
| 502 | 'v8_nosnapshot', |
| 503 | ], |
| 504 | 'msvs_guid': '865575D0-37E2-405E-8CBA-5F6C485B5A26', |
| 505 | 'sources': [ |
| 506 | '../../src/mksnapshot.cc', |
| 507 | ], |
| 508 | }, |
| 509 | { |
| 510 | 'target_name': 'v8', |
| 511 | 'type': '<(library)', |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 512 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 513 | 'V8_TARGET_ARCH_IA32' |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 514 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 515 | 'dependencies': [ |
| 516 | 'js2c', |
| 517 | 'mksnapshot', |
| 518 | 'v8_base', |
| 519 | ], |
| 520 | 'msvs_guid': '21E22961-22BF-4493-BD3A-868F93DA5179', |
| 521 | 'actions': [ |
| 522 | { |
| 523 | 'action_name': 'mksnapshot', |
| 524 | 'inputs': [ |
| 525 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
| 526 | ], |
| 527 | 'outputs': [ |
| 528 | '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 529 | ], |
| 530 | 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 531 | }, |
| 532 | ], |
| 533 | 'include_dirs': [ |
| 534 | '../../src', |
| 535 | ], |
| 536 | 'sources': [ |
| 537 | '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 538 | '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 539 | ], |
| 540 | 'direct_dependent_settings': { |
| 541 | 'include_dirs': [ |
| 542 | '../../include', |
| 543 | ], |
| 544 | }, |
| 545 | 'export_dependent_settings': [ |
| 546 | 'v8_base', |
| 547 | ], |
| 548 | }, |
| 549 | { |
| 550 | 'target_name': 'v8_shell', |
| 551 | 'type': 'executable', |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 552 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 553 | 'V8_TARGET_ARCH_IA32' |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 554 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 555 | 'dependencies': [ |
| 556 | 'v8', |
| 557 | ], |
| 558 | 'sources': [ |
| 559 | '../../samples/shell.cc', |
| 560 | ], |
| 561 | 'conditions': [ |
| 562 | [ 'OS=="win"', { |
| 563 | # This could be gotten by not setting chromium_code, if that's OK. |
| 564 | 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
| 565 | }], |
| 566 | ], |
| 567 | }, |
| 568 | ], |
| 569 | |
| 570 | 'conditions': [ ['OS=="mac"', { 'targets': [ |
| 571 | # TODO(bradnelson): temporarily disable 'd8' target on Windows while |
| 572 | # we work fix the performance regressions. |
| 573 | # TODO(sgk): temporarily disable 'd8' target on Linux while |
| 574 | # we work out getting the readline library on all the systems. |
| 575 | { |
| 576 | 'target_name': 'd8', |
| 577 | 'type': 'executable', |
| 578 | 'dependencies': [ |
| 579 | 'd8_js2c', |
| 580 | 'v8', |
| 581 | ], |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 582 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 583 | 'V8_TARGET_ARCH_IA32' |
ager@chromium.org | 5ec4892 | 2009-05-05 07:25:34 +0000 | [diff] [blame] | 584 | ], |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 585 | 'include_dirs': [ |
| 586 | '../../src', |
| 587 | ], |
| 588 | 'sources': [ |
| 589 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
| 590 | '<@(d8_source_files)', |
| 591 | ], |
| 592 | 'conditions': [ |
| 593 | [ 'OS=="linux"', { |
| 594 | 'sources!': [ '../../src/d8-windows.cc' ], |
| 595 | 'link_settings': { 'libraries': [ '-lreadline' ] }, |
| 596 | }], |
| 597 | [ 'OS=="mac"', { |
| 598 | 'sources!': [ '../../src/d8-windows.cc' ], |
| 599 | 'link_settings': { 'libraries': [ |
| 600 | '$(SDKROOT)/usr/lib/libreadline.dylib' |
| 601 | ]}, |
| 602 | }], |
| 603 | [ 'OS=="win"', { |
| 604 | 'sources!': [ '../../src/d8-readline.cc', '../../src/d8-posix.cc' ], |
| 605 | }], |
| 606 | ], |
| 607 | }, |
| 608 | # TODO(sgk): temporarily disable the arm targets on Linux while |
| 609 | # we work out how to refactor the generator and/or add configuration |
| 610 | # settings to the .gyp file to handle building both variants in |
| 611 | # the same output directory. |
| 612 | # |
| 613 | # ARM targets, to test ARM code generation. These use an ARM simulator |
| 614 | # (src/simulator-arm.cc). The ARM targets are not snapshot-enabled. |
| 615 | { |
| 616 | 'target_name': 'v8_arm', |
| 617 | 'type': '<(library)', |
| 618 | 'dependencies': [ |
| 619 | 'js2c', |
| 620 | ], |
| 621 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 622 | 'V8_TARGET_ARCH_ARM', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 623 | ], |
| 624 | 'include_dirs+': [ |
| 625 | '../../src', |
| 626 | '../../src/arm', |
| 627 | ], |
| 628 | 'sources': [ |
| 629 | '<@(base_source_files)', |
| 630 | '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 631 | '../../src/snapshot-empty.cc', |
| 632 | ], |
| 633 | 'sources!': [ |
| 634 | '<@(not_base_source_files)', |
| 635 | ], |
| 636 | 'sources/': [ |
| 637 | ['exclude', '-ia32\\.cc$'], |
| 638 | ['exclude', 'src/platform-.*\\.cc$' ], |
| 639 | ], |
| 640 | 'direct_dependent_settings': { |
| 641 | 'include_dirs': [ |
| 642 | '../../include', |
| 643 | ], |
| 644 | }, |
| 645 | 'conditions': [ |
| 646 | ['OS=="linux"', |
| 647 | { |
| 648 | 'sources/': [ |
| 649 | ['include', 'src/platform-linux\\.cc$'], |
| 650 | ['include', 'src/platform-posix\\.cc$'] |
| 651 | ] |
| 652 | } |
| 653 | ], |
| 654 | ['OS=="mac"', |
| 655 | { |
| 656 | 'sources/': [ |
| 657 | ['include', 'src/platform-macos\\.cc$'], |
| 658 | ['include', 'src/platform-posix\\.cc$'] |
| 659 | ] |
| 660 | } |
| 661 | ], |
| 662 | ['OS=="win"', { |
| 663 | 'sources/': [['include', 'src/platform-win32\\.cc$']], |
| 664 | # 4355, 4800 came from common.vsprops |
| 665 | # 4018, 4244 were a per file config on dtoa-config.c |
| 666 | # TODO: It's probably possible and desirable to stop disabling the |
| 667 | # dtoa-specific warnings by modifying dtoa as was done in Chromium |
| 668 | # r9255. Refer to that revision for details. |
| 669 | 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], |
| 670 | }], |
| 671 | ], |
| 672 | }, |
| 673 | { |
| 674 | 'target_name': 'v8_shell_arm', |
| 675 | 'type': 'executable', |
| 676 | 'dependencies': [ |
| 677 | 'v8_arm', |
| 678 | ], |
| 679 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 680 | 'V8_TARGET_ARCH_ARM', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 681 | ], |
| 682 | 'sources': [ |
| 683 | '../../samples/shell.cc', |
| 684 | ], |
| 685 | 'conditions': [ |
| 686 | [ 'OS=="win"', { |
| 687 | # This could be gotten by not setting chromium_code, if that's OK. |
| 688 | 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
| 689 | }], |
| 690 | ], |
| 691 | }, |
| 692 | { |
| 693 | 'target_name': 'd8_arm', |
| 694 | 'type': 'executable', |
| 695 | 'dependencies': [ |
| 696 | 'd8_js2c', |
| 697 | 'v8_arm', |
| 698 | ], |
| 699 | 'defines': [ |
ager@chromium.org | 9085a01 | 2009-05-11 19:22:57 +0000 | [diff] [blame] | 700 | 'V8_TARGET_ARCH_ARM', |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 701 | ], |
| 702 | 'include_dirs': [ |
| 703 | '../../src', |
| 704 | ], |
| 705 | 'sources': [ |
| 706 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
| 707 | '<@(d8_source_files)', |
| 708 | ], |
| 709 | 'conditions': [ |
| 710 | [ 'OS=="linux"', { |
| 711 | 'sources!': [ '../../src/d8-windows.cc' ], |
| 712 | 'link_settings': { 'libraries': [ '-lreadline' ] }, |
| 713 | }], |
| 714 | [ 'OS=="mac"', { |
| 715 | 'sources!': [ '../../src/d8-windows.cc' ], |
| 716 | 'link_settings': { 'libraries': [ |
| 717 | '$(SDKROOT)/usr/lib/libreadline.dylib' |
| 718 | ]}, |
| 719 | }], |
| 720 | [ 'OS=="win"', { |
| 721 | 'sources!': [ '../../src/d8-readline.cc', '../../src/d8-posix.cc' ], |
| 722 | }], |
| 723 | ], |
| 724 | }, |
| 725 | ]}], # OS != "linux" (temporary, TODO(sgk)) |
| 726 | |
| 727 | |
| 728 | ['OS=="win"', { |
| 729 | 'target_defaults': { |
| 730 | 'defines': [ |
| 731 | '_USE_32BIT_TIME_T', |
| 732 | '_CRT_SECURE_NO_DEPRECATE', |
| 733 | '_CRT_NONSTDC_NO_DEPRECATE', |
| 734 | ], |
| 735 | 'msvs_settings': { |
| 736 | 'VCLinkerTool': { |
| 737 | 'AdditionalOptions': '/IGNORE:4221 /NXCOMPAT', |
| 738 | }, |
| 739 | }, |
| 740 | }, |
| 741 | }], |
| 742 | ], |
| 743 | } |