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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 "fpdfsdk/javascript/event.cpp", | 819 "fpdfsdk/javascript/event.cpp", |
820 "fpdfsdk/javascript/event.h", | 820 "fpdfsdk/javascript/event.h", |
821 "fpdfsdk/javascript/global.cpp", | 821 "fpdfsdk/javascript/global.cpp", |
822 "fpdfsdk/javascript/global.h", | 822 "fpdfsdk/javascript/global.h", |
823 "fpdfsdk/javascript/report.cpp", | 823 "fpdfsdk/javascript/report.cpp", |
824 "fpdfsdk/javascript/report.h", | 824 "fpdfsdk/javascript/report.h", |
825 "fpdfsdk/javascript/resource.cpp", | 825 "fpdfsdk/javascript/resource.cpp", |
826 "fpdfsdk/javascript/resource.h", | 826 "fpdfsdk/javascript/resource.h", |
827 "fpdfsdk/javascript/util.cpp", | 827 "fpdfsdk/javascript/util.cpp", |
828 "fpdfsdk/javascript/util.h", | 828 "fpdfsdk/javascript/util.h", |
829 "fpdfsdk/jsapi/fxjs_v8.cpp", | |
830 "fpdfsdk/jsapi/include/fxjs_v8.h", | |
831 ] | 829 ] |
832 include_dirs = [ | 830 deps = [ |
833 "//v8", | 831 ":fxjs", |
834 "//v8/include", | |
835 ] | |
836 public_deps = [ | |
837 "//v8", | |
838 ] | 832 ] |
839 configs += [ "//v8:external_startup_data" ] | 833 configs += [ "//v8:external_startup_data" ] |
840 } else { | 834 } else { |
841 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] | 835 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] |
842 } | 836 } |
843 configs += [ ":pdfium_core_config" ] | 837 configs += [ ":pdfium_core_config" ] |
844 } | 838 } |
845 | 839 |
846 static_library("formfiller") { | 840 static_library("formfiller") { |
847 sources = [ | 841 sources = [ |
(...skipping 12 matching lines...) Expand all Loading... |
860 "fpdfsdk/formfiller/cffl_pushbutton.cpp", | 854 "fpdfsdk/formfiller/cffl_pushbutton.cpp", |
861 "fpdfsdk/formfiller/cffl_pushbutton.h", | 855 "fpdfsdk/formfiller/cffl_pushbutton.h", |
862 "fpdfsdk/formfiller/cffl_radiobutton.cpp", | 856 "fpdfsdk/formfiller/cffl_radiobutton.cpp", |
863 "fpdfsdk/formfiller/cffl_radiobutton.h", | 857 "fpdfsdk/formfiller/cffl_radiobutton.h", |
864 "fpdfsdk/formfiller/cffl_textfield.cpp", | 858 "fpdfsdk/formfiller/cffl_textfield.cpp", |
865 "fpdfsdk/formfiller/cffl_textfield.h", | 859 "fpdfsdk/formfiller/cffl_textfield.h", |
866 ] | 860 ] |
867 configs += [ ":pdfium_core_config" ] | 861 configs += [ ":pdfium_core_config" ] |
868 } | 862 } |
869 | 863 |
870 if (pdf_enable_xfa) { | 864 if (pdf_enable_v8) { |
871 static_library("fxjs") { | 865 static_library("fxjs") { |
872 sources = [ | 866 sources = [ |
873 "fxjs/cfxjse_arguments.cpp", | 867 "fxjs/fxjs_v8.cpp", |
874 "fxjs/cfxjse_class.cpp", | 868 "fxjs/include/fxjs_v8.h", |
875 "fxjs/cfxjse_context.cpp", | |
876 "fxjs/cfxjse_isolatetracker.cpp", | |
877 "fxjs/cfxjse_isolatetracker.h", | |
878 "fxjs/cfxjse_runtimedata.cpp", | |
879 "fxjs/cfxjse_runtimedata.h", | |
880 "fxjs/cfxjse_value.cpp", | |
881 "fxjs/include/cfxjse_arguments.h", | |
882 "fxjs/include/cfxjse_class.h", | |
883 "fxjs/include/cfxjse_context.h", | |
884 "fxjs/include/cfxjse_value.h", | |
885 "fxjs/include/fxjse.h", | |
886 ] | 869 ] |
| 870 if (pdf_enable_xfa) { |
| 871 sources += [ |
| 872 "fxjs/cfxjse_arguments.cpp", |
| 873 "fxjs/cfxjse_class.cpp", |
| 874 "fxjs/cfxjse_context.cpp", |
| 875 "fxjs/cfxjse_isolatetracker.cpp", |
| 876 "fxjs/cfxjse_isolatetracker.h", |
| 877 "fxjs/cfxjse_runtimedata.cpp", |
| 878 "fxjs/cfxjse_runtimedata.h", |
| 879 "fxjs/cfxjse_value.cpp", |
| 880 "fxjs/include/cfxjse_arguments.h", |
| 881 "fxjs/include/cfxjse_class.h", |
| 882 "fxjs/include/cfxjse_context.h", |
| 883 "fxjs/include/cfxjse_value.h", |
| 884 "fxjs/include/fxjse.h", |
| 885 ] |
| 886 } |
887 deps = [ | 887 deps = [ |
888 "//v8:v8_libplatform", | 888 "//v8", |
| 889 "//v8:v8_libplatform", |
889 ] | 890 ] |
890 configs += [ ":pdfium_core_config" ] | 891 configs += [ ":pdfium_core_config" ] |
891 include_dirs = [ | 892 include_dirs = [ |
892 "//v8", | 893 "//v8", |
893 "//v8/include", | 894 "//v8/include", |
894 ] | 895 ] |
895 public_deps = [ | 896 public_deps = [ |
896 "//v8", | 897 "//v8", |
897 ] | 898 ] |
898 } | 899 } |
| 900 } |
899 | 901 |
| 902 if (pdf_enable_xfa) { |
900 static_library("fpdfxfa") { | 903 static_library("fpdfxfa") { |
901 sources = [ | 904 sources = [ |
902 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", | 905 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", |
903 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", | 906 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", |
904 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", | 907 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", |
905 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", | 908 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", |
906 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", | 909 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", |
907 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", | 910 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", |
908 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", | 911 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", |
909 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", | 912 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 "xfa/fxgraphics/cfx_path.cpp", | 1450 "xfa/fxgraphics/cfx_path.cpp", |
1448 "xfa/fxgraphics/cfx_path.h", | 1451 "xfa/fxgraphics/cfx_path.h", |
1449 "xfa/fxgraphics/cfx_path_generator.cpp", | 1452 "xfa/fxgraphics/cfx_path_generator.cpp", |
1450 "xfa/fxgraphics/cfx_path_generator.h", | 1453 "xfa/fxgraphics/cfx_path_generator.h", |
1451 "xfa/fxgraphics/cfx_pattern.cpp", | 1454 "xfa/fxgraphics/cfx_pattern.cpp", |
1452 "xfa/fxgraphics/cfx_pattern.h", | 1455 "xfa/fxgraphics/cfx_pattern.h", |
1453 "xfa/fxgraphics/cfx_shading.cpp", | 1456 "xfa/fxgraphics/cfx_shading.cpp", |
1454 "xfa/fxgraphics/cfx_shading.h", | 1457 "xfa/fxgraphics/cfx_shading.h", |
1455 "xfa/fxgraphics/include/cfx_graphics.h", | 1458 "xfa/fxgraphics/include/cfx_graphics.h", |
1456 ] | 1459 ] |
1457 include_dirs = [ | 1460 include_dirs = [ "." ] |
1458 ".", | |
1459 ] | |
1460 deps = [ | 1461 deps = [ |
1461 ":fxjs", | 1462 ":fxjs", |
1462 ] | 1463 ] |
1463 configs += [ | 1464 configs += [ |
1464 ":pdfium_core_config", | 1465 ":pdfium_core_config", |
1465 ":xfa_warnings", | 1466 ":xfa_warnings", |
1466 ] | 1467 ] |
1467 } | 1468 } |
1468 } | 1469 } |
1469 | 1470 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 deps = [ | 1557 deps = [ |
1557 ":pdfium", | 1558 ":pdfium", |
1558 ":test_support", | 1559 ":test_support", |
1559 "//testing/gmock", | 1560 "//testing/gmock", |
1560 "//testing/gtest", | 1561 "//testing/gtest", |
1561 ] | 1562 ] |
1562 include_dirs = [ "testing/gmock/include" ] | 1563 include_dirs = [ "testing/gmock/include" ] |
1563 if (pdf_enable_v8) { | 1564 if (pdf_enable_v8) { |
1564 sources += [ | 1565 sources += [ |
1565 "fpdfsdk/javascript/public_methods_embeddertest.cpp", | 1566 "fpdfsdk/javascript/public_methods_embeddertest.cpp", |
1566 "fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp", | 1567 "fxjs/fxjs_v8_embeddertest.cpp", |
1567 "testing/js_embedder_test.cpp", | 1568 "testing/js_embedder_test.cpp", |
1568 "testing/js_embedder_test.h", | 1569 "testing/js_embedder_test.h", |
1569 ] | 1570 ] |
1570 deps += [ | 1571 deps += [ ":fxjs" ] |
1571 "//v8", | |
1572 "//v8:v8_libplatform", | |
1573 ] | |
1574 include_dirs += [ | |
1575 "//v8", | |
1576 "//v8/include", | |
1577 ] | |
1578 configs += [ "//v8:external_startup_data" ] | 1572 configs += [ "//v8:external_startup_data" ] |
1579 } | 1573 } |
1580 configs += [ ":pdfium_core_config" ] | 1574 configs += [ ":pdfium_core_config" ] |
1581 if (is_android) { | 1575 if (is_android) { |
1582 ignore_all_data_deps = true | 1576 ignore_all_data_deps = true |
1583 use_raw_android_executable = true | 1577 use_raw_android_executable = true |
1584 } | 1578 } |
1585 } | 1579 } |
1586 | 1580 |
1587 if (pdf_is_standalone) { | 1581 if (pdf_is_standalone) { |
1588 source_set("samples") { | 1582 source_set("samples") { |
1589 testonly = true | 1583 testonly = true |
1590 deps = [ | 1584 deps = [ |
1591 "//samples", | 1585 "//samples", |
1592 ] | 1586 ] |
1593 } | 1587 } |
1594 } | 1588 } |
OLD | NEW |