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