Chromium Code Reviews| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 '-fno-exceptions', | 225 '-fno-exceptions', |
| 226 '-fstrict-aliasing', | 226 '-fstrict-aliasing', |
| 227 | 227 |
| 228 '-Wall', | 228 '-Wall', |
| 229 '-Wextra', | 229 '-Wextra', |
| 230 '-Winit-self', | 230 '-Winit-self', |
| 231 '-Wpointer-arith', | 231 '-Wpointer-arith', |
| 232 '-Wsign-compare', | 232 '-Wsign-compare', |
| 233 | 233 |
| 234 '-Wno-unused-parameter', | 234 '-Wno-unused-parameter', |
| 235 '-Wno-tautological-compare', | |
|
Brian Osman
2016/03/17 18:07:03
Is this okay? Without this, clang is warning on co
| |
| 235 ], | 236 ], |
| 236 'cflags_cc': [ | 237 'cflags_cc': [ |
| 237 '-std=c++11', | 238 '-std=c++11', |
| 238 '-fno-rtti', | 239 '-fno-rtti', |
| 239 '-fno-threadsafe-statics', | 240 '-fno-threadsafe-statics', |
| 240 '-Wnon-virtual-dtor', | 241 '-Wnon-virtual-dtor', |
| 241 ], | 242 ], |
| 242 'ldflags': [ '-rdynamic' ], | 243 'ldflags': [ '-rdynamic' ], |
| 243 'conditions': [ | 244 'conditions': [ |
| 244 [ 'skia_fast', { 'cflags': [ '<@(skia_fast_flags)' ] }], | 245 [ 'skia_fast', { 'cflags': [ '<@(skia_fast_flags)' ] }], |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 654 ], | 655 ], |
| 655 }], | 656 }], |
| 656 [ 'skia_profile_enabled == 1', { | 657 [ 'skia_profile_enabled == 1', { |
| 657 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], | 658 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
| 658 }], | 659 }], |
| 659 [ 'skia_clang_build', { | 660 [ 'skia_clang_build', { |
| 660 'cflags': [ | 661 'cflags': [ |
| 661 '-Wno-unknown-warning-option', # Allows unknown warnings | 662 '-Wno-unknown-warning-option', # Allows unknown warnings |
| 662 # These flags that are on by default for only the android | 663 # These flags that are on by default for only the android |
| 663 # toolchain and no other platforms. | 664 # toolchain and no other platforms. |
| 664 '-Wno-tautological-compare', | |
| 665 '-Wno-unused-command-line-argument', | 665 '-Wno-unused-command-line-argument', |
| 666 ], | 666 ], |
| 667 }], | 667 }], |
| 668 ], | 668 ], |
| 669 }, | 669 }, |
| 670 ], | 670 ], |
| 671 | 671 |
| 672 [ 'skia_moz2d', { | 672 [ 'skia_moz2d', { |
| 673 'defines': [ | 673 'defines': [ |
| 674 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d | 674 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 686 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 686 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
| 687 }, | 687 }, |
| 688 }], | 688 }], |
| 689 | 689 |
| 690 ], # end 'conditions' | 690 ], # end 'conditions' |
| 691 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details | 691 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details |
| 692 'xcode_settings': { | 692 'xcode_settings': { |
| 693 'SYMROOT': '<(DEPTH)/xcodebuild', | 693 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 694 }, | 694 }, |
| 695 } | 695 } |
| OLD | NEW |