OLD | NEW |
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 | |
30 if (pdf_enable_v8) { | 26 if (pdf_enable_v8) { |
31 defines += [ "PDF_ENABLE_V8" ] | 27 defines += [ "PDF_ENABLE_V8" ] |
32 } | 28 } |
33 | 29 |
34 if (pdf_enable_xfa) { | 30 if (pdf_enable_xfa) { |
35 defines += [ "PDF_ENABLE_XFA" ] | 31 defines += [ "PDF_ENABLE_XFA" ] |
36 } | 32 } |
37 | 33 |
38 if (pdf_use_win32_gdi) { | 34 if (pdf_use_win32_gdi) { |
39 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] | 35 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 ":fxcrt", | 838 ":fxcrt", |
843 ] | 839 ] |
844 | 840 |
845 if (pdf_enable_xfa) { | 841 if (pdf_enable_xfa) { |
846 sources += [ | 842 sources += [ |
847 "core/fxge/cfx_unicodeencodingex.h", | 843 "core/fxge/cfx_unicodeencodingex.h", |
848 "core/fxge/ge/cfx_unicodeencodingex.cpp", | 844 "core/fxge/ge/cfx_unicodeencodingex.cpp", |
849 ] | 845 ] |
850 } | 846 } |
851 | 847 |
852 if (pdf_use_skia || pdf_use_skia_paths) { | 848 if (pdf_use_skia) { |
853 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] | 849 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] |
854 deps += [ "//skia" ] | 850 deps += [ "//skia" ] |
855 } else { | 851 } else { |
856 sources += [ | 852 sources += [ |
857 "core/fxge/agg/fx_agg_driver.cpp", | 853 "core/fxge/agg/fx_agg_driver.cpp", |
858 "core/fxge/agg/fx_agg_driver.h", | 854 "core/fxge/agg/fx_agg_driver.h", |
859 ] | 855 ] |
860 deps += [ "third_party:fx_agg" ] | 856 deps += [ "third_party:fx_agg" ] |
861 | 857 |
862 if (is_mac) { | 858 if (is_mac) { |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 if (pdf_enable_xfa) { | 1687 if (pdf_enable_xfa) { |
1692 sources += [ | 1688 sources += [ |
1693 "xfa/fde/css/fde_cssdatatable_unittest.cpp", | 1689 "xfa/fde/css/fde_cssdatatable_unittest.cpp", |
1694 "xfa/fde/xml/fde_xml_imp_unittest.cpp", | 1690 "xfa/fde/xml/fde_xml_imp_unittest.cpp", |
1695 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", | 1691 "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", |
1696 "xfa/fxfa/app/xfa_textlayout_unittest.cpp", | 1692 "xfa/fxfa/app/xfa_textlayout_unittest.cpp", |
1697 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp", | 1693 "xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp", |
1698 "xfa/fxfa/parser/xfa_utils_unittest.cpp", | 1694 "xfa/fxfa/parser/xfa_utils_unittest.cpp", |
1699 ] | 1695 ] |
1700 } | 1696 } |
1701 if (pdf_use_skia || pdf_use_skia_paths) { | 1697 if (pdf_use_skia) { |
1702 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ] | 1698 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ] |
1703 deps += [ "//skia" ] | 1699 deps += [ "//skia" ] |
1704 } | 1700 } |
1705 if (pdf_enable_v8) { | 1701 if (pdf_enable_v8) { |
1706 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] | 1702 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] |
1707 include_dirs += [ | 1703 include_dirs += [ |
1708 "//v8", | 1704 "//v8", |
1709 "//v8/include", | 1705 "//v8/include", |
1710 ] | 1706 ] |
1711 } | 1707 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1776 "//samples", | 1772 "//samples", |
1777 ] | 1773 ] |
1778 } | 1774 } |
1779 group("fuzzers") { | 1775 group("fuzzers") { |
1780 testonly = true | 1776 testonly = true |
1781 deps = [ | 1777 deps = [ |
1782 "//testing/libfuzzer", | 1778 "//testing/libfuzzer", |
1783 ] | 1779 ] |
1784 } | 1780 } |
1785 } | 1781 } |
OLD | NEW |