Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'skia_configuration', | |
|
djsollen
2013/07/25 15:30:18
your going to need to rebase this change on the ne
| |
| 9 'type': 'none', | |
| 10 | |
| 11 'direct_dependent_settings': { | |
| 12 'defines': [ | |
| 13 'SK_BUILD_NO_IMAGE_ENCODE', | |
| 14 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', | |
| 15 'GR_STATIC_RECT_VB=1', | |
| 16 'GR_AGGRESSIVE_SHADER_OPTS=1', | |
| 17 'SK_DEFERRED_CANVAS_USES_GPIPE=1', | |
| 18 'SK_ENABLE_INST_COUNT=0', | |
| 19 | |
| 20 # These are set conditionally below. | |
| 21 #'SK_GAMMA_SRGB', | |
| 22 #'SK_GAMMA_APPLY_TO_A8', | |
| 23 | |
| 24 # this flag can be removed entirely once this has baked for a while | |
| 25 'SK_ALLOW_OVER_32K_BITMAPS', | |
| 26 | |
| 27 # skia uses static initializers to initialize the serialization logic | |
| 28 # of its "pictures" library. This is currently not used in chrome; if | |
| 29 # it ever gets used the processes that use it need to call | |
| 30 # SkGraphics::Init(). | |
| 31 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', | |
| 32 | |
| 33 # Disable this check because it is too strict for some Chromium | |
| 34 # specific subclasses of SkPixelRef. See bug: crbug.com/171776. | |
| 35 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', | |
| 36 | |
| 37 'IGNORE_ROT_AA_RECT_OPT', | |
| 38 ], | |
| 39 | |
| 40 'conditions': [ | |
| 41 # Settings for atomics and mutexes | |
| 42 [ 'OS == "win"', { | |
| 43 'defines': [ | |
| 44 'SK_ATOMICS_PLATFORM_H="skia/ext/SkAtomics_chrome.h"', | |
| 45 'SK_MUTEX_PLATFORM_H="third_party/skia/src/ports/SkMutex_win.h"', | |
| 46 ], | |
| 47 }], | |
| 48 [ 'OS in ["linux", "freebsd", "openbsd", "netbsd", "solaris", | |
| 49 "android", "mac", "ios"]', { | |
| 50 # For POSIX platforms, prefer the Mutex implementation provided by | |
| 51 # Skia since it does not generate static initializers. | |
| 52 'defines': [ | |
| 53 'SK_USE_POSIX_THREADS', | |
| 54 'SK_ATOMICS_PLATFORM_H="skia/ext/SkAtomics_chromium.h"', | |
| 55 'SK_MUTEX_PLATFORM_H="third_party/skia/src/ports/SkMutex_pthread.h "', | |
| 56 ], | |
| 57 }], | |
| 58 | |
| 59 #Settings for text blitting, chosen to approximate the system browser. | |
| 60 [ 'OS == "linux"', { | |
| 61 'defines': [ | |
| 62 'SK_GAMMA_EXPONENT=1.2', | |
| 63 'SK_GAMMA_CONTRAST=0.2', | |
| 64 ], | |
| 65 }], | |
| 66 ['OS == "android"', { | |
| 67 'defines': [ | |
| 68 'SK_GAMMA_APPLY_TO_A8', | |
| 69 'SK_GAMMA_EXPONENT=1.4', | |
| 70 'SK_GAMMA_CONTRAST=0.0', | |
| 71 ], | |
| 72 }], | |
| 73 ['OS == "win"', { | |
| 74 'defines': [ | |
| 75 'SK_GAMMA_SRGB', | |
| 76 'SK_GAMMA_CONTRAST=0.5', | |
| 77 ], | |
| 78 }], | |
| 79 ['OS == "mac"', { | |
| 80 'defines': [ | |
| 81 'SK_GAMMA_SRGB', | |
| 82 'SK_GAMMA_CONTRAST=0.0', | |
| 83 ], | |
| 84 }], | |
| 85 ], | |
| 86 }, | |
| 87 }, | |
| 88 { | |
| 8 'target_name': 'skia', | 89 'target_name': 'skia', |
| 9 'type': '<(component)', | 90 'type': '<(component)', |
| 91 'dependencies': [ | |
| 92 'skia_configuration', | |
| 93 'skia_opts', | |
| 94 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 95 '../third_party/sfntly/sfntly.gyp:sfntly', | |
| 96 '../third_party/zlib/zlib.gyp:zlib', | |
| 97 ], | |
| 98 'export_dependent_settings': [ | |
| 99 'skia_configuration', | |
| 100 ], | |
| 101 | |
| 10 'variables': { | 102 'variables': { |
| 11 'conditions': [ | 103 'conditions': [ |
| 12 ['OS== "ios"', { | 104 ['OS== "ios"', { |
| 13 'skia_support_gpu': 0, | 105 'skia_support_gpu': 0, |
| 14 }, { | 106 }, { |
| 15 'skia_support_gpu': 1, | 107 'skia_support_gpu': 1, |
| 16 }], | 108 }], |
| 17 ], | 109 ], |
| 18 | 110 |
| 19 'optimize': 'max', | 111 'optimize': 'max', |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 'ext/bitmap_platform_device_win.h', | 270 'ext/bitmap_platform_device_win.h', |
| 179 'ext/convolver.cc', | 271 'ext/convolver.cc', |
| 180 'ext/convolver.h', | 272 'ext/convolver.h', |
| 181 'ext/google_logging.cc', | 273 'ext/google_logging.cc', |
| 182 'ext/image_operations.cc', | 274 'ext/image_operations.cc', |
| 183 'ext/image_operations.h', | 275 'ext/image_operations.h', |
| 184 'ext/lazy_pixel_ref.cc', | 276 'ext/lazy_pixel_ref.cc', |
| 185 'ext/lazy_pixel_ref.h', | 277 'ext/lazy_pixel_ref.h', |
| 186 'ext/lazy_pixel_ref_utils.cc', | 278 'ext/lazy_pixel_ref_utils.cc', |
| 187 'ext/lazy_pixel_ref_utils.h', | 279 'ext/lazy_pixel_ref_utils.h', |
| 188 'ext/SkThread_chrome.cc', | 280 #'ext/SkThread_chrome.cc', |
| 189 'ext/paint_simplifier.cc', | 281 'ext/paint_simplifier.cc', |
| 190 'ext/paint_simplifier.h', | 282 'ext/paint_simplifier.h', |
| 191 'ext/platform_canvas.cc', | 283 'ext/platform_canvas.cc', |
| 192 'ext/platform_canvas.h', | 284 'ext/platform_canvas.h', |
| 193 'ext/platform_device.cc', | 285 'ext/platform_device.cc', |
| 194 'ext/platform_device.h', | 286 'ext/platform_device.h', |
| 195 'ext/platform_device_linux.cc', | 287 'ext/platform_device_linux.cc', |
| 196 'ext/platform_device_mac.cc', | 288 'ext/platform_device_mac.cc', |
| 197 'ext/platform_device_win.cc', | 289 'ext/platform_device_win.cc', |
| 198 'ext/recursive_gaussian_convolution.cc', | 290 'ext/recursive_gaussian_convolution.cc', |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 228 '../third_party/skia/include/pipe', | 320 '../third_party/skia/include/pipe', |
| 229 '../third_party/skia/include/ports', | 321 '../third_party/skia/include/ports', |
| 230 '../third_party/skia/include/utils', | 322 '../third_party/skia/include/utils', |
| 231 '../third_party/skia/src/core', | 323 '../third_party/skia/src/core', |
| 232 '../third_party/skia/src/image', | 324 '../third_party/skia/src/image', |
| 233 '../third_party/skia/src/sfnt', | 325 '../third_party/skia/src/sfnt', |
| 234 '../third_party/skia/src/utils', | 326 '../third_party/skia/src/utils', |
| 235 '../third_party/skia/src/lazy', | 327 '../third_party/skia/src/lazy', |
| 236 ], | 328 ], |
| 237 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800] , | 329 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800] , |
| 238 'defines': [ | |
| 239 #'SK_GAMMA_SRGB', | |
| 240 #'SK_GAMMA_APPLY_TO_A8', | |
| 241 'SK_BUILD_NO_IMAGE_ENCODE', | |
| 242 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', | |
| 243 'GR_STATIC_RECT_VB=1', | |
| 244 'GR_AGGRESSIVE_SHADER_OPTS=1', | |
| 245 'SK_DEFERRED_CANVAS_USES_GPIPE=1', | |
| 246 'SK_ENABLE_INST_COUNT=0', | |
| 247 | 330 |
| 248 # this flag can be removed entirely once this has baked for a while | |
| 249 'SK_ALLOW_OVER_32K_BITMAPS', | |
| 250 | |
| 251 # skia uses static initializers to initialize the serialization logic | |
| 252 # of its "pictures" library. This is currently not used in chrome; if | |
| 253 # it ever gets used the processes that use it need to call | |
| 254 # SkGraphics::Init(). | |
| 255 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', | |
| 256 | |
| 257 # Disable this check because it is too strict for some Chromium-specific | |
| 258 # subclasses of SkPixelRef. See bug: crbug.com/171776. | |
| 259 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', | |
| 260 | |
| 261 'IGNORE_ROT_AA_RECT_OPT', | |
| 262 ], | |
| 263 'sources!': [ | 331 'sources!': [ |
| 264 '../third_party/skia/include/core/SkTypes.h', | 332 '../third_party/skia/include/core/SkTypes.h', |
| 265 ], | 333 ], |
| 266 'conditions': [ | 334 'conditions': [ |
| 267 ['skia_support_gpu != 0', { | 335 ['skia_support_gpu != 0', { |
| 268 'includes': [ | 336 'includes': [ |
| 269 '../third_party/skia/gyp/gpu.gypi', | 337 '../third_party/skia/gyp/gpu.gypi', |
| 270 ], | 338 ], |
| 271 'sources': [ | 339 'sources': [ |
| 272 '<@(skgpu_sources)', | 340 '<@(skgpu_sources)', |
| 273 ], | 341 ], |
| 274 'include_dirs': [ | 342 'include_dirs': [ |
| 275 '../third_party/skia/include/gpu', | 343 '../third_party/skia/include/gpu', |
| 276 '../third_party/skia/include/gpu/gl', | 344 '../third_party/skia/include/gpu/gl', |
| 277 '../third_party/skia/src/gpu', | 345 '../third_party/skia/src/gpu', |
| 278 ], | 346 ], |
| 279 }, { # skia_support_gpu == 0 | 347 }, { # skia_support_gpu == 0 |
| 280 'defines': [ | 348 'defines': [ |
| 281 'SK_SUPPORT_GPU=0', | 349 'SK_SUPPORT_GPU=0', |
| 282 ], | 350 ], |
| 283 }], | 351 }], |
| 284 #Settings for text blitting, chosen to approximate the system browser. | |
| 285 [ 'OS == "linux"', { | |
| 286 'defines': [ | |
| 287 'SK_GAMMA_EXPONENT=1.2', | |
| 288 'SK_GAMMA_CONTRAST=0.2', | |
| 289 ], | |
| 290 }], | |
| 291 ['OS == "android"', { | |
| 292 'defines': [ | |
| 293 'SK_GAMMA_APPLY_TO_A8', | |
| 294 'SK_GAMMA_EXPONENT=1.4', | |
| 295 'SK_GAMMA_CONTRAST=0.0', | |
| 296 ], | |
| 297 }], | |
| 298 ['OS == "win"', { | |
| 299 'defines': [ | |
| 300 'SK_GAMMA_SRGB', | |
| 301 'SK_GAMMA_CONTRAST=0.5', | |
| 302 ], | |
| 303 }], | |
| 304 ['OS == "mac"', { | |
| 305 'defines': [ | |
| 306 'SK_GAMMA_SRGB', | |
| 307 'SK_GAMMA_CONTRAST=0.0', | |
| 308 ], | |
| 309 }], | |
| 310 | 352 |
| 311 # For POSIX platforms, prefer the Mutex implementation provided by Skia | |
| 312 # since it does not generate static initializers. | |
| 313 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', { | |
| 314 'defines+': [ | |
| 315 'SK_USE_POSIX_THREADS', | |
| 316 ], | |
| 317 'direct_dependent_settings': { | |
| 318 'defines': [ | |
| 319 'SK_USE_POSIX_THREADS', | |
| 320 ], | |
| 321 }, | |
| 322 'sources!': [ | |
| 323 'ext/SkThread_chrome.cc', | |
| 324 ], | |
| 325 }], | |
| 326 [ 'OS != "android"', { | 353 [ 'OS != "android"', { |
| 327 'sources/': [ | 354 'sources/': [ |
| 328 ['exclude', '_android\\.(cc|cpp)$'], | 355 ['exclude', '_android\\.(cc|cpp)$'], |
| 329 ], | 356 ], |
| 330 'sources!': [ | 357 'sources!': [ |
| 331 '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp', | 358 '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp', |
| 332 ], | 359 ], |
| 333 'defines': [ | 360 'defines': [ |
| 334 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)', | 361 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)', |
| 335 ], | 362 ], |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 383 ], | 410 ], |
| 384 'cflags': [ | 411 'cflags': [ |
| 385 '-Wno-unused', | 412 '-Wno-unused', |
| 386 '-Wno-unused-function', | 413 '-Wno-unused-function', |
| 387 ], | 414 ], |
| 388 'sources': [ | 415 'sources': [ |
| 389 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', | 416 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', |
| 390 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', | 417 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', |
| 391 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', | 418 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', |
| 392 ], | 419 ], |
| 393 'defines': [ | |
| 394 # 'SK_USE_COLOR_LUMINANCE', | |
| 395 ], | |
| 396 }], | 420 }], |
| 397 [ 'use_glib == 0 and OS != "android"', { | 421 [ 'use_glib == 0 and OS != "android"', { |
| 398 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ], | 422 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ], |
| 399 'sources!': [ | 423 'sources!': [ |
| 400 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', | 424 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', |
| 401 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', | 425 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', |
| 402 ], | 426 ], |
| 403 }], | 427 }], |
| 404 [ 'toolkit_uses_gtk == 1', { | 428 [ 'toolkit_uses_gtk == 1', { |
| 405 'dependencies': [ | 429 'dependencies': [ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 458 [ '_toolset=="host" and host_os=="linux"', { | 482 [ '_toolset=="host" and host_os=="linux"', { |
| 459 'sources': [ | 483 'sources': [ |
| 460 'ext/platform_device_linux.cc', | 484 'ext/platform_device_linux.cc', |
| 461 ], | 485 ], |
| 462 }], | 486 }], |
| 463 ], | 487 ], |
| 464 }], | 488 }], |
| 465 [ 'OS == "ios"', { | 489 [ 'OS == "ios"', { |
| 466 'defines': [ | 490 'defines': [ |
| 467 'SK_BUILD_FOR_IOS', | 491 'SK_BUILD_FOR_IOS', |
| 468 'SK_USE_MAC_CORE_TEXT', | |
| 469 ], | 492 ], |
| 470 'include_dirs': [ | 493 'include_dirs': [ |
| 471 '../third_party/skia/include/utils/ios', | 494 '../third_party/skia/include/utils/ios', |
| 472 '../third_party/skia/include/utils/mac', | 495 '../third_party/skia/include/utils/mac', |
| 473 ], | 496 ], |
| 474 'link_settings': { | 497 'link_settings': { |
| 475 'libraries': [ | 498 'libraries': [ |
| 476 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', | 499 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
| 477 ], | 500 ], |
| 478 }, | 501 }, |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 491 ], | 514 ], |
| 492 'sources/': [ | 515 'sources/': [ |
| 493 ['exclude', '/pdf/'], | 516 ['exclude', '/pdf/'], |
| 494 ['exclude', '^ext/vector_platform_device_skia\\.'], | 517 ['exclude', '^ext/vector_platform_device_skia\\.'], |
| 495 ['exclude', 'opts_check_SSE2\\.cpp$'], | 518 ['exclude', 'opts_check_SSE2\\.cpp$'], |
| 496 ], | 519 ], |
| 497 }], | 520 }], |
| 498 [ 'OS == "mac"', { | 521 [ 'OS == "mac"', { |
| 499 'defines': [ | 522 'defines': [ |
| 500 'SK_BUILD_FOR_MAC', | 523 'SK_BUILD_FOR_MAC', |
| 501 'SK_USE_MAC_CORE_TEXT', | |
| 502 # 'SK_USE_COLOR_LUMINANCE', | |
| 503 ], | 524 ], |
| 504 'include_dirs': [ | 525 'include_dirs': [ |
| 505 '../third_party/skia/include/utils/mac', | 526 '../third_party/skia/include/utils/mac', |
| 506 ], | 527 ], |
| 507 'link_settings': { | 528 'link_settings': { |
| 508 'libraries': [ | 529 'libraries': [ |
| 509 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | 530 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 510 ], | 531 ], |
| 511 }, | 532 }, |
| 512 'sources': [ | 533 'sources': [ |
| 513 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', | 534 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', |
| 514 ], | 535 ], |
| 515 }], | 536 }], |
| 516 [ 'OS == "win"', { | 537 [ 'OS == "win"', { |
| 517 'sources!': [ | 538 'sources!': [ |
| 518 '../third_party/skia/src/ports/SkOSFile_posix.cpp', | 539 '../third_party/skia/src/ports/SkOSFile_posix.cpp', |
| 519 '../third_party/skia/src/ports/SkThread_pthread.cpp', | 540 '../third_party/skia/src/ports/SkThread_pthread.cpp', |
| 520 '../third_party/skia/src/ports/SkTLS_pthread.cpp', | 541 '../third_party/skia/src/ports/SkTLS_pthread.cpp', |
| 521 '../third_party/skia/src/ports/SkTime_Unix.cpp', | 542 '../third_party/skia/src/ports/SkTime_Unix.cpp', |
| 522 'ext/SkThread_chrome.cc', | |
| 523 ], | 543 ], |
| 524 'include_dirs': [ | 544 'include_dirs': [ |
| 525 'config/win', | 545 'config/win', |
| 526 ], | 546 ], |
| 527 'direct_dependent_settings': { | 547 'direct_dependent_settings': { |
| 528 'include_dirs': [ | 548 'include_dirs': [ |
| 529 'config/win', | 549 'config/win', |
| 530 ], | 550 ], |
| 531 }, | 551 }, |
| 532 }], | 552 }], |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 553 'WARNING_CFLAGS!': [ | 573 'WARNING_CFLAGS!': [ |
| 554 # Don't warn about string->bool used in asserts. | 574 # Don't warn about string->bool used in asserts. |
| 555 '-Wstring-conversion', | 575 '-Wstring-conversion', |
| 556 ], | 576 ], |
| 557 }, | 577 }, |
| 558 'cflags!': [ | 578 'cflags!': [ |
| 559 '-Wstring-conversion', | 579 '-Wstring-conversion', |
| 560 ], | 580 ], |
| 561 }], | 581 }], |
| 562 ], | 582 ], |
| 563 'dependencies': [ | |
| 564 'skia_opts', | |
| 565 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 566 '../third_party/sfntly/sfntly.gyp:sfntly', | |
| 567 '../third_party/zlib/zlib.gyp:zlib', | |
| 568 ], | |
| 569 'direct_dependent_settings': { | 583 'direct_dependent_settings': { |
| 570 'include_dirs': [ | 584 'include_dirs': [ |
| 571 'config', | 585 'config', |
| 572 | 586 |
| 573 #temporary until we can hide SkFontHost | 587 #temporary until we can hide SkFontHost |
| 574 '../third_party/skia/src/core', | 588 '../third_party/skia/src/core', |
| 575 | 589 |
| 576 '../third_party/skia/include/config', | 590 '../third_party/skia/include/config', |
| 577 '../third_party/skia/include/core', | 591 '../third_party/skia/include/core', |
| 578 '../third_party/skia/include/effects', | 592 '../third_party/skia/include/effects', |
| 579 '../third_party/skia/include/pdf', | 593 '../third_party/skia/include/pdf', |
| 580 '../third_party/skia/include/gpu', | 594 '../third_party/skia/include/gpu', |
| 581 '../third_party/skia/include/gpu/gl', | 595 '../third_party/skia/include/gpu/gl', |
| 582 '../third_party/skia/include/lazy', | 596 '../third_party/skia/include/lazy', |
| 583 '../third_party/skia/include/pathops', | 597 '../third_party/skia/include/pathops', |
| 584 '../third_party/skia/include/pipe', | 598 '../third_party/skia/include/pipe', |
| 585 '../third_party/skia/include/ports', | 599 '../third_party/skia/include/ports', |
| 586 '../third_party/skia/include/utils', | 600 '../third_party/skia/include/utils', |
| 587 'ext', | 601 'ext', |
| 588 ], | 602 ], |
| 589 'defines': [ | |
| 590 'SK_BUILD_NO_IMAGE_ENCODE', | |
| 591 'SK_DEFERRED_CANVAS_USES_GPIPE=1', | |
| 592 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', | |
| 593 'GR_AGGRESSIVE_SHADER_OPTS=1', | |
| 594 'SK_ENABLE_INST_COUNT=0', | |
| 595 ], | |
| 596 'conditions': [ | 603 'conditions': [ |
| 597 ['OS=="android"', { | 604 ['OS=="android"', { |
| 598 'dependencies!': [ | 605 'dependencies!': [ |
| 599 'skia_opts', | 606 'skia_opts', |
| 600 '../third_party/zlib/zlib.gyp:zlib', | 607 '../third_party/zlib/zlib.gyp:zlib', |
| 601 ], | 608 ], |
| 602 'defines': [ | 609 'defines': [ |
| 603 # Don't use non-NDK available stuff. | 610 # Don't use non-NDK available stuff. |
| 604 'SK_BUILD_FOR_ANDROID', | 611 'SK_BUILD_FOR_ANDROID', |
| 605 ], | 612 ], |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 645 # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit | 652 # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit |
| 646 # SSE2 from instrinsics, which generating plain ol' 386 for everything | 653 # SSE2 from instrinsics, which generating plain ol' 386 for everything |
| 647 # else). However, to keep the .gyp file simple and avoid platform-specific | 654 # else). However, to keep the .gyp file simple and avoid platform-specific |
| 648 # build breakage, we do this on all platforms. | 655 # build breakage, we do this on all platforms. |
| 649 | 656 |
| 650 # For about the same reason, we need to compile the ARM opts files | 657 # For about the same reason, we need to compile the ARM opts files |
| 651 # separately as well. | 658 # separately as well. |
| 652 { | 659 { |
| 653 'target_name': 'skia_opts', | 660 'target_name': 'skia_opts', |
| 654 'type': 'static_library', | 661 'type': 'static_library', |
| 662 'dependencies': [ | |
| 663 'skia_configuration', | |
| 664 ], | |
| 655 'variables': { | 665 'variables': { |
| 656 'optimize': 'max', | 666 'optimize': 'max', |
| 657 }, | 667 }, |
| 658 'include_dirs': [ | 668 'include_dirs': [ |
| 659 '..', | 669 '..', |
| 660 'config', | 670 'config', |
| 661 '../third_party/skia/include/config', | 671 '../third_party/skia/include/config', |
| 662 '../third_party/skia/include/core', | 672 '../third_party/skia/include/core', |
| 663 '../third_party/skia/include/effects', | 673 '../third_party/skia/include/effects', |
| 664 '../third_party/skia/include/images', | 674 '../third_party/skia/include/images', |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 691 'conditions': [ | 701 'conditions': [ |
| 692 # x86 Android doesn't support SSSE3 instructions. | 702 # x86 Android doesn't support SSSE3 instructions. |
| 693 [ 'OS != "android"', { | 703 [ 'OS != "android"', { |
| 694 'dependencies': [ | 704 'dependencies': [ |
| 695 'skia_opts_ssse3', | 705 'skia_opts_ssse3', |
| 696 ], | 706 ], |
| 697 }], | 707 }], |
| 698 ], | 708 ], |
| 699 }], | 709 }], |
| 700 [ 'target_arch == "arm"', { | 710 [ 'target_arch == "arm"', { |
| 711 'dependencies': [ | |
| 712 'skia_configuration', | |
| 713 ], | |
| 701 'conditions': [ | 714 'conditions': [ |
| 702 [ 'arm_version >= 7 and arm_neon == 1', { | 715 [ 'arm_version >= 7 and arm_neon == 1', { |
| 703 'defines': [ | 716 'defines': [ |
| 704 '__ARM_HAVE_NEON', | 717 '__ARM_HAVE_NEON', |
| 705 ], | 718 ], |
| 706 }], | 719 }], |
| 707 [ 'arm_version >= 7 and arm_neon_optional == 1', { | 720 [ 'arm_version >= 7 and arm_neon_optional == 1', { |
| 708 'defines': [ | 721 'defines': [ |
| 709 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 722 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 710 ], | 723 ], |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 769 }], | 782 }], |
| 770 ], | 783 ], |
| 771 }, | 784 }, |
| 772 # For the same lame reasons as what is done for skia_opts, we have to | 785 # For the same lame reasons as what is done for skia_opts, we have to |
| 773 # create another target specifically for SSSE3 code as we would not want | 786 # create another target specifically for SSSE3 code as we would not want |
| 774 # to compile the SSE2 code with -mssse3 which would potentially allow | 787 # to compile the SSE2 code with -mssse3 which would potentially allow |
| 775 # gcc to generate SSSE3 code. | 788 # gcc to generate SSSE3 code. |
| 776 { | 789 { |
| 777 'target_name': 'skia_opts_ssse3', | 790 'target_name': 'skia_opts_ssse3', |
| 778 'type': 'static_library', | 791 'type': 'static_library', |
| 792 'dependencies': [ | |
| 793 'skia_configuration', | |
| 794 ], | |
| 779 'variables': { | 795 'variables': { |
| 780 'optimize': 'max', | 796 'optimize': 'max', |
| 781 }, | 797 }, |
| 782 'include_dirs': [ | 798 'include_dirs': [ |
| 783 '..', | 799 '..', |
| 784 'config', | 800 'config', |
| 785 '../third_party/skia/include/config', | 801 '../third_party/skia/include/config', |
| 786 '../third_party/skia/include/core', | 802 '../third_party/skia/include/core', |
| 787 '../third_party/skia/include/pathops', | 803 '../third_party/skia/include/pathops', |
| 788 '../third_party/skia/src/core', | 804 '../third_party/skia/src/core', |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 815 }], | 831 }], |
| 816 ], | 832 ], |
| 817 }, | 833 }, |
| 818 # NEON code must be compiled with -mfpu=neon which also affects scalar | 834 # NEON code must be compiled with -mfpu=neon which also affects scalar |
| 819 # code. To support dynamic NEON code paths, we need to build all | 835 # code. To support dynamic NEON code paths, we need to build all |
| 820 # NEON-specific sources in a separate static library. The situation | 836 # NEON-specific sources in a separate static library. The situation |
| 821 # is very similar to the SSSE3 one. | 837 # is very similar to the SSSE3 one. |
| 822 { | 838 { |
| 823 'target_name': 'skia_opts_neon', | 839 'target_name': 'skia_opts_neon', |
| 824 'type': 'static_library', | 840 'type': 'static_library', |
| 841 'dependencies': [ | |
| 842 'skia_configuration', | |
| 843 ], | |
| 825 'include_dirs': [ | 844 'include_dirs': [ |
| 826 '..', | 845 '..', |
| 827 'config', | 846 'config', |
| 828 '../third_party/skia/include/config', | 847 '../third_party/skia/include/config', |
| 829 '../third_party/skia/include/core', | 848 '../third_party/skia/include/core', |
| 830 '../third_party/skia/src/core', | 849 '../third_party/skia/src/core', |
| 831 '../third_party/skia/src/opts', | 850 '../third_party/skia/src/opts', |
| 832 ], | 851 ], |
| 833 'cflags!': [ | 852 'cflags!': [ |
| 834 '-fno-omit-frame-pointer', | 853 '-fno-omit-frame-pointer', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 867 ], | 886 ], |
| 868 }], | 887 }], |
| 869 ], | 888 ], |
| 870 }, | 889 }, |
| 871 { | 890 { |
| 872 'target_name': 'image_operations_bench', | 891 'target_name': 'image_operations_bench', |
| 873 'type': 'executable', | 892 'type': 'executable', |
| 874 'dependencies': [ | 893 'dependencies': [ |
| 875 '../base/base.gyp:base', | 894 '../base/base.gyp:base', |
| 876 'skia', | 895 'skia', |
| 896 'skia_configuration', | |
| 877 ], | 897 ], |
| 878 'include_dirs': [ | 898 'include_dirs': [ |
| 879 '..', | 899 '..', |
| 880 ], | 900 ], |
| 881 'sources': [ | 901 'sources': [ |
| 882 'ext/image_operations_bench.cc', | 902 'ext/image_operations_bench.cc', |
| 883 ], | 903 ], |
| 884 }, | 904 }, |
| 885 ], | 905 ], |
| 886 'conditions': [ | 906 'conditions': [ |
| 887 ['OS=="ios"', { | 907 ['OS=="ios"', { |
| 888 'targets': [ | 908 'targets': [ |
| 889 # The main skia_opts target does not currently work on iOS because the | 909 # The main skia_opts target does not currently work on iOS because the |
| 890 # target architecture on iOS is determined at compile time rather than | 910 # target architecture on iOS is determined at compile time rather than |
| 891 # gyp time (simulator builds are x86, device builds are arm). As a | 911 # gyp time (simulator builds are x86, device builds are arm). As a |
| 892 # temporary measure, this is a separate opts target for iOS-only, using | 912 # temporary measure, this is a separate opts target for iOS-only, using |
| 893 # the _none.cpp files to avoid architecture-dependent implementations. | 913 # the _none.cpp files to avoid architecture-dependent implementations. |
| 894 { | 914 { |
| 895 'target_name': 'skia_opts_ios', | 915 'target_name': 'skia_opts_ios', |
| 896 'type': 'static_library', | 916 'type': 'static_library', |
| 917 'dependencies': [ | |
| 918 'skia_configuration', | |
| 919 ], | |
| 897 'include_dirs': [ | 920 'include_dirs': [ |
| 898 '..', | 921 '..', |
| 899 'config', | 922 'config', |
| 900 '../third_party/skia/include/config', | 923 '../third_party/skia/include/config', |
| 901 '../third_party/skia/include/core', | 924 '../third_party/skia/include/core', |
| 902 '../third_party/skia/include/effects', | 925 '../third_party/skia/include/effects', |
| 903 '../third_party/skia/include/images', | 926 '../third_party/skia/include/images', |
| 904 '../third_party/skia/include/lazy', | 927 '../third_party/skia/include/lazy', |
| 905 '../third_party/skia/include/pathops', | 928 '../third_party/skia/include/pathops', |
| 906 '../third_party/skia/include/utils', | 929 '../third_party/skia/include/utils', |
| 907 '../third_party/skia/src/core', | 930 '../third_party/skia/src/core', |
| 908 ], | 931 ], |
| 909 'sources': [ | 932 'sources': [ |
| 910 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 933 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
| 911 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 934 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 912 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 935 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 913 ], | 936 ], |
| 914 }, | 937 }, |
| 915 ], | 938 ], |
| 916 }], | 939 }], |
| 917 ], | 940 ], |
| 918 } | 941 } |
| OLD | NEW |