1 # Copyright 2015 Google Inc. 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 # conditions used in both common.gypi and skia.gyp in chromium 7 # 8 { 9 'defines': [ 10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', 11 'SK_SUPPORT_GPU=<(skia_gpu)', 12 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', 13 ], 14 'conditions' : [ 15 [ 'skia_codec_decodes_raw', { 16 'defines': [ 17 'SK_CODEC_DECODES_RAW', 18 ], 19 }], 20 ['skia_pic', { 21 'cflags': [ 22 '-fPIC', 23 ], 24 'conditions' : [ 25 # FIXME: The reason we don't do this on Android is due to the way 26 # we build the executables/skia_launcher on Android. See 27 # https://codereview.chromium.org/406613003/diff/1/gyp/common_conditions.gypi#newcode455 28 ['skia_os != "android"', { 29 'target_conditions': [ 30 [ '_type == "executable"', { 31 'cflags': [ '-fPIE' ], 32 'ldflags': [ '-pie' ], 33 }], 34 ], 35 }], 36 ], 37 }], 38 39 # As of M35, Chrome requires SSE2 on x86 (and SSSE3 on Mac). 40 [ 'skia_arch_type == "x86"', { 41 'cflags': [ 42 '-msse2', 43 '-mfpmath=sse', 44 ], 45 }], 46 47 [ 'skia_os == "win"', 48 { 49 'defines': [ 50 'SK_BUILD_FOR_WIN32', 51 '_CRT_SECURE_NO_WARNINGS', 52 'GR_GL_FUNCTION_TYPE=__stdcall', 53 '_HAS_EXCEPTIONS=0', 54 ], 55 'msvs_disabled_warnings': [ 56 4275, # An exported class was derived from a class that was not exported 57 4345, # This is an FYI about a behavior change from long ago. Chrome stifles it too. 58 4355, # 'this' used in base member initializer list. Off by default in newer compilers. 59 ], 60 'msvs_cygwin_shell': 0, 61 'msvs_settings': { 62 'VCCLCompilerTool': { 63 'WarningLevel': '3', 64 'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb', 65 'DebugInformationFormat': '3', 66 'ExceptionHandling': '0', 67 'AdditionalOptions': [ '/MP', ], 68 }, 69 'VCLinkerTool': { 70 'LargeAddressAware': 2, # 2 means "Yes, please let me use more RAM on 32-bit builds." 71 'AdditionalDependencies': [ 72 'OpenGL32.lib', 73 'usp10.lib', 74 75 # Prior to gyp r1584, the following were included automatically. 76 'kernel32.lib', 77 'gdi32.lib', 78 'winspool.lib', 79 'comdlg32.lib', 80 'advapi32.lib', 81 'shell32.lib', 82 'ole32.lib', 83 'oleaut32.lib', 84 'user32.lib', 85 'uuid.lib', 86 'odbc32.lib', 87 'odbccp32.lib', 88 'DelayImp.lib', 89 ], 90 }, 91 }, 92 'configurations': { 93 'Debug': { 94 'msvs_settings': { 95 'VCCLCompilerTool': { 96 'DebugInformationFormat': '4', # editAndContiue (/ZI) 97 'Optimization': '0', # optimizeDisabled (/Od) 98 'PreprocessorDefinitions': ['_DEBUG'], 99 'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd) 100 'RuntimeTypeInfo': 'false', # /GR- 101 }, 102 'VCLinkerTool': { 103 'GenerateDebugInformation': 'true', # /DEBUG 104 'LinkIncremental': '2', # /INCREMENTAL 105 }, 106 }, 107 }, 108 'Release': { 109 'msvs_settings': { 110 'VCCLCompilerTool': { 111 'DebugInformationFormat': '3', # programDatabase (/Zi) 112 'Optimization': '<(skia_release_optimization_level)', 113 # Changing the floating point model requires rebaseling gm images 114 #'FloatingPointModel': '2', # fast (/fp:fast) 115 'FavorSizeOrSpeed': '1', # speed (/Ot) 116 'PreprocessorDefinitions': ['NDEBUG'], 117 'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD) 118 'EnableEnhancedInstructionSet': '2',# /arch:SSE2 119 'RuntimeTypeInfo': 'false', # /GR- 120 }, 121 'VCLinkerTool': { 122 'GenerateDebugInformation': 'true', # /DEBUG 123 }, 124 }, 125 }, 126 }, 127 'conditions' : [ 128 # Gyp's ninja generator depends on these specially named 129 # configurations to build 64-bit on Windows. 130 # See https://bug.skia.org/2348 131 # 132 # We handle the 64- vs 32-bit variations elsewhere, so I think it's 133 # OK for us to just make these inherit non-archwidth-specific 134 # configurations without modification. 135 # 136 # See https://bug.skia.org/2442 : These targets cause problems in the 137 # MSVS build, so only include them if gyp is generating a ninja build. 138 [ '"ninja" in "<!(echo %GYP_GENERATORS%)"', { 139 'configurations': { 140 'Debug_x64': { 141 'inherit_from': ['Debug'], 142 'msvs_settings': { 143 'VCCLCompilerTool': { 144 # /ZI is not supported on 64bit 145 'DebugInformationFormat': '3', # programDatabase (/Zi) 146 }, 147 }, 148 }, 149 'Release_x64': { 150 'inherit_from': ['Release'], 151 'msvs_settings': { 152 'VCCLCompilerTool': { 153 # Don't specify /arch. SSE2 is implied by 64bit and specifying it warns. 154 'EnableEnhancedInstructionSet': '0', # 155 }, 156 }, 157 }, 158 'Release_Developer_x64': { 159 'inherit_from': ['Release_Developer'], 160 'msvs_settings': { 161 'VCCLCompilerTool': { 162 # Don't specify /arch. SSE2 is implied by 64bit and specifying it warns. 163 'EnableEnhancedInstructionSet': '0', # 164 }, 165 }, 166 }, 167 }, 168 }], 169 [ 'skia_arch_type == "x86_64"', { 170 'msvs_configuration_platform': 'x64', 171 }], 172 [ 'skia_arch_type == "x86"', { 173 'msvs_configuration_platform': 'Win32', 174 }], 175 [ 'skia_warnings_as_errors', { 176 'msvs_settings': { 177 'VCCLCompilerTool': { 178 'WarnAsError': 'true', 179 'AdditionalOptions': [ 180 '/we4189', # initialized but unused var warning 181 '/we4238', # taking address of rvalue 182 '/we4239', # assigning rvalues to non-const lvalues 183 ], 184 }, 185 }, 186 }], 187 [ 'skia_win_exceptions', { 188 'msvs_settings': { 189 'VCCLCompilerTool': { 190 'AdditionalOptions': [ 191 '/EHsc', 192 ], 193 }, 194 }, 195 }], 196 [ 'skia_win_ltcg', { 197 'configurations': { 198 'Release': { 199 'msvs_settings': { 200 'VCCLCompilerTool': { 201 'WholeProgramOptimization': 'true', #/GL 202 }, 203 'VCLinkerTool': { 204 'LinkTimeCodeGeneration': '1', # useLinkTimeCodeGeneration /LTCG 205 }, 206 'VCLibrarianTool': { 207 'LinkTimeCodeGeneration': 'true', # useLinkTimeCodeGeneration /LTCG 208 }, 209 }, 210 }, 211 }, 212 }], 213 ], 214 }, 215 ], 216 217 # The following section is common to linux + derivatives and android 218 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', 219 { 220 'cflags': [ 221 '-g', 222 '-fno-exceptions', 223 '-fstrict-aliasing', 224 225 '-Wall', 226 '-Wextra', 227 '-Winit-self', 228 '-Wpointer-arith', 229 '-Wsign-compare', 230 231 '-Wno-unused-parameter', 232 ], 233 'cflags_cc': [ 234 '-std=c++11', 235 '-fno-rtti', 236 '-fno-threadsafe-statics', 237 '-Wnon-virtual-dtor', 238 ], 239 'conditions': [ 240 [ 'skia_fast', { 'cflags': [ '<@(skia_fast_flags)' ] }], 241 [ 'skia_os != "chromeos"', { 242 'conditions': [ 243 [ 'skia_arch_type == "x86_64" and not skia_android_framework', { 244 'cflags': [ 245 '-m64', 246 ], 247 'ldflags': [ 248 '-m64', 249 ], 250 }], 251 [ 'skia_arch_type == "x86" and not skia_android_framework', { 252 'cflags': [ 253 '-m32', 254 ], 255 'ldflags': [ 256 '-m32', 257 ], 258 }], 259 ], 260 }], 261 [ 'skia_warnings_as_errors', { 262 'cflags': [ 263 '-Werror', 264 ], 265 }], 266 # For profiling; reveals some costs, exaggerates others (e.g. trivial setters & getters). 267 [ 'skia_disable_inlining', { 268 'cflags': [ 269 '-fno-inline', 270 '-fno-default-inline', 271 '-finline-limit=0', 272 '-fno-omit-frame-pointer', 273 ], 274 }], 275 [ 'skia_arch_type == "arm" and arm_version >= 7', { 276 'cflags': [ 277 '-march=armv7-a', 278 '-mthumb', 279 ], 280 'ldflags': [ 281 '-march=armv7-a', 282 ], 283 'conditions': [ 284 [ 'arm_neon == 1', { 285 'defines': [ 286 'SK_ARM_HAS_NEON', 287 ], 288 'cflags': [ 289 '-mfpu=neon', 290 ], 291 }], 292 [ 'arm_neon_optional == 1', { 293 'defines': [ 294 'SK_ARM_HAS_OPTIONAL_NEON', 295 ], 296 }], 297 [ 'skia_os != "chromeos" and skia_os != "linux"', { 298 'cflags': [ 299 '-mfloat-abi=softfp', 300 ], 301 }], 302 ], 303 }], 304 [ '"mips" in skia_arch_type', { 305 'cflags': [ '-EL' ], 306 'conditions': [ 307 [ 'mips_arch_variant == "mips32r2"', { 308 'cflags': [ '-march=mips32r2' ], 309 'conditions': [ 310 [ 'mips_dsp == 1', { 'cflags': [ '-mdsp' ] }], 311 [ 'mips_dsp == 2', { 'cflags': [ '-mdspr2' ] }], 312 ], 313 }], 314 ], 315 }], 316 ], 317 }, 318 ], 319 320 ['skia_android_framework', { 321 'cflags': [ 322 # Skia does not enforce this usage pattern so we disable it here to avoid 323 # unecessary log spew when building 324 '-Wno-unused-parameter', 325 326 # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkString. 327 # Revert to -D_FORTIFY_SOURCE=1 328 '-U_FORTIFY_SOURCE', 329 '-D_FORTIFY_SOURCE=1', 330 331 # We can't use the skia_shared_lib gyp setting because we need to 332 # isolate this define to Skia sources. CFLAGS are local to Android.mk 333 # and ensures that this define is not exported to clients of the library 334 '-DSKIA_IMPLEMENTATION=1', 335 ], 336 # Remove flags which are either unnecessary or problematic for the 337 # Android framework build. Many of these flags are removed simply because 338 # they were not previously in the Android framework makefile, and we did 339 # did not intend to add them when generating the makefile. 340 # TODO (scroggo): Investigate whether any of these flags are actually 341 # needed/would be beneficial. 342 'cflags!': [ 343 # Android has one makefile, used for both debugging (after manual 344 # modification) and release. Turn off debug info by default. 345 '-g', 346 '-march=armv7-a', 347 '-mthumb', 348 '-mfpu=neon', 349 '-mfloat-abi=softfp', 350 '-fno-exceptions', 351 '-fstrict-aliasing', 352 # Remove flags to turn on warnings, since most people building Android 353 # are not focused on Skia and do not need the extra warning info. 354 '-Wall', 355 '-Wextra', 356 '-Winit-self', 357 '-Wpointer-arith', 358 '-Wsign-compare', 359 ], 360 'cflags_cc!': [ 361 '-fno-rtti', 362 '-Wnon-virtual-dtor', 363 ], 364 'defines': [ 365 'DCT_IFAST_SUPPORTED', 366 # using freetype's embolden allows us to adjust fake bold settings at 367 # draw-time, at which point we know which SkTypeface is being drawn 368 'SK_USE_FREETYPE_EMBOLDEN', 369 'SK_SFNTLY_SUBSETTER "sample/chromium/font_subsetter.h"', 370 # When built as part of the system image we can enable certian non-NDK 371 # compliant optimizations. 372 'SK_BUILD_FOR_ANDROID_FRAMEWORK', 373 # Optimizations for chromium (m30) 374 'GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h"', 375 'SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)', 376 'SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024)', 377 'SK_IGNORE_ETC1_SUPPORT', 378 # We can't use the skia_shared_lib gyp setting because we need expose 379 # this define globally and the the implemention define as a cflag. 380 'SKIA_DLL', 381 'SK_PRINT_CODEC_MESSAGES', 382 ], 383 }], 384 385 ['skia_use_android_framework_defines', { 386 # Add these defines when building for the Android framework, or when 387 # specifically requested. These should be temporary staging defines. Any 388 # permanent defines should be moved into the skia_android_framework block 389 # above. 390 'includes' : [ 391 'skia_for_android_framework_defines.gypi', 392 ], 393 'defines': [ 394 '<@(skia_for_android_framework_defines)', 395 ], 396 }], 397 398 [ 'skia_use_sdl == 1', 399 { 400 'defines': [ 'SK_USE_SDL' ], 401 }], 402 403 [ 'skia_dump_stats == 1', 404 { 405 'defines': [ 'SK_DUMP_STATS'], 406 }], 407 408 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', 409 { 410 'defines': [ 411 'SK_SAMPLES_FOR_X', 412 'SK_BUILD_FOR_UNIX', 413 ], 414 'configurations': { 415 'Coverage': { 416 'conditions': [ 417 [ 'skia_clang_build', { 418 'cflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], 419 'ldflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], 420 }, { 421 'cflags': ['--coverage'], 422 'ldflags': ['--coverage'], 423 }], 424 ], 425 }, 426 'Debug': { 427 }, 428 'Release': { 429 'cflags': [ 430 '-O<(skia_release_optimization_level)', 431 ], 432 'defines': [ 'NDEBUG' ], 433 }, 434 }, 435 'conditions' : [ 436 [ 'skia_shared_lib', { 437 'defines': [ 438 'SKIA_DLL', 439 'SKIA_IMPLEMENTATION=1', 440 ], 441 }], 442 # Enable asan, tsan, etc. 443 [ 'skia_sanitizer', { 444 'cflags_cc!': [ '-fno-rtti' ], # vptr needs rtti 445 'cflags': [ 446 '-fsanitize=<(skia_sanitizer)', # Turn on sanitizers. 447 '-fno-sanitize-recover=<(skia_sanitizer)', # Make any failure fatal. 448 '-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in our blacklist. 449 '-include <(skia_sanitizer_blacklist)', # Make every .cpp depend on it. 450 ], 451 'ldflags': [ '-fsanitize=<(skia_sanitizer)' ], 452 'conditions' : [ 453 [ 'skia_sanitizer == "thread"', { 454 'defines': [ 'THREAD_SANITIZER' ], 455 }], 456 [ 'skia_sanitizer == "memory"', { 457 'cflags': [ 458 '-O1', 459 '-fsanitize-memory-track-origins', 460 ], 461 }], 462 ], 463 }], 464 [ 'skia_clang_build', { 465 'cflags_cc': [ 466 '-Wno-unknown-warning-option', # Allows unknown warnings. 467 '-Wno-deprecated', # From Qt, via debugger (older Clang). 468 '-Wno-deprecated-register', # From Qt, via debugger (newer Clang). 469 ], 470 'cflags': [ 471 # Extra warnings we like but that only Clang knows about. 472 '-Wstring-conversion', 473 ], 474 'cflags!': [ 475 '-mfpmath=sse', # Clang doesn't need to be told this, and sometimes gets confused. 476 ], 477 }], 478 [ 'skia_keep_frame_pointer', { 479 'cflags': [ '-fno-omit-frame-pointer' ], 480 }], 481 ], 482 }, 483 ], 484 485 [ 'skia_os == "mac"', 486 { 487 'defines': [ 'SK_BUILD_FOR_MAC' ], 488 'conditions': [ 489 # ANGLE for mac hits -Wunneeded-internal-declaration if this isn't set. 490 [ 'skia_angle', { 'defines': [ 'YY_NO_INPUT' ], } ], 491 ], 492 'configurations': { 493 'Coverage': { 494 'xcode_settings': { 495 'GCC_OPTIMIZATION_LEVEL': '0', 496 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', 497 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS' : 'YES', 498 }, 499 }, 500 'Debug': { 501 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '0' }, 502 }, 503 'Release': { 504 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', }, 505 'defines': [ 'NDEBUG' ], 506 }, 507 }, 508 'xcode_settings': { 509 'conditions': [ 510 [ 'skia_fast', { 'WARNING_CFLAGS': [ '<@(skia_fast_flags)' ] } ], 511 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES' }], 512 [ 'skia_arch_type == "x86"', { 'ARCHS': ['i386'] }], 513 [ 'skia_arch_type == "x86_64"', { 'ARCHS': ['x86_64'] }], 514 [ 'skia_osx_deployment_target==""', { 515 'MACOSX_DEPLOYMENT_TARGET': '10.7', # -mmacos-version-min, passed in env to ld. 516 }, { 517 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', 518 }], 519 [ 'skia_sanitizer', { 520 'GCC_ENABLE_CPP_RTTI': 'YES', # vptr needs rtti 521 'OTHER_CFLAGS': [ 522 '-fsanitize=<(skia_sanitizer)', # Turn on sanitizers. 523 '-fno-sanitize-recover=<(skia_sanitizer)', # Make any failure fatal. 524 '-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in our blacklist. 525 '-include <(skia_sanitizer_blacklist)', # Make every .cpp depend on it. 526 ], 527 # We want to pass -fsanitize=... to our final link call, 528 # but not to libtool. OTHER_LDFLAGS is passed to both. 529 # To trick GYP into doing what we want, we'll piggyback on 530 # LIBRARY_SEARCH_PATHS, producing "-L/usr/lib -fsanitize=...". 531 # The -L/usr/lib is redundant but innocuous: it's a default path. 532 'LIBRARY_SEARCH_PATHS': [ '/usr/lib -fsanitize=<(skia_sanitizer)'], 533 }], 534 ], 535 'CLANG_CXX_LIBRARY': 'libc++', 536 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', 537 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions 538 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti 539 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 540 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3 541 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hidden 542 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-inlines-hidden 543 'GCC_CW_ASM_SYNTAX': 'NO', # remove -fasm-blocks 544 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # remove -mpascal-strings 545 'WARNING_CFLAGS': [ 546 '-Wall', 547 '-Wextra', 548 '-Winit-self', 549 '-Wpointer-arith', 550 '-Wsign-compare', 551 552 '-Wno-unused-parameter', 553 ], 554 }, 555 }, 556 ], 557 558 [ 'skia_os == "ios"', 559 { 560 'defines': [ 561 'SK_BUILD_FOR_IOS', 562 ], 563 'conditions' : [ 564 [ 'skia_warnings_as_errors', { 565 'xcode_settings': { 566 'OTHER_CPLUSPLUSFLAGS': [ 567 '-Werror', 568 ], 569 }, 570 }], 571 ], 572 'configurations': { 573 'Debug': { 574 'xcode_settings': { 575 'GCC_OPTIMIZATION_LEVEL': '0', 576 }, 577 }, 578 'Release': { 579 'xcode_settings': { 580 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', 581 }, 582 'defines': [ 'NDEBUG' ], 583 }, 584 }, 585 'xcode_settings': { 586 'ARCHS': ['armv7'], 587 'CODE_SIGNING_REQUIRED': 'NO', 588 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)', 589 'SDKROOT': 'iphoneos', 590 'TARGETED_DEVICE_FAMILY': '1,2', 591 592 'CLANG_CXX_LIBRARY': 'libc++', 593 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', 594 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions 595 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti 596 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 597 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hidden 598 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-inlines-hidden 599 600 'GCC_THUMB_SUPPORT': 'NO', # TODO(mtklein): why would we not want thumb? 601 }, 602 }, 603 ], 604 605 [ 'skia_os == "android"', 606 { 607 'defines': [ 608 'SK_BUILD_FOR_ANDROID', 609 610 # Android Text Tuning 611 'SK_GAMMA_EXPONENT=1.4', 612 'SK_GAMMA_CONTRAST=0.0', 613 ], 614 # Android defines a fixed gamma exponent instead of using SRGB 615 'defines!': [ 616 'SK_GAMMA_SRGB', 617 ], 618 'configurations': { 619 'Debug': { 620 'cflags': ['-g'] 621 }, 622 'Release': { 623 'cflags': ['-O2'], 624 }, 625 }, 626 'libraries': [ 627 '-llog', 628 ], 629 'cflags': [ 630 '-fuse-ld=gold', 631 ], 632 'conditions': [ 633 [ '"x86" in skia_arch_type', { 634 'cflags': [ 635 '-mssse3', 636 ], 637 }], 638 [ 'skia_android_framework', { 639 'cflags!': [ 640 '-fuse-ld=gold', 641 '-mssse3', 642 ], 643 }], 644 [ 'skia_shared_lib', { 645 'defines': [ 646 'SKIA_DLL', 647 'SKIA_IMPLEMENTATION=1', 648 # Needed until we fix https://bug.skia.org/2440 . 649 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', 650 ], 651 }], 652 [ 'skia_profile_enabled == 1', { 653 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], 654 }], 655 ], 656 }, 657 ], 658 659 [ 'skia_moz2d', { 660 'defines': [ 661 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d 662 ], 663 }], 664 665 [ 'skia_command_buffer and skia_os == "linux"', { 666 'ldflags': [ 667 '-Wl,-rpath,\$$ORIGIN/lib', 668 ], 669 }], 670 671 [ 'skia_command_buffer and skia_os == "mac"', { 672 'xcode_settings': { 673 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], 674 }, 675 }], 676 677 ], # end 'conditions' 678 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 679 'xcode_settings': { 680 'SYMROOT': '<(DEPTH)/xcodebuild', 681 }, 682 } 683