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

Side by Side Diff: BUILD.gn

Issue 2346483006: Create a subset of skia support for paths only (Closed)
Patch Set: use skia only for paths Created 4 years, 3 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 | « no previous file | README.md » ('j') | core/fxge/skia/fx_skia_device.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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_overrides/v8.gni") 5 import("//build_overrides/v8.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("pdfium.gni") 7 import("pdfium.gni")
8 8
9 config("pdfium_common_config") { 9 config("pdfium_common_config") {
10 cflags = [] 10 cflags = []
11 include_dirs = [ 11 include_dirs = [
12 ".", 12 ".",
13 "third_party/freetype/include", 13 "third_party/freetype/include",
14 "third_party/freetype/include/freetype", 14 "third_party/freetype/include/freetype",
15 ] 15 ]
16 defines = [ 16 defines = [
17 "OPJ_STATIC", 17 "OPJ_STATIC",
18 "PNG_PREFIX", 18 "PNG_PREFIX",
19 "PNG_USE_READ_MACROS", 19 "PNG_USE_READ_MACROS",
20 ] 20 ]
21 21
22 if (pdf_use_skia) { 22 if (pdf_use_skia) {
23 defines += [ "_SKIA_SUPPORT_" ] 23 defines += [ "_SKIA_SUPPORT_" ]
24 } 24 }
25 25
26 if (pdf_use_skia_paths) {
27 defines += [ "_SKIA_SUPPORT_PATHS_" ]
28 }
29
26 if (pdf_enable_v8) { 30 if (pdf_enable_v8) {
27 defines += [ "PDF_ENABLE_V8" ] 31 defines += [ "PDF_ENABLE_V8" ]
28 } 32 }
29 33
30 if (pdf_enable_xfa) { 34 if (pdf_enable_xfa) {
31 defines += [ "PDF_ENABLE_XFA" ] 35 defines += [ "PDF_ENABLE_XFA" ]
32 } 36 }
33 37
34 if (pdf_use_win32_gdi) { 38 if (pdf_use_win32_gdi) {
35 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] 39 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 ":fxcrt", 839 ":fxcrt",
836 ] 840 ]
837 841
838 if (pdf_enable_xfa) { 842 if (pdf_enable_xfa) {
839 sources += [ 843 sources += [
840 "core/fxge/ge/cfx_unicodeencodingex.cpp", 844 "core/fxge/ge/cfx_unicodeencodingex.cpp",
841 "core/fxge/include/cfx_unicodeencodingex.h", 845 "core/fxge/include/cfx_unicodeencodingex.h",
842 ] 846 ]
843 } 847 }
844 848
845 if (pdf_use_skia) { 849 if (pdf_use_skia || pdf_use_skia_paths) {
846 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] 850 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
847 deps += [ "//skia" ] 851 deps += [ "//skia" ]
848 } else { 852 } else {
849 sources += [ 853 sources += [
850 "core/fxge/agg/fx_agg_driver.cpp", 854 "core/fxge/agg/fx_agg_driver.cpp",
851 "core/fxge/agg/fx_agg_driver.h", 855 "core/fxge/agg/fx_agg_driver.h",
852 "core/fxge/apple/fx_apple_platform.cpp", 856 "core/fxge/apple/fx_apple_platform.cpp",
853 ] 857 ]
854 deps += [ "third_party:fx_agg" ] 858 deps += [ "third_party:fx_agg" ]
855 } 859 }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 if (pdf_enable_xfa) { 1680 if (pdf_enable_xfa) {
1677 sources += [ 1681 sources += [
1678 "xfa/fde/css/fde_cssdatatable_unittest.cpp", 1682 "xfa/fde/css/fde_cssdatatable_unittest.cpp",
1679 "xfa/fde/xml/fde_xml_imp_unittest.cpp", 1683 "xfa/fde/xml/fde_xml_imp_unittest.cpp",
1680 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", 1684 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp",
1681 "xfa/fxfa/app/xfa_textlayout_unittest.cpp", 1685 "xfa/fxfa/app/xfa_textlayout_unittest.cpp",
1682 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp", 1686 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp",
1683 "xfa/fxfa/parser/xfa_utils_unittest.cpp", 1687 "xfa/fxfa/parser/xfa_utils_unittest.cpp",
1684 ] 1688 ]
1685 } 1689 }
1686 if (pdf_use_skia) { 1690 if (pdf_use_skia || pdf_use_skia_paths) {
1687 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ] 1691 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
1688 deps += [ "//skia" ] 1692 deps += [ "//skia" ]
1689 } 1693 }
1690 if (pdf_enable_v8) { 1694 if (pdf_enable_v8) {
1691 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] 1695 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ]
1692 include_dirs += [ 1696 include_dirs += [
1693 "//v8", 1697 "//v8",
1694 "//v8/include", 1698 "//v8/include",
1695 ] 1699 ]
1696 } 1700 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 } 1758 }
1755 1759
1756 if (pdf_is_standalone) { 1760 if (pdf_is_standalone) {
1757 source_set("samples") { 1761 source_set("samples") {
1758 testonly = true 1762 testonly = true
1759 deps = [ 1763 deps = [
1760 "//samples", 1764 "//samples",
1761 ] 1765 ]
1762 } 1766 }
1763 } 1767 }
OLDNEW
« no previous file with comments | « no previous file | README.md » ('j') | core/fxge/skia/fx_skia_device.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698