| OLD | NEW |
| 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE.md file. | 3 # BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 # TODO(ahe): Move this file elsewhere? | 5 # TODO(ahe): Move this file elsewhere? |
| 6 | 6 |
| 7 { | 7 { |
| 8 'variables': { | 8 'variables': { |
| 9 'clang%': '0', | 9 'clang%': '0', |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ], | 56 ], |
| 57 }], | 57 }], |
| 58 ], | 58 ], |
| 59 | 59 |
| 60 'target_defaults': { | 60 'target_defaults': { |
| 61 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], | 61 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], |
| 62 'msvs_cygwin_shell': 0, | 62 'msvs_cygwin_shell': 0, |
| 63 | 63 |
| 64 'configurations': { | 64 'configurations': { |
| 65 | 65 |
| 66 'fletch_base': { | 66 'dartino_base': { |
| 67 'abstract': 1, | 67 'abstract': 1, |
| 68 | 68 |
| 69 'defines': [ | 69 'defines': [ |
| 70 'FLETCH_ENABLE_LIVE_CODING', | 70 'DARTINO_ENABLE_LIVE_CODING', |
| 71 'FLETCH_ENABLE_FFI', | 71 'DARTINO_ENABLE_FFI', |
| 72 'FLETCH_ENABLE_NATIVE_PROCESSES', | 72 'DARTINO_ENABLE_NATIVE_PROCESSES', |
| 73 'FLETCH_ENABLE_PRINT_INTERCEPTORS', | 73 'DARTINO_ENABLE_PRINT_INTERCEPTORS', |
| 74 ], | 74 ], |
| 75 | 75 |
| 76 'xcode_settings': { | 76 'xcode_settings': { |
| 77 # Settings for Xcode and ninja. Huh? Yeah, GYP is awesome! | 77 # Settings for Xcode and ninja. Huh? Yeah, GYP is awesome! |
| 78 | 78 |
| 79 'GCC_C_LANGUAGE_STANDARD': 'ansi', | 79 'GCC_C_LANGUAGE_STANDARD': 'ansi', |
| 80 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 80 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
| 81 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'NO', # -Wno-non-virtual-dtor | 81 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'NO', # -Wno-non-virtual-dtor |
| 82 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 82 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 83 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 83 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| (...skipping 30 matching lines...) Expand all Loading... |
| 114 '-fno-exceptions', | 114 '-fno-exceptions', |
| 115 ], | 115 ], |
| 116 | 116 |
| 117 'ldflags': [ | 117 'ldflags': [ |
| 118 '-Wl,--gc-sections', | 118 '-Wl,--gc-sections', |
| 119 ], | 119 ], |
| 120 | 120 |
| 121 'target_conditions': [ | 121 'target_conditions': [ |
| 122 ['OS=="mac"', { | 122 ['OS=="mac"', { |
| 123 'defines': [ | 123 'defines': [ |
| 124 'FLETCH_TARGET_OS_MACOS', | 124 'DARTINO_TARGET_OS_MACOS', |
| 125 'FLETCH_TARGET_OS_POSIX' ], | 125 'DARTINO_TARGET_OS_POSIX' ], |
| 126 }], | 126 }], |
| 127 ['OS=="linux"', { | 127 ['OS=="linux"', { |
| 128 'defines': [ | 128 'defines': [ |
| 129 'FLETCH_TARGET_OS_LINUX', | 129 'DARTINO_TARGET_OS_LINUX', |
| 130 'FLETCH_TARGET_OS_POSIX' ], | 130 'DARTINO_TARGET_OS_POSIX' ], |
| 131 }], | 131 }], |
| 132 ['OS=="win"', { | 132 ['OS=="win"', { |
| 133 'defines': [ | 133 'defines': [ |
| 134 'FLETCH_TARGET_OS_WIN' ], | 134 'DARTINO_TARGET_OS_WIN' ], |
| 135 }], | 135 }], |
| 136 ], | 136 ], |
| 137 }, | 137 }, |
| 138 | 138 |
| 139 'fletch_release': { | 139 'dartino_release': { |
| 140 'abstract': 1, | 140 'abstract': 1, |
| 141 | 141 |
| 142 'defines': [ | 142 'defines': [ |
| 143 'NDEBUG', # TODO(ahe): Is this necessary/used? | 143 'NDEBUG', # TODO(ahe): Is this necessary/used? |
| 144 ], | 144 ], |
| 145 | 145 |
| 146 'xcode_settings': { # And ninja. | 146 'xcode_settings': { # And ninja. |
| 147 'OTHER_CPLUSPLUSFLAGS' : [ | 147 'OTHER_CPLUSPLUSFLAGS' : [ |
| 148 '-O3', | 148 '-O3', |
| 149 '-fomit-frame-pointer', | 149 '-fomit-frame-pointer', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 179 'cflags': [ | 179 'cflags': [ |
| 180 '-O3', | 180 '-O3', |
| 181 '-fomit-frame-pointer', | 181 '-fomit-frame-pointer', |
| 182 # Strict aliasing optimizations are not safe for the | 182 # Strict aliasing optimizations are not safe for the |
| 183 # type of VM code that we write. We operate with | 183 # type of VM code that we write. We operate with |
| 184 # raw memory aliased with a mixture of pointer types. | 184 # raw memory aliased with a mixture of pointer types. |
| 185 '-fno-strict-aliasing', | 185 '-fno-strict-aliasing', |
| 186 ], | 186 ], |
| 187 }, | 187 }, |
| 188 | 188 |
| 189 'fletch_debug': { | 189 'dartino_debug': { |
| 190 'abstract': 1, | 190 'abstract': 1, |
| 191 | 191 |
| 192 'defines': [ | 192 'defines': [ |
| 193 'DEBUG', | 193 'DEBUG', |
| 194 ], | 194 ], |
| 195 | 195 |
| 196 'xcode_settings': { # And ninja. | 196 'xcode_settings': { # And ninja. |
| 197 'GCC_OPTIMIZATION_LEVEL': '0', | 197 'GCC_OPTIMIZATION_LEVEL': '0', |
| 198 | 198 |
| 199 'OTHER_CPLUSPLUSFLAGS': [ | 199 'OTHER_CPLUSPLUSFLAGS': [ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 216 ], | 216 ], |
| 217 }, | 217 }, |
| 218 }, | 218 }, |
| 219 | 219 |
| 220 'cflags': [ | 220 'cflags': [ |
| 221 '-g', | 221 '-g', |
| 222 '-O0', | 222 '-O0', |
| 223 ], | 223 ], |
| 224 }, | 224 }, |
| 225 | 225 |
| 226 'fletch_ia32': { | 226 'dartino_ia32': { |
| 227 'abstract': 1, | 227 'abstract': 1, |
| 228 | 228 |
| 229 'defines': [ | 229 'defines': [ |
| 230 'FLETCH32', | 230 'DARTINO32', |
| 231 'FLETCH_TARGET_IA32', | 231 'DARTINO_TARGET_IA32', |
| 232 ], | 232 ], |
| 233 | 233 |
| 234 'cflags': [ | 234 'cflags': [ |
| 235 '-m32', | 235 '-m32', |
| 236 # Forces GCC to not use x87 floating point instructions. | 236 # Forces GCC to not use x87 floating point instructions. |
| 237 '-mfpmath=sse', | 237 '-mfpmath=sse', |
| 238 '-msse2', | 238 '-msse2', |
| 239 ], | 239 ], |
| 240 | 240 |
| 241 'ldflags': [ | 241 'ldflags': [ |
| 242 '-m32', | 242 '-m32', |
| 243 ], | 243 ], |
| 244 | 244 |
| 245 'xcode_settings': { # And ninja. | 245 'xcode_settings': { # And ninja. |
| 246 'ARCHS': [ 'i386' ], | 246 'ARCHS': [ 'i386' ], |
| 247 }, | 247 }, |
| 248 }, | 248 }, |
| 249 | 249 |
| 250 'fletch_x64': { | 250 'dartino_x64': { |
| 251 'abstract': 1, | 251 'abstract': 1, |
| 252 | 252 |
| 253 'defines': [ | 253 'defines': [ |
| 254 'FLETCH64', | 254 'DARTINO64', |
| 255 'FLETCH_TARGET_X64', | 255 'DARTINO_TARGET_X64', |
| 256 ], | 256 ], |
| 257 | 257 |
| 258 # Shared libraries on x64 require compilation with position | 258 # Shared libraries on x64 require compilation with position |
| 259 # independent code. Load-time relocation is not supported on | 259 # independent code. Load-time relocation is not supported on |
| 260 # x64. For simplicity we compile all x64 libraries with | 260 # x64. For simplicity we compile all x64 libraries with |
| 261 # position independent code. | 261 # position independent code. |
| 262 'cflags': ['-fPIC'], | 262 'cflags': ['-fPIC'], |
| 263 | 263 |
| 264 'xcode_settings': { # And ninja. | 264 'xcode_settings': { # And ninja. |
| 265 'ARCHS': [ 'x86_64' ], | 265 'ARCHS': [ 'x86_64' ], |
| 266 | 266 |
| 267 'OTHER_CPLUSPLUSFLAGS': [ | 267 'OTHER_CPLUSPLUSFLAGS': [ |
| 268 '-fPIC', | 268 '-fPIC', |
| 269 ], | 269 ], |
| 270 }, | 270 }, |
| 271 }, | 271 }, |
| 272 | 272 |
| 273 'fletch_arm': { | 273 'dartino_arm': { |
| 274 'abstract': 1, | 274 'abstract': 1, |
| 275 | 275 |
| 276 'defines': [ | 276 'defines': [ |
| 277 'FLETCH32', | 277 'DARTINO32', |
| 278 'FLETCH_TARGET_ARM', | 278 'DARTINO_TARGET_ARM', |
| 279 ], | 279 ], |
| 280 | 280 |
| 281 'xcode_settings': { # And ninja. | 281 'xcode_settings': { # And ninja. |
| 282 'ARCHS': [ 'armv7' ], | 282 'ARCHS': [ 'armv7' ], |
| 283 }, | 283 }, |
| 284 }, | 284 }, |
| 285 | 285 |
| 286 'fletch_xarm': { | 286 'dartino_xarm': { |
| 287 'abstract': 1, | 287 'abstract': 1, |
| 288 | 288 |
| 289 'defines': [ | 289 'defines': [ |
| 290 'FLETCH32', | 290 'DARTINO32', |
| 291 'FLETCH_TARGET_ARM', | 291 'DARTINO_TARGET_ARM', |
| 292 ], | 292 ], |
| 293 | 293 |
| 294 'target_conditions': [ | 294 'target_conditions': [ |
| 295 ['_toolset=="target"', { | 295 ['_toolset=="target"', { |
| 296 'conditions': [ | 296 'conditions': [ |
| 297 ['OS=="linux"', { | 297 ['OS=="linux"', { |
| 298 'defines': [ | 298 'defines': [ |
| 299 # Fake define intercepted by cc_wrapper.py to change the | 299 # Fake define intercepted by cc_wrapper.py to change the |
| 300 # compiler binary to an ARM cross compiler. This is only | 300 # compiler binary to an ARM cross compiler. This is only |
| 301 # needed on linux. | 301 # needed on linux. |
| 302 'FLETCH_ARM', | 302 'DARTINO_ARM', |
| 303 ], | 303 ], |
| 304 }], | 304 }], |
| 305 ['OS=="mac"', { | 305 ['OS=="mac"', { |
| 306 'xcode_settings': { # And ninja. | 306 'xcode_settings': { # And ninja. |
| 307 'ARCHS': [ 'armv7' ], | 307 'ARCHS': [ 'armv7' ], |
| 308 | 308 |
| 309 'OTHER_CPLUSPLUSFLAGS' : [ | 309 'OTHER_CPLUSPLUSFLAGS' : [ |
| 310 '-isysroot', | 310 '-isysroot', |
| 311 '<(ios_sdk_path)', | 311 '<(ios_sdk_path)', |
| 312 ], | 312 ], |
| 313 | 313 |
| 314 'OTHER_CFLAGS' : [ | 314 'OTHER_CFLAGS' : [ |
| 315 '-isysroot', | 315 '-isysroot', |
| 316 '<(ios_sdk_path)', | 316 '<(ios_sdk_path)', |
| 317 ], | 317 ], |
| 318 }, | 318 }, |
| 319 }] | 319 }] |
| 320 ], | 320 ], |
| 321 | 321 |
| 322 'ldflags': [ | 322 'ldflags': [ |
| 323 # Fake define intercepted by cc_wrapper.py. | 323 # Fake define intercepted by cc_wrapper.py. |
| 324 '-L/FLETCH_ARM', | 324 '-L/DARTINO_ARM', |
| 325 '-static-libstdc++', | 325 '-static-libstdc++', |
| 326 ], | 326 ], |
| 327 }], | 327 }], |
| 328 | 328 |
| 329 ['_toolset=="host"', { | 329 ['_toolset=="host"', { |
| 330 # Compile host targets as IA32, to get same word size. | 330 # Compile host targets as IA32, to get same word size. |
| 331 'inherit_from': [ 'fletch_ia32' ], | 331 'inherit_from': [ 'dartino_ia32' ], |
| 332 | 332 |
| 333 # The 'fletch_ia32' target will define IA32 as the target. Since | 333 # The 'dartino_ia32' target will define IA32 as the target. Since |
| 334 # the host should still target ARM, undefine it. | 334 # the host should still target ARM, undefine it. |
| 335 'defines!': [ | 335 'defines!': [ |
| 336 'FLETCH_TARGET_IA32', | 336 'DARTINO_TARGET_IA32', |
| 337 ], | 337 ], |
| 338 }], | 338 }], |
| 339 ], | 339 ], |
| 340 }, | 340 }, |
| 341 | 341 |
| 342 'fletch_xarm64': { | 342 'dartino_xarm64': { |
| 343 'abstract': 1, | 343 'abstract': 1, |
| 344 | 344 |
| 345 'defines': [ | 345 'defines': [ |
| 346 'FLETCH64', | 346 'DARTINO64', |
| 347 'FLETCH_TARGET_ARM64', | 347 'DARTINO_TARGET_ARM64', |
| 348 ], | 348 ], |
| 349 | 349 |
| 350 'target_conditions': [ | 350 'target_conditions': [ |
| 351 ['_toolset=="target"', { | 351 ['_toolset=="target"', { |
| 352 'conditions': [ | 352 'conditions': [ |
| 353 ['OS=="linux"', { | 353 ['OS=="linux"', { |
| 354 'defines': [ | 354 'defines': [ |
| 355 # Fake define intercepted by cc_wrapper.py to change the | 355 # Fake define intercepted by cc_wrapper.py to change the |
| 356 # compiler binary to an ARM64 cross compiler. This is only | 356 # compiler binary to an ARM64 cross compiler. This is only |
| 357 # needed on linux. | 357 # needed on linux. |
| 358 'FLETCH_ARM64', | 358 'DARTINO_ARM64', |
| 359 ], | 359 ], |
| 360 }], | 360 }], |
| 361 ['OS=="mac"', { | 361 ['OS=="mac"', { |
| 362 'xcode_settings': { # And ninja. | 362 'xcode_settings': { # And ninja. |
| 363 'ARCHS': [ 'arm64' ], | 363 'ARCHS': [ 'arm64' ], |
| 364 | 364 |
| 365 'OTHER_CPLUSPLUSFLAGS' : [ | 365 'OTHER_CPLUSPLUSFLAGS' : [ |
| 366 '-isysroot', | 366 '-isysroot', |
| 367 '<(ios_sdk_path)', | 367 '<(ios_sdk_path)', |
| 368 ], | 368 ], |
| 369 | 369 |
| 370 'OTHER_CFLAGS' : [ | 370 'OTHER_CFLAGS' : [ |
| 371 '-isysroot', | 371 '-isysroot', |
| 372 '<(ios_sdk_path)', | 372 '<(ios_sdk_path)', |
| 373 ], | 373 ], |
| 374 }, | 374 }, |
| 375 }], | 375 }], |
| 376 ], | 376 ], |
| 377 | 377 |
| 378 'ldflags': [ | 378 'ldflags': [ |
| 379 # Fake define intercepted by cc_wrapper.py. | 379 # Fake define intercepted by cc_wrapper.py. |
| 380 '-L/FLETCH_ARM64', | 380 '-L/DARTINO_ARM64', |
| 381 '-static-libstdc++', | 381 '-static-libstdc++', |
| 382 ], | 382 ], |
| 383 }], | 383 }], |
| 384 | 384 |
| 385 ['_toolset=="host"', { | 385 ['_toolset=="host"', { |
| 386 # Compile host targets as X64, to get same word size. | 386 # Compile host targets as X64, to get same word size. |
| 387 'inherit_from': [ 'fletch_x64' ], | 387 'inherit_from': [ 'dartino_x64' ], |
| 388 | 388 |
| 389 # The 'fletch_x64' target will define IA32 as the target. Since | 389 # The 'dartino_x64' target will define IA32 as the target. Since |
| 390 # the host should still target ARM, undefine it. | 390 # the host should still target ARM, undefine it. |
| 391 'defines!': [ | 391 'defines!': [ |
| 392 'FLETCH_TARGET_X64', | 392 'DARTINO_TARGET_X64', |
| 393 ], | 393 ], |
| 394 }], | 394 }], |
| 395 ], | 395 ], |
| 396 }, | 396 }, |
| 397 | 397 |
| 398 'fletch_lk': { | 398 'dartino_lk': { |
| 399 'abstract': 1, | 399 'abstract': 1, |
| 400 | 400 |
| 401 'defines': [ | 401 'defines': [ |
| 402 'FLETCH32', | 402 'DARTINO32', |
| 403 'FLETCH_TARGET_ARM', | 403 'DARTINO_TARGET_ARM', |
| 404 'FLETCH_THUMB_ONLY', | 404 'DARTINO_THUMB_ONLY', |
| 405 ], | 405 ], |
| 406 | 406 |
| 407 'target_conditions': [ | 407 'target_conditions': [ |
| 408 ['_toolset=="target"', { | 408 ['_toolset=="target"', { |
| 409 'defines': [ | 409 'defines': [ |
| 410 'FLETCH_TARGET_OS_LK', | 410 'DARTINO_TARGET_OS_LK', |
| 411 ], | 411 ], |
| 412 'conditions': [ | 412 'conditions': [ |
| 413 ['LK_USE_DEPS_ARM_GCC==1', { | 413 ['LK_USE_DEPS_ARM_GCC==1', { |
| 414 'defines': [ | 414 'defines': [ |
| 415 'GCC_XARM_EMBEDDED', # Fake define for cc_wrapper.py. | 415 'GCC_XARM_EMBEDDED', # Fake define for cc_wrapper.py. |
| 416 ], | 416 ], |
| 417 'ldflags': [ | 417 'ldflags': [ |
| 418 # Fake define intercepted by cc_wrapper.py. | 418 # Fake define intercepted by cc_wrapper.py. |
| 419 '-L/GCC_XARM_EMBEDDED', | 419 '-L/GCC_XARM_EMBEDDED', |
| 420 ], | 420 ], |
| (...skipping 28 matching lines...) Expand all Loading... |
| 449 '<(DEPTH)/<(LK_PATH)/../../out', | 449 '<(DEPTH)/<(LK_PATH)/../../out', |
| 450 '<(DEPTH)/<(LK_PATH)/include/', | 450 '<(DEPTH)/<(LK_PATH)/include/', |
| 451 '<(DEPTH)/<(LK_PATH)/arch/arm/include/', | 451 '<(DEPTH)/<(LK_PATH)/arch/arm/include/', |
| 452 '<(DEPTH)/<(LK_PATH)/lib/libm/include/', | 452 '<(DEPTH)/<(LK_PATH)/lib/libm/include/', |
| 453 '<(DEPTH)/<(LK_PATH)/lib/minip/include/', | 453 '<(DEPTH)/<(LK_PATH)/lib/minip/include/', |
| 454 '<(DEPTH)/<(LK_PATH)/arch/arm/arm/include', | 454 '<(DEPTH)/<(LK_PATH)/arch/arm/arm/include', |
| 455 '<(DEPTH)/<(LK_PATH)/lib/heap/include/', | 455 '<(DEPTH)/<(LK_PATH)/lib/heap/include/', |
| 456 ], | 456 ], |
| 457 | 457 |
| 458 'defines!': [ | 458 'defines!': [ |
| 459 'FLETCH_TARGET_OS_MACOS', | 459 'DARTINO_TARGET_OS_MACOS', |
| 460 'FLETCH_TARGET_OS_LINUX', | 460 'DARTINO_TARGET_OS_LINUX', |
| 461 'FLETCH_TARGET_OS_POSIX', | 461 'DARTINO_TARGET_OS_POSIX', |
| 462 ], | 462 ], |
| 463 }], | 463 }], |
| 464 | 464 |
| 465 ['_toolset=="host"', { | 465 ['_toolset=="host"', { |
| 466 # Compile host targets as IA32, to get same word size. | 466 # Compile host targets as IA32, to get same word size. |
| 467 'inherit_from': [ 'fletch_ia32' ], | 467 'inherit_from': [ 'dartino_ia32' ], |
| 468 | 468 |
| 469 # The 'fletch_ia32' target will define IA32 as the target. Since | 469 # The 'dartino_ia32' target will define IA32 as the target. Since |
| 470 # the host should still target ARM, undefine it. | 470 # the host should still target ARM, undefine it. |
| 471 'defines!': [ | 471 'defines!': [ |
| 472 'FLETCH_TARGET_IA32', | 472 'DARTINO_TARGET_IA32', |
| 473 ], | 473 ], |
| 474 }], | 474 }], |
| 475 ], | 475 ], |
| 476 }, | 476 }, |
| 477 | 477 |
| 478 'fletch_mbed': { | 478 'dartino_mbed': { |
| 479 'abstract': 1, | 479 'abstract': 1, |
| 480 | 480 |
| 481 'defines': [ | 481 'defines': [ |
| 482 'FLETCH32', | 482 'DARTINO32', |
| 483 'FLETCH_TARGET_ARM', | 483 'DARTINO_TARGET_ARM', |
| 484 'FLETCH_THUMB_ONLY', | 484 'DARTINO_THUMB_ONLY', |
| 485 ], | 485 ], |
| 486 | 486 |
| 487 'target_conditions': [ | 487 'target_conditions': [ |
| 488 ['_toolset=="target"', { | 488 ['_toolset=="target"', { |
| 489 'defines': [ | 489 'defines': [ |
| 490 'GCC_XARM_EMBEDDED', # Fake define intercepted by cc_wrapper.py. | 490 'GCC_XARM_EMBEDDED', # Fake define intercepted by cc_wrapper.py. |
| 491 'FLETCH_TARGET_OS_CMSIS', | 491 'DARTINO_TARGET_OS_CMSIS', |
| 492 ], | 492 ], |
| 493 | 493 |
| 494 'defines!': [ | 494 'defines!': [ |
| 495 'FLETCH_TARGET_OS_POSIX', | 495 'DARTINO_TARGET_OS_POSIX', |
| 496 'FLETCH_TARGET_OS_LINUX', | 496 'DARTINO_TARGET_OS_LINUX', |
| 497 'FLETCH_TARGET_OS_MACOS', | 497 'DARTINO_TARGET_OS_MACOS', |
| 498 ], | 498 ], |
| 499 | 499 |
| 500 'cflags': [ | 500 'cflags': [ |
| 501 '-mcpu=cortex-m4', | 501 '-mcpu=cortex-m4', |
| 502 '-mthumb', | 502 '-mthumb', |
| 503 '-mfloat-abi=softfp', | 503 '-mfloat-abi=softfp', |
| 504 '-fno-common', | 504 '-fno-common', |
| 505 ], | 505 ], |
| 506 | 506 |
| 507 # Use the gnu language dialect to get math.h constants | 507 # Use the gnu language dialect to get math.h constants |
| (...skipping 11 matching lines...) Expand all Loading... |
| 519 ], | 519 ], |
| 520 | 520 |
| 521 'ldflags': [ | 521 'ldflags': [ |
| 522 '-L/GCC_XARM_EMBEDDED', # Fake define intercepted by cc_wrapper.py
. | 522 '-L/GCC_XARM_EMBEDDED', # Fake define intercepted by cc_wrapper.py
. |
| 523 '-static-libstdc++', | 523 '-static-libstdc++', |
| 524 ], | 524 ], |
| 525 }], | 525 }], |
| 526 | 526 |
| 527 ['_toolset=="host"', { | 527 ['_toolset=="host"', { |
| 528 # Compile host targets as IA32, to get same word size. | 528 # Compile host targets as IA32, to get same word size. |
| 529 'inherit_from': [ 'fletch_ia32' ], | 529 'inherit_from': [ 'dartino_ia32' ], |
| 530 | 530 |
| 531 # Undefine IA32 target and using existing ARM target. | 531 # Undefine IA32 target and using existing ARM target. |
| 532 'defines!': [ | 532 'defines!': [ |
| 533 'FLETCH_TARGET_IA32', | 533 'DARTINO_TARGET_IA32', |
| 534 ], | 534 ], |
| 535 }], | 535 }], |
| 536 ], | 536 ], |
| 537 }, | 537 }, |
| 538 | 538 |
| 539 'fletch_asan': { | 539 'dartino_asan': { |
| 540 'abstract': 1, | 540 'abstract': 1, |
| 541 | 541 |
| 542 'cflags': [ | 542 'cflags': [ |
| 543 '-fsanitize=address', | 543 '-fsanitize=address', |
| 544 ], | 544 ], |
| 545 | 545 |
| 546 'defines': [ | 546 'defines': [ |
| 547 'FLETCH_ASAN', | 547 'DARTINO_ASAN', |
| 548 ], | 548 ], |
| 549 | 549 |
| 550 'ldflags': [ | 550 'ldflags': [ |
| 551 '-fsanitize=address', | 551 '-fsanitize=address', |
| 552 ], | 552 ], |
| 553 | 553 |
| 554 'xcode_settings': { # And ninja. | 554 'xcode_settings': { # And ninja. |
| 555 'OTHER_CPLUSPLUSFLAGS': [ | 555 'OTHER_CPLUSPLUSFLAGS': [ |
| 556 '-g3', | 556 '-g3', |
| 557 '-fsanitize=address', | 557 '-fsanitize=address', |
| 558 '-fsanitize-undefined-trap-on-error', | 558 '-fsanitize-undefined-trap-on-error', |
| 559 ], | 559 ], |
| 560 | 560 |
| 561 'OTHER_LDFLAGS': [ | 561 'OTHER_LDFLAGS': [ |
| 562 # GYP's xcode_emulation for ninja passes OTHER_LDFLAGS to libtool, | 562 # GYP's xcode_emulation for ninja passes OTHER_LDFLAGS to libtool, |
| 563 # which doesn't understand -fsanitize=address. The fake library | 563 # which doesn't understand -fsanitize=address. The fake library |
| 564 # search path is recognized by cxx_wrapper.py and cc_wrapper.py, | 564 # search path is recognized by cxx_wrapper.py and cc_wrapper.py, |
| 565 # which will pass the correct options to the linker. | 565 # which will pass the correct options to the linker. |
| 566 '-L/FLETCH_ASAN', | 566 '-L/DARTINO_ASAN', |
| 567 ], | 567 ], |
| 568 }, | 568 }, |
| 569 }, | 569 }, |
| 570 | 570 |
| 571 'fletch_clang': { | 571 'dartino_clang': { |
| 572 'abstract': 1, | 572 'abstract': 1, |
| 573 | 573 |
| 574 'defines': [ | 574 'defines': [ |
| 575 # Recognized by cxx_wrapper.py and cc_wrapper.py and causes them to | 575 # Recognized by cxx_wrapper.py and cc_wrapper.py and causes them to |
| 576 # invoke clang. | 576 # invoke clang. |
| 577 'FLETCH_CLANG', | 577 'DARTINO_CLANG', |
| 578 ], | 578 ], |
| 579 | 579 |
| 580 'ldflags': [ | 580 'ldflags': [ |
| 581 # The define above is not passed to the cxx_wrapper.py and | 581 # The define above is not passed to the cxx_wrapper.py and |
| 582 # cc_wrapper.py scripts when linking. We therefore have to force | 582 # cc_wrapper.py scripts when linking. We therefore have to force |
| 583 # the use of clang with a dummy link flag. | 583 # the use of clang with a dummy link flag. |
| 584 '-L/FLETCH_CLANG', | 584 '-L/DARTINO_CLANG', |
| 585 ], | 585 ], |
| 586 | 586 |
| 587 'xcode_settings': { # And ninja. | 587 'xcode_settings': { # And ninja. |
| 588 'OTHER_LDFLAGS': [ | 588 'OTHER_LDFLAGS': [ |
| 589 # Recognized by cxx_wrapper.py and cc_wrapper.py and causes them to | 589 # Recognized by cxx_wrapper.py and cc_wrapper.py and causes them to |
| 590 # invoke clang. | 590 # invoke clang. |
| 591 '-L/FLETCH_CLANG', | 591 '-L/DARTINO_CLANG', |
| 592 ], | 592 ], |
| 593 }, | 593 }, |
| 594 }, | 594 }, |
| 595 | 595 |
| 596 'fletch_ios_sim': { | 596 'dartino_ios_sim': { |
| 597 'abstract': 1, | 597 'abstract': 1, |
| 598 'conditions': [ | 598 'conditions': [ |
| 599 [ 'OS=="mac"', { | 599 [ 'OS=="mac"', { |
| 600 'target_conditions': [ | 600 'target_conditions': [ |
| 601 ['_toolset=="target"', { | 601 ['_toolset=="target"', { |
| 602 'xcode_settings': { | 602 'xcode_settings': { |
| 603 'OTHER_CPLUSPLUSFLAGS' : [ | 603 'OTHER_CPLUSPLUSFLAGS' : [ |
| 604 '-isysroot', | 604 '-isysroot', |
| 605 '<(ios_sim_sdk_path)', | 605 '<(ios_sim_sdk_path)', |
| 606 '-miphoneos-version-min=7.0', | 606 '-miphoneos-version-min=7.0', |
| 607 ], | 607 ], |
| 608 'OTHER_CFLAGS' : [ | 608 'OTHER_CFLAGS' : [ |
| 609 '-isysroot', | 609 '-isysroot', |
| 610 '<(ios_sim_sdk_path)', | 610 '<(ios_sim_sdk_path)', |
| 611 '-miphoneos-version-min=7.0', | 611 '-miphoneos-version-min=7.0', |
| 612 ], | 612 ], |
| 613 }, | 613 }, |
| 614 }], | 614 }], |
| 615 ], | 615 ], |
| 616 }], | 616 }], |
| 617 ], | 617 ], |
| 618 }, | 618 }, |
| 619 | 619 |
| 620 'fletch_disable_live_coding': { | 620 'dartino_disable_live_coding': { |
| 621 'abstract': 1, | 621 'abstract': 1, |
| 622 | 622 |
| 623 'defines!': [ | 623 'defines!': [ |
| 624 'FLETCH_ENABLE_LIVE_CODING', | 624 'DARTINO_ENABLE_LIVE_CODING', |
| 625 ], | 625 ], |
| 626 }, | 626 }, |
| 627 | 627 |
| 628 'fletch_disable_ffi': { | 628 'dartino_disable_ffi': { |
| 629 'abstract': 1, | 629 'abstract': 1, |
| 630 | 630 |
| 631 'defines!': [ | 631 'defines!': [ |
| 632 'FLETCH_ENABLE_FFI', | 632 'DARTINO_ENABLE_FFI', |
| 633 ], | 633 ], |
| 634 }, | 634 }, |
| 635 | 635 |
| 636 'fletch_disable_native_processes': { | 636 'dartino_disable_native_processes': { |
| 637 'abstract': 1, | 637 'abstract': 1, |
| 638 | 638 |
| 639 'defines!': [ | 639 'defines!': [ |
| 640 'FLETCH_ENABLE_NATIVE_PROCESSES', | 640 'DARTINO_ENABLE_NATIVE_PROCESSES', |
| 641 ], | 641 ], |
| 642 }, | 642 }, |
| 643 | 643 |
| 644 'fletch_disable_print_interceptors': { | 644 'dartino_disable_print_interceptors': { |
| 645 'abstract': 1, | 645 'abstract': 1, |
| 646 | 646 |
| 647 'defines!': [ | 647 'defines!': [ |
| 648 'FLETCH_ENABLE_PRINT_INTERCEPTORS', | 648 'DARTINO_ENABLE_PRINT_INTERCEPTORS', |
| 649 ], | 649 ], |
| 650 }, | 650 }, |
| 651 }, | 651 }, |
| 652 }, | 652 }, |
| 653 } | 653 } |
| OLD | NEW |