| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 import("//printing/features/features.gni") | 8 import("//printing/features/features.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//third_party/skia/gn/shared_sources.gni") | 10 import("//third_party/skia/gn/shared_sources.gni") |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 "//third_party/skia/include/pathops", | 37 "//third_party/skia/include/pathops", |
| 38 "//third_party/skia/include/pdf", | 38 "//third_party/skia/include/pdf", |
| 39 "//third_party/skia/include/pipe", | 39 "//third_party/skia/include/pipe", |
| 40 "//third_party/skia/include/ports", | 40 "//third_party/skia/include/ports", |
| 41 "//third_party/skia/include/utils", | 41 "//third_party/skia/include/utils", |
| 42 "//third_party/skia/third_party/vulkan", | 42 "//third_party/skia/third_party/vulkan", |
| 43 ] | 43 ] |
| 44 | 44 |
| 45 defines = skia_for_chromium_defines | 45 defines = skia_for_chromium_defines |
| 46 | 46 |
| 47 if (is_win) { | 47 if (is_win || is_mac) { |
| 48 defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x010
00000) | ((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100))" ] | 48 defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x010
00000) | ((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100))" ] |
| 49 } | 49 } |
| 50 | 50 |
| 51 if (is_component_build) { | 51 if (is_component_build) { |
| 52 defines += [ | 52 defines += [ |
| 53 "SKIA_DLL", | 53 "SKIA_DLL", |
| 54 "GR_GL_IGNORE_ES3_MSAA=0", | 54 "GR_GL_IGNORE_ES3_MSAA=0", |
| 55 ] | 55 ] |
| 56 } | 56 } |
| 57 | 57 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 316 } |
| 317 | 317 |
| 318 if (is_android && (!enable_basic_printing && !enable_print_preview)) { | 318 if (is_android && (!enable_basic_printing && !enable_print_preview)) { |
| 319 sources -= [ | 319 sources -= [ |
| 320 "ext/skia_utils_base.cc", | 320 "ext/skia_utils_base.cc", |
| 321 "ext/skia_utils_base.h", | 321 "ext/skia_utils_base.h", |
| 322 ] | 322 ] |
| 323 } | 323 } |
| 324 | 324 |
| 325 # Select Skia ports. | 325 # Select Skia ports. |
| 326 |
| 327 # FreeType is needed everywhere, on Linux and Android as main font backend, on
Windows and Mac as fallback backend for Variations. |
| 328 sources += [ |
| 329 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 330 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 331 ] |
| 332 |
| 326 if (is_win) { | 333 if (is_win) { |
| 327 sources += [ | 334 sources += [ |
| 328 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 335 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
| 329 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", | 336 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", |
| 330 "//third_party/skia/src/ports/SkOSFile_win.cpp", | 337 "//third_party/skia/src/ports/SkOSFile_win.cpp", |
| 331 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 338 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
| 332 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | 339 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
| 333 "//third_party/skia/src/ports/SkTLS_win.cpp", | 340 "//third_party/skia/src/ports/SkTLS_win.cpp", |
| 334 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", | 341 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", |
| 335 ] | 342 ] |
| (...skipping 25 matching lines...) Expand all Loading... |
| 361 if (is_linux || is_android) { | 368 if (is_linux || is_android) { |
| 362 sources += [ | 369 sources += [ |
| 363 # Retain the files for the SkFontMgr_Android on linux to emulate android | 370 # Retain the files for the SkFontMgr_Android on linux to emulate android |
| 364 # fonts. See content/zygote/zygote_main_linux.cc | 371 # fonts. See content/zygote/zygote_main_linux.cc |
| 365 # Note that this requires expat. | 372 # Note that this requires expat. |
| 366 "//third_party/skia/src/ports/SkFontMgr_android.cpp", | 373 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
| 367 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", | 374 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
| 368 ] | 375 ] |
| 369 } | 376 } |
| 370 | 377 |
| 371 if (is_linux || is_android || is_win) { | 378 if (is_win || is_mac) { |
| 372 sources += [ | 379 sources += [ |
| 373 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 380 # Add the FreeType custom font manager as a fallback backend for variable
fonts. |
| 374 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 381 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", |
| 382 "//third_party/skia/src/ports/SkFontMgr_custom_empty.cpp", |
| 375 ] | 383 ] |
| 376 } | 384 } |
| 377 | 385 |
| 378 if (is_win) { | 386 if (is_win) { |
| 379 sources += [ | 387 sources += [ |
| 380 # Add the custom FreeType font manager to instantiate variable fonts on Wi
ndows. | |
| 381 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", | |
| 382 "//third_party/skia/src/ports/SkFontMgr_custom_empty.cpp", | |
| 383 | |
| 384 # Select the right BitmapPlatformDevice. | 388 # Select the right BitmapPlatformDevice. |
| 385 "ext/raster_handle_allocator_win.cc", | 389 "ext/raster_handle_allocator_win.cc", |
| 386 ] | 390 ] |
| 387 } | 391 } |
| 388 | 392 |
| 389 if (is_clang && !is_nacl) { | 393 if (is_clang && !is_nacl) { |
| 390 # Skia won't compile with some of the more strict clang warnings. | 394 # Skia won't compile with some of the more strict clang warnings. |
| 391 # e.g. it does: | 395 # e.g. it does: |
| 392 # SkASSERT(!"sk_out_of_memory"); | 396 # SkASSERT(!"sk_out_of_memory"); |
| 393 configs -= [ "//build/config/clang:extra_warnings" ] | 397 configs -= [ "//build/config/clang:extra_warnings" ] |
| 394 } | 398 } |
| 395 | 399 |
| 396 configs -= [ "//build/config/compiler:chromium_code" ] | 400 configs -= [ "//build/config/compiler:chromium_code" ] |
| 397 configs += [ | 401 configs += [ |
| 398 ":skia_config", | 402 ":skia_config", |
| 399 ":skia_library_config", | 403 ":skia_library_config", |
| 400 "//build/config/compiler:no_chromium_code", | 404 "//build/config/compiler:no_chromium_code", |
| 401 ] | 405 ] |
| 402 public_configs = [ ":skia_config" ] | 406 public_configs = [ ":skia_config" ] |
| 403 | 407 |
| 404 deps = [ | 408 deps = [ |
| 405 ":skia_opts", | 409 ":skia_opts", |
| 406 "//base", | 410 "//base", |
| 407 "//base/third_party/dynamic_annotations", | 411 "//base/third_party/dynamic_annotations", |
| 412 "//build/config/freetype", |
| 408 ] | 413 ] |
| 409 | 414 |
| 410 if (is_linux) { | 415 if (is_linux) { |
| 411 if (use_pango) { | 416 if (use_pango) { |
| 412 configs += [ "//build/config/linux/pangocairo" ] | 417 configs += [ "//build/config/linux/pangocairo" ] |
| 413 } | 418 } |
| 414 deps += [ | 419 deps += [ |
| 415 "//build/config/freetype", | |
| 416 "//build/linux:fontconfig", | 420 "//build/linux:fontconfig", |
| 417 "//third_party/expat", | 421 "//third_party/expat", |
| 418 "//third_party/icu:icuuc", | 422 "//third_party/icu:icuuc", |
| 419 ] | 423 ] |
| 420 } | 424 } |
| 421 | 425 |
| 422 if (is_android) { | 426 if (is_android) { |
| 423 deps += [ | 427 deps += [ |
| 424 "//third_party/android_tools:cpu_features", | 428 "//third_party/android_tools:cpu_features", |
| 425 "//third_party/expat", | 429 "//third_party/expat", |
| 426 ] | 430 ] |
| 427 } | 431 } |
| 428 | 432 |
| 429 if (is_win || is_android) { | |
| 430 deps += [ "//build/config/freetype" ] | |
| 431 } | |
| 432 | |
| 433 if (skia_support_pdf) { | 433 if (skia_support_pdf) { |
| 434 deps += [ | 434 deps += [ |
| 435 "//third_party/sfntly", | 435 "//third_party/sfntly", |
| 436 "//third_party/zlib", | 436 "//third_party/zlib", |
| 437 ] | 437 ] |
| 438 sources += skia_pdf_sources | 438 sources += skia_pdf_sources |
| 439 } else { | 439 } else { |
| 440 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] | 440 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] |
| 441 } | 441 } |
| 442 | 442 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 709 |
| 710 deps = [ | 710 deps = [ |
| 711 ":skia", | 711 ":skia", |
| 712 "//base", | 712 "//base", |
| 713 "//base/test:test_support", | 713 "//base/test:test_support", |
| 714 "//build/config/sanitizers:deps", | 714 "//build/config/sanitizers:deps", |
| 715 "//build/win:default_exe_manifest", | 715 "//build/win:default_exe_manifest", |
| 716 ] | 716 ] |
| 717 } | 717 } |
| 718 } | 718 } |
| OLD | NEW |