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 = [] |
(...skipping 16 matching lines...) Expand all Loading... |
27 defines += [ "PDF_ENABLE_V8" ] | 27 defines += [ "PDF_ENABLE_V8" ] |
28 } | 28 } |
29 | 29 |
30 if (pdf_enable_xfa) { | 30 if (pdf_enable_xfa) { |
31 defines += [ "PDF_ENABLE_XFA" ] | 31 defines += [ "PDF_ENABLE_XFA" ] |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 config("pdfium_core_config") { | 35 config("pdfium_core_config") { |
36 cflags = [] | 36 cflags = [] |
37 configs = [":pdfium_common_config"] | 37 configs = [ ":pdfium_common_config" ] |
38 defines = ["V8_DEPRECATION_WARNINGS"] | 38 defines = [ "V8_DEPRECATION_WARNINGS" ] |
39 if (is_linux) { | 39 if (is_linux) { |
40 if (current_cpu == "x64") { | 40 if (current_cpu == "x64") { |
41 defines += [ "_FX_CPU_=_FX_X64_" ] | 41 defines += [ "_FX_CPU_=_FX_X64_" ] |
42 cflags += [ "-fPIC" ] | 42 cflags += [ "-fPIC" ] |
43 } else if (current_cpu == "x86") { | 43 } else if (current_cpu == "x86") { |
44 defines += [ "_FX_CPU_=_FX_X86_" ] | 44 defines += [ "_FX_CPU_=_FX_X86_" ] |
45 } | 45 } |
46 } | 46 } |
47 if (is_win) { | 47 if (is_win) { |
48 cflags += [ "/wd4267" ] | 48 cflags += [ "/wd4267" ] |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", | 886 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", |
887 ] | 887 ] |
888 deps = [ | 888 deps = [ |
889 ":xfa", | 889 ":xfa", |
890 ] | 890 ] |
891 configs += [ ":pdfium_core_config" ] | 891 configs += [ ":pdfium_core_config" ] |
892 } | 892 } |
893 | 893 |
894 static_library("xfa") { | 894 static_library("xfa") { |
895 sources = [ | 895 sources = [ |
| 896 "fxjse/class.cpp", |
| 897 "fxjse/context.cpp", |
| 898 "fxjse/context.h", |
| 899 "fxjse/dynprop.cpp", |
| 900 "fxjse/include/cfxjse_arguments.h", |
| 901 "fxjse/include/cfxjse_class.h", |
| 902 "fxjse/include/cfxjse_value.h", |
| 903 "fxjse/include/fxjse.h", |
| 904 "fxjse/runtime.cpp", |
| 905 "fxjse/runtime.h", |
| 906 "fxjse/scope_inline.h", |
| 907 "fxjse/value.cpp", |
896 "xfa/fde/cfde_path.cpp", | 908 "xfa/fde/cfde_path.cpp", |
897 "xfa/fde/cfde_path.h", | 909 "xfa/fde/cfde_path.h", |
898 "xfa/fde/cfde_txtedtbuf.cpp", | 910 "xfa/fde/cfde_txtedtbuf.cpp", |
899 "xfa/fde/cfde_txtedtbuf.h", | 911 "xfa/fde/cfde_txtedtbuf.h", |
900 "xfa/fde/cfde_txtedtbufiter.cpp", | 912 "xfa/fde/cfde_txtedtbufiter.cpp", |
901 "xfa/fde/cfde_txtedtbufiter.h", | 913 "xfa/fde/cfde_txtedtbufiter.h", |
902 "xfa/fde/cfde_txtedtdorecord_deleterange.cpp", | 914 "xfa/fde/cfde_txtedtdorecord_deleterange.cpp", |
903 "xfa/fde/cfde_txtedtdorecord_deleterange.h", | 915 "xfa/fde/cfde_txtedtdorecord_deleterange.h", |
904 "xfa/fde/cfde_txtedtdorecord_insert.cpp", | 916 "xfa/fde/cfde_txtedtdorecord_insert.cpp", |
905 "xfa/fde/cfde_txtedtdorecord_insert.h", | 917 "xfa/fde/cfde_txtedtdorecord_insert.h", |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 "xfa/fxgraphics/cfx_graphics.cpp", | 1565 "xfa/fxgraphics/cfx_graphics.cpp", |
1554 "xfa/fxgraphics/cfx_path.cpp", | 1566 "xfa/fxgraphics/cfx_path.cpp", |
1555 "xfa/fxgraphics/cfx_path.h", | 1567 "xfa/fxgraphics/cfx_path.h", |
1556 "xfa/fxgraphics/cfx_path_generator.cpp", | 1568 "xfa/fxgraphics/cfx_path_generator.cpp", |
1557 "xfa/fxgraphics/cfx_path_generator.h", | 1569 "xfa/fxgraphics/cfx_path_generator.h", |
1558 "xfa/fxgraphics/cfx_pattern.cpp", | 1570 "xfa/fxgraphics/cfx_pattern.cpp", |
1559 "xfa/fxgraphics/cfx_pattern.h", | 1571 "xfa/fxgraphics/cfx_pattern.h", |
1560 "xfa/fxgraphics/cfx_shading.cpp", | 1572 "xfa/fxgraphics/cfx_shading.cpp", |
1561 "xfa/fxgraphics/cfx_shading.h", | 1573 "xfa/fxgraphics/cfx_shading.h", |
1562 "xfa/fxgraphics/include/cfx_graphics.h", | 1574 "xfa/fxgraphics/include/cfx_graphics.h", |
1563 "xfa/fxjse/include/fxjse.h", | |
1564 ] | 1575 ] |
1565 include_dirs = [ "." ] | 1576 include_dirs = [ |
1566 if (pdf_enable_v8) { | 1577 ".", |
1567 sources += [ | 1578 "//v8", |
1568 "xfa/fxjse/cfxjse_arguments.h", | 1579 "//v8/include", |
1569 "xfa/fxjse/class.cpp", | 1580 ] |
1570 "xfa/fxjse/class.h", | 1581 public_deps = [ |
1571 "xfa/fxjse/context.cpp", | 1582 "//v8", |
1572 "xfa/fxjse/context.h", | 1583 ] |
1573 "xfa/fxjse/dynprop.cpp", | 1584 deps = [ |
1574 "xfa/fxjse/runtime.cpp", | 1585 "//v8:v8_libplatform", |
1575 "xfa/fxjse/runtime.h", | 1586 ] |
1576 "xfa/fxjse/scope_inline.h", | |
1577 "xfa/fxjse/value.cpp", | |
1578 "xfa/fxjse/value.h", | |
1579 ] | |
1580 include_dirs += [ | |
1581 "//v8", | |
1582 "//v8/include", | |
1583 ] | |
1584 public_deps = [ | |
1585 "//v8", | |
1586 ] | |
1587 deps = [ | |
1588 "//v8:v8_libplatform", | |
1589 ] | |
1590 } | |
1591 configs += [ | 1587 configs += [ |
1592 ":pdfium_core_config", | 1588 ":pdfium_core_config", |
1593 ":xfa_warnings", | 1589 ":xfa_warnings", |
1594 ] | 1590 ] |
1595 } | 1591 } |
1596 } | 1592 } |
1597 | 1593 |
1598 test("pdfium_unittests") { | 1594 test("pdfium_unittests") { |
1599 sources = [ | 1595 sources = [ |
1600 "core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp", | 1596 "core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp", |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 } | 1697 } |
1702 | 1698 |
1703 if (pdf_is_standalone) { | 1699 if (pdf_is_standalone) { |
1704 source_set("samples") { | 1700 source_set("samples") { |
1705 testonly = true | 1701 testonly = true |
1706 deps = [ | 1702 deps = [ |
1707 "//samples", | 1703 "//samples", |
1708 ] | 1704 ] |
1709 } | 1705 } |
1710 } | 1706 } |
OLD | NEW |