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

Side by Side Diff: BUILD.gn

Issue 2491693002: Create a subset of skia support for paths only (Closed)
Patch Set: fix wayward preprocessor defines Created 4 years, 1 month 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') | no next file with comments »
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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 ":fxcrt", 842 ":fxcrt",
839 ] 843 ]
840 844
841 if (pdf_enable_xfa) { 845 if (pdf_enable_xfa) {
842 sources += [ 846 sources += [
843 "core/fxge/cfx_unicodeencodingex.h", 847 "core/fxge/cfx_unicodeencodingex.h",
844 "core/fxge/ge/cfx_unicodeencodingex.cpp", 848 "core/fxge/ge/cfx_unicodeencodingex.cpp",
845 ] 849 ]
846 } 850 }
847 851
848 if (pdf_use_skia) { 852 if (pdf_use_skia || pdf_use_skia_paths) {
849 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] 853 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
850 deps += [ "//skia" ] 854 deps += [ "//skia" ]
851 } else { 855 } else {
852 sources += [ 856 sources += [
853 "core/fxge/agg/fx_agg_driver.cpp", 857 "core/fxge/agg/fx_agg_driver.cpp",
854 "core/fxge/agg/fx_agg_driver.h", 858 "core/fxge/agg/fx_agg_driver.h",
855 ] 859 ]
856 deps += [ "third_party:fx_agg" ] 860 deps += [ "third_party:fx_agg" ]
857 861
858 if (is_mac) { 862 if (is_mac) {
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 if (pdf_enable_xfa) { 1691 if (pdf_enable_xfa) {
1688 sources += [ 1692 sources += [
1689 "xfa/fde/css/fde_cssdatatable_unittest.cpp", 1693 "xfa/fde/css/fde_cssdatatable_unittest.cpp",
1690 "xfa/fde/xml/fde_xml_imp_unittest.cpp", 1694 "xfa/fde/xml/fde_xml_imp_unittest.cpp",
1691 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", 1695 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp",
1692 "xfa/fxfa/app/xfa_textlayout_unittest.cpp", 1696 "xfa/fxfa/app/xfa_textlayout_unittest.cpp",
1693 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp", 1697 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp",
1694 "xfa/fxfa/parser/xfa_utils_unittest.cpp", 1698 "xfa/fxfa/parser/xfa_utils_unittest.cpp",
1695 ] 1699 ]
1696 } 1700 }
1697 if (pdf_use_skia) { 1701 if (pdf_use_skia || pdf_use_skia_paths) {
1698 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ] 1702 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
1699 deps += [ "//skia" ] 1703 deps += [ "//skia" ]
1700 } 1704 }
1701 if (pdf_enable_v8) { 1705 if (pdf_enable_v8) {
1702 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] 1706 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ]
1703 include_dirs += [ 1707 include_dirs += [
1704 "//v8", 1708 "//v8",
1705 "//v8/include", 1709 "//v8/include",
1706 ] 1710 ]
1707 } 1711 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 "//samples", 1776 "//samples",
1773 ] 1777 ]
1774 } 1778 }
1775 group("fuzzers") { 1779 group("fuzzers") {
1776 testonly = true 1780 testonly = true
1777 deps = [ 1781 deps = [
1778 "//testing/libfuzzer", 1782 "//testing/libfuzzer",
1779 ] 1783 ]
1780 } 1784 }
1781 } 1785 }
OLDNEW
« no previous file with comments | « no previous file | README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698