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