| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # conditions used in both common.gypi and skia.gyp in chromium | 6 # conditions used in both common.gypi and skia.gyp in chromium |
| 7 # | 7 # |
| 8 { | 8 { |
| 9 'defines': [ | 9 'defines': [ |
| 10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 }], | 401 }], |
| 402 | 402 |
| 403 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', | 403 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', |
| 404 { | 404 { |
| 405 'defines': [ | 405 'defines': [ |
| 406 'SK_SAMPLES_FOR_X', | 406 'SK_SAMPLES_FOR_X', |
| 407 'SK_BUILD_FOR_UNIX', | 407 'SK_BUILD_FOR_UNIX', |
| 408 ], | 408 ], |
| 409 'configurations': { | 409 'configurations': { |
| 410 'Coverage': { | 410 'Coverage': { |
| 411 'cflags': ['--coverage'], | 411 'conditions': [ |
| 412 'ldflags': ['--coverage'], | 412 [ 'skia_clang_build', { |
| 413 'cflags': ['-fprofile-instr-generate', '-fcoverage-mapping', '-w
'], |
| 414 'ldflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], |
| 415 }, { |
| 416 'cflags': ['--coverage'], |
| 417 'ldflags': ['--coverage'], |
| 418 }], |
| 419 ], |
| 413 }, | 420 }, |
| 414 'Debug': { | 421 'Debug': { |
| 415 }, | 422 }, |
| 416 'Release': { | 423 'Release': { |
| 417 'cflags': [ | 424 'cflags': [ |
| 418 '-O<(skia_release_optimization_level)', | 425 '-O<(skia_release_optimization_level)', |
| 419 ], | 426 ], |
| 420 'defines': [ 'NDEBUG' ], | 427 'defines': [ 'NDEBUG' ], |
| 421 }, | 428 }, |
| 422 }, | 429 }, |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d | 627 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d |
| 621 ], | 628 ], |
| 622 }], | 629 }], |
| 623 | 630 |
| 624 ], # end 'conditions' | 631 ], # end 'conditions' |
| 625 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 632 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
| 626 'xcode_settings': { | 633 'xcode_settings': { |
| 627 'SYMROOT': '<(DEPTH)/xcodebuild', | 634 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 628 }, | 635 }, |
| 629 } | 636 } |
| OLD | NEW |