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