Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Side by Side Diff: skia/BUILD.gn

Issue 2786263002: Revert of Support for OpenType Font Variations on Windows (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build_overrides/pdfium.gni ('k') | third_party/WebKit/LayoutTests/NeverFixTests » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
36 "//third_party/skia/include/lazy", 36 "//third_party/skia/include/lazy",
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 ] 42 ]
43 43
44 defines = skia_for_chromium_defines 44 defines = skia_for_chromium_defines
45 45
46 if (is_win) {
47 defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) << 24) | ((FREETYPE_MINOR) << 16) | ((FREETYPE_PATCH) << 8))" ]
48 }
49
50 if (is_component_build) { 46 if (is_component_build) {
51 defines += [ 47 defines += [
52 "SKIA_DLL", 48 "SKIA_DLL",
53 "GR_GL_IGNORE_ES3_MSAA=0", 49 "GR_GL_IGNORE_ES3_MSAA=0",
54 ] 50 ]
55 } 51 }
56 52
57 if (skia_support_gpu) { 53 if (skia_support_gpu) {
58 include_dirs += [ 54 include_dirs += [
59 "//third_party/skia/include/gpu", 55 "//third_party/skia/include/gpu",
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 sources += [ 351 sources += [
356 "//third_party/skia/src/ports/SkFontConfigInterface.cpp", 352 "//third_party/skia/src/ports/SkFontConfigInterface.cpp",
357 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", 353 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
358 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", 354 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp",
359 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp", 355 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp",
360 ] 356 ]
361 } 357 }
362 358
363 if (is_linux || is_android) { 359 if (is_linux || is_android) {
364 sources += [ 360 sources += [
361 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
362 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
363
365 # Retain the files for the SkFontMgr_Android on linux to emulate android 364 # Retain the files for the SkFontMgr_Android on linux to emulate android
366 # fonts. See content/zygote/zygote_main_linux.cc 365 # fonts. See content/zygote/zygote_main_linux.cc
367 # Note that this requires expat. 366 # Note that this requires expat.
368 "//third_party/skia/src/ports/SkFontMgr_android.cpp", 367 "//third_party/skia/src/ports/SkFontMgr_android.cpp",
369 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", 368 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
370 ] 369 ]
371 } 370 }
372 371
373 if (is_linux || is_android || is_win) { 372 # Select the right BitmapPlatformDevice.
374 sources += [
375 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
376 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
377 ]
378 }
379
380 if (is_win) { 373 if (is_win) {
381 sources += [ 374 sources += [ "ext/raster_handle_allocator_win.cc" ]
382 # Add the custom FreeType font manager to instantiate variable fonts on Wi ndows.
383 "//third_party/skia/src/ports/SkFontMgr_custom.cpp",
384 "//third_party/skia/src/ports/SkFontMgr_custom_empty.cpp",
385
386 # Select the right BitmapPlatformDevice.
387 "ext/raster_handle_allocator_win.cc",
388 ]
389 } 375 }
390 376
391 if (is_clang && !is_nacl) { 377 if (is_clang && !is_nacl) {
392 # Skia won't compile with some of the more strict clang warnings. 378 # Skia won't compile with some of the more strict clang warnings.
393 # e.g. it does: 379 # e.g. it does:
394 # SkASSERT(!"sk_out_of_memory"); 380 # SkASSERT(!"sk_out_of_memory");
395 configs -= [ "//build/config/clang:extra_warnings" ] 381 configs -= [ "//build/config/clang:extra_warnings" ]
396 } 382 }
397 383
398 configs -= [ "//build/config/compiler:chromium_code" ] 384 configs -= [ "//build/config/compiler:chromium_code" ]
399 configs += [ 385 configs += [
400 ":skia_config", 386 ":skia_config",
401 ":skia_library_config", 387 ":skia_library_config",
402 "//build/config/compiler:no_chromium_code", 388 "//build/config/compiler:no_chromium_code",
403 ] 389 ]
404 public_configs = [ ":skia_config" ] 390 public_configs = [ ":skia_config" ]
405 391
406 deps = [ 392 deps = [
407 ":skia_opts", 393 ":skia_opts",
408 "//base", 394 "//base",
409 "//base/third_party/dynamic_annotations", 395 "//base/third_party/dynamic_annotations",
410 ] 396 ]
411 397
412 if (is_linux) { 398 if (is_linux) {
413 if (use_pango) { 399 if (use_pango) {
414 configs += [ "//build/config/linux/pangocairo" ] 400 configs += [ "//build/config/linux/pangocairo" ]
415 } 401 }
416 deps += [ 402 deps += [
403 "//build/linux:fontconfig",
417 "//build/config/freetype", 404 "//build/config/freetype",
418 "//build/linux:fontconfig",
419 "//third_party/expat", 405 "//third_party/expat",
420 "//third_party/icu:icuuc", 406 "//third_party/icu:icuuc",
421 ] 407 ]
422 } 408 }
423 409
424 if (is_android) { 410 if (is_android) {
425 deps += [ 411 deps += [
426 "//third_party/android_tools:cpu_features", 412 "//third_party/android_tools:cpu_features",
427 "//third_party/expat", 413 "//third_party/expat",
414 "//build/config/freetype",
428 ] 415 ]
429 } 416 }
430 417
431 if (is_win || is_android) {
432 deps += [ "//build/config/freetype" ]
433 }
434
435 if (skia_support_pdf) { 418 if (skia_support_pdf) {
436 deps += [ 419 deps += [
437 "//third_party/sfntly", 420 "//third_party/sfntly",
438 "//third_party/zlib", 421 "//third_party/zlib",
439 ] 422 ]
440 sources += skia_pdf_sources 423 sources += skia_pdf_sources
441 } else { 424 } else {
442 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] 425 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
443 } 426 }
444 427
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 694
712 deps = [ 695 deps = [
713 ":skia", 696 ":skia",
714 "//base", 697 "//base",
715 "//base/test:test_support", 698 "//base/test:test_support",
716 "//build/config/sanitizers:deps", 699 "//build/config/sanitizers:deps",
717 "//build/win:default_exe_manifest", 700 "//build/win:default_exe_manifest",
718 ] 701 ]
719 } 702 }
720 } 703 }
OLDNEW
« no previous file with comments | « build_overrides/pdfium.gni ('k') | third_party/WebKit/LayoutTests/NeverFixTests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698