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