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