| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 }, | 211 }, |
| 212 }, | 212 }, |
| 213 }, | 213 }, |
| 214 }, | 214 }, |
| 215 }], | 215 }], |
| 216 ], | 216 ], |
| 217 }, | 217 }, |
| 218 ], | 218 ], |
| 219 | 219 |
| 220 # The following section is common to linux + derivatives and android | 220 # The following section is common to linux + derivatives and android |
| 221 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "androi
d"]', | 221 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"]', |
| 222 { | 222 { |
| 223 'cflags': [ | 223 'cflags': [ |
| 224 '-g', | 224 '-g', |
| 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 ], | 235 ], |
| 236 'cflags_cc': [ | 236 'cflags_cc': [ |
| 237 '-std=c++11', | 237 '-std=c++11', |
| 238 '-fno-rtti', | 238 '-fno-rtti', |
| 239 '-fno-threadsafe-statics', | 239 '-fno-threadsafe-statics', |
| 240 '-Wnon-virtual-dtor', | 240 '-Wnon-virtual-dtor', |
| 241 ], | 241 ], |
| 242 'ldflags': [ '-rdynamic' ], | 242 'ldflags': [ '-rdynamic' ], |
| 243 'conditions': [ | 243 'conditions': [ |
| 244 [ 'skia_fast', { 'cflags': [ '<@(skia_fast_flags)' ] }], | 244 [ 'skia_fast', { 'cflags': [ '<@(skia_fast_flags)' ] }], |
| 245 [ 'skia_os != "chromeos"', { | 245 [ 'skia_arch_type == "x86_64" and not skia_android_framework', { |
| 246 'conditions': [ | 246 'cflags': [ |
| 247 [ 'skia_arch_type == "x86_64" and not skia_android_framework', { | 247 '-m64', |
| 248 'cflags': [ | 248 ], |
| 249 '-m64', | 249 'ldflags': [ |
| 250 ], | 250 '-m64', |
| 251 'ldflags': [ | 251 ], |
| 252 '-m64', | 252 }], |
| 253 ], | 253 [ 'skia_arch_type == "x86" and not skia_android_framework', { |
| 254 }], | 254 'cflags': [ |
| 255 [ 'skia_arch_type == "x86" and not skia_android_framework', { | 255 '-m32', |
| 256 'cflags': [ | 256 ], |
| 257 '-m32', | 257 'ldflags': [ |
| 258 ], | 258 '-m32', |
| 259 'ldflags': [ | |
| 260 '-m32', | |
| 261 ], | |
| 262 }], | |
| 263 ], | 259 ], |
| 264 }], | 260 }], |
| 265 [ 'skia_warnings_as_errors', { | 261 [ 'skia_warnings_as_errors', { |
| 266 'cflags': [ | 262 'cflags': [ |
| 267 '-Werror', | 263 '-Werror', |
| 268 ], | 264 ], |
| 269 }], | 265 }], |
| 270 # For profiling; reveals some costs, exaggerates others (e.g. trivial
setters & getters). | 266 # For profiling; reveals some costs, exaggerates others (e.g. trivial
setters & getters). |
| 271 [ 'skia_disable_inlining', { | 267 [ 'skia_disable_inlining', { |
| 272 'cflags': [ | 268 'cflags': [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 291 ], | 287 ], |
| 292 'cflags': [ | 288 'cflags': [ |
| 293 '-mfpu=neon', | 289 '-mfpu=neon', |
| 294 ], | 290 ], |
| 295 }], | 291 }], |
| 296 [ 'arm_neon_optional == 1', { | 292 [ 'arm_neon_optional == 1', { |
| 297 'defines': [ | 293 'defines': [ |
| 298 'SK_ARM_HAS_OPTIONAL_NEON', | 294 'SK_ARM_HAS_OPTIONAL_NEON', |
| 299 ], | 295 ], |
| 300 }], | 296 }], |
| 301 [ 'skia_os != "chromeos" and skia_os != "linux"', { | 297 [ 'skia_os != "linux"', { |
| 302 'cflags': [ | 298 'cflags': [ |
| 303 '-mfloat-abi=softfp', | 299 '-mfloat-abi=softfp', |
| 304 ], | 300 ], |
| 305 }], | 301 }], |
| 306 ], | 302 ], |
| 307 }], | 303 }], |
| 308 [ '"mips" in skia_arch_type', { | 304 [ '"mips" in skia_arch_type', { |
| 309 'cflags': [ '-EL' ], | 305 'cflags': [ '-EL' ], |
| 310 'conditions': [ | 306 'conditions': [ |
| 311 [ 'mips_arch_variant == "mips32r2"', { | 307 [ 'mips_arch_variant == "mips32r2"', { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 [ 'skia_use_sdl == 1', | 398 [ 'skia_use_sdl == 1', |
| 403 { | 399 { |
| 404 'defines': [ 'SK_USE_SDL' ], | 400 'defines': [ 'SK_USE_SDL' ], |
| 405 }], | 401 }], |
| 406 | 402 |
| 407 [ 'skia_dump_stats == 1', | 403 [ 'skia_dump_stats == 1', |
| 408 { | 404 { |
| 409 'defines': [ 'SK_DUMP_STATS'], | 405 'defines': [ 'SK_DUMP_STATS'], |
| 410 }], | 406 }], |
| 411 | 407 |
| 412 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', | 408 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', |
| 413 { | 409 { |
| 414 'defines': [ | 410 'defines': [ |
| 415 'SK_SAMPLES_FOR_X', | 411 'SK_SAMPLES_FOR_X', |
| 416 'SK_BUILD_FOR_UNIX', | 412 'SK_BUILD_FOR_UNIX', |
| 417 ], | 413 ], |
| 418 'configurations': { | 414 'configurations': { |
| 419 'Coverage': { | 415 'Coverage': { |
| 420 'conditions': [ | 416 'conditions': [ |
| 421 [ 'skia_clang_build', { | 417 [ 'skia_clang_build', { |
| 422 'cflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], | 418 'cflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 685 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
| 690 }, | 686 }, |
| 691 }], | 687 }], |
| 692 | 688 |
| 693 ], # end 'conditions' | 689 ], # end 'conditions' |
| 694 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 690 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
| 695 'xcode_settings': { | 691 'xcode_settings': { |
| 696 'SYMROOT': '<(DEPTH)/xcodebuild', | 692 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 697 }, | 693 }, |
| 698 } | 694 } |
| OLD | NEW |