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

Side by Side Diff: skia/BUILD.gn

Issue 2786433004: 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 | « DEPS ('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
46 if (is_component_build) { 50 if (is_component_build) {
47 defines += [ 51 defines += [
48 "SKIA_DLL", 52 "SKIA_DLL",
49 "GR_GL_IGNORE_ES3_MSAA=0", 53 "GR_GL_IGNORE_ES3_MSAA=0",
50 ] 54 ]
51 } 55 }
52 56
53 if (skia_support_gpu) { 57 if (skia_support_gpu) {
54 include_dirs += [ 58 include_dirs += [
55 "//third_party/skia/include/gpu", 59 "//third_party/skia/include/gpu",
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 sources += [ 355 sources += [
352 "//third_party/skia/src/ports/SkFontConfigInterface.cpp", 356 "//third_party/skia/src/ports/SkFontConfigInterface.cpp",
353 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", 357 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
354 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", 358 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp",
355 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp", 359 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp",
356 ] 360 ]
357 } 361 }
358 362
359 if (is_linux || is_android) { 363 if (is_linux || is_android) {
360 sources += [ 364 sources += [
361 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
362 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
363
364 # Retain the files for the SkFontMgr_Android on linux to emulate android 365 # Retain the files for the SkFontMgr_Android on linux to emulate android
365 # fonts. See content/zygote/zygote_main_linux.cc 366 # fonts. See content/zygote/zygote_main_linux.cc
366 # Note that this requires expat. 367 # Note that this requires expat.
367 "//third_party/skia/src/ports/SkFontMgr_android.cpp", 368 "//third_party/skia/src/ports/SkFontMgr_android.cpp",
368 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", 369 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
369 ] 370 ]
370 } 371 }
371 372
372 # Select the right BitmapPlatformDevice. 373 if (is_linux || is_android || is_win) {
374 sources += [
375 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
376 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
377 ]
378 }
379
373 if (is_win) { 380 if (is_win) {
374 sources += [ "ext/raster_handle_allocator_win.cc" ] 381 sources += [
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 ]
375 } 389 }
376 390
377 if (is_clang && !is_nacl) { 391 if (is_clang && !is_nacl) {
378 # Skia won't compile with some of the more strict clang warnings. 392 # Skia won't compile with some of the more strict clang warnings.
379 # e.g. it does: 393 # e.g. it does:
380 # SkASSERT(!"sk_out_of_memory"); 394 # SkASSERT(!"sk_out_of_memory");
381 configs -= [ "//build/config/clang:extra_warnings" ] 395 configs -= [ "//build/config/clang:extra_warnings" ]
382 } 396 }
383 397
384 configs -= [ "//build/config/compiler:chromium_code" ] 398 configs -= [ "//build/config/compiler:chromium_code" ]
385 configs += [ 399 configs += [
386 ":skia_config", 400 ":skia_config",
387 ":skia_library_config", 401 ":skia_library_config",
388 "//build/config/compiler:no_chromium_code", 402 "//build/config/compiler:no_chromium_code",
389 ] 403 ]
390 public_configs = [ ":skia_config" ] 404 public_configs = [ ":skia_config" ]
391 405
392 deps = [ 406 deps = [
393 ":skia_opts", 407 ":skia_opts",
394 "//base", 408 "//base",
395 "//base/third_party/dynamic_annotations", 409 "//base/third_party/dynamic_annotations",
396 ] 410 ]
397 411
398 if (is_linux) { 412 if (is_linux) {
399 if (use_pango) { 413 if (use_pango) {
400 configs += [ "//build/config/linux/pangocairo" ] 414 configs += [ "//build/config/linux/pangocairo" ]
401 } 415 }
402 deps += [ 416 deps += [
417 "//build/config/freetype",
403 "//build/linux:fontconfig", 418 "//build/linux:fontconfig",
404 "//build/config/freetype",
405 "//third_party/expat", 419 "//third_party/expat",
406 "//third_party/icu:icuuc", 420 "//third_party/icu:icuuc",
407 ] 421 ]
408 } 422 }
409 423
410 if (is_android) { 424 if (is_android) {
411 deps += [ 425 deps += [
412 "//third_party/android_tools:cpu_features", 426 "//third_party/android_tools:cpu_features",
413 "//third_party/expat", 427 "//third_party/expat",
414 "//build/config/freetype",
415 ] 428 ]
416 } 429 }
417 430
431 if (is_win || is_android) {
432 deps += [ "//build/config/freetype" ]
433 }
434
418 if (skia_support_pdf) { 435 if (skia_support_pdf) {
419 deps += [ 436 deps += [
420 "//third_party/sfntly", 437 "//third_party/sfntly",
421 "//third_party/zlib", 438 "//third_party/zlib",
422 ] 439 ]
423 sources += skia_pdf_sources 440 sources += skia_pdf_sources
424 } else { 441 } else {
425 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] 442 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ]
426 } 443 }
427 444
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 711
695 deps = [ 712 deps = [
696 ":skia", 713 ":skia",
697 "//base", 714 "//base",
698 "//base/test:test_support", 715 "//base/test:test_support",
699 "//build/config/sanitizers:deps", 716 "//build/config/sanitizers:deps",
700 "//build/win:default_exe_manifest", 717 "//build/win:default_exe_manifest",
701 ] 718 ]
702 } 719 }
703 } 720 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/WebKit/LayoutTests/NeverFixTests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698