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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 ] | 1634 ] |
1635 } | 1635 } |
1636 if (pdf_enable_v8) { | 1636 if (pdf_enable_v8) { |
1637 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] | 1637 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] |
1638 include_dirs += [ | 1638 include_dirs += [ |
1639 "//v8", | 1639 "//v8", |
1640 "//v8/include", | 1640 "//v8/include", |
1641 ] | 1641 ] |
1642 } | 1642 } |
1643 configs += [ ":pdfium_core_config" ] | 1643 configs += [ ":pdfium_core_config" ] |
| 1644 if (is_android) { |
| 1645 ignore_all_data_deps = true |
| 1646 use_raw_android_executable = true |
| 1647 } |
1644 } | 1648 } |
1645 | 1649 |
1646 test("pdfium_embeddertests") { | 1650 test("pdfium_embeddertests") { |
1647 sources = [ | 1651 sources = [ |
1648 "core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", | 1652 "core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", |
1649 "core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp", | 1653 "core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp", |
1650 "core/fpdfapi/fpdf_parser/cpdf_security_handler_embeddertest.cpp", | 1654 "core/fpdfapi/fpdf_parser/cpdf_security_handler_embeddertest.cpp", |
1651 "core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", | 1655 "core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", |
1652 "core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp", | 1656 "core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp", |
1653 "core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", | 1657 "core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 "//v8", | 1691 "//v8", |
1688 "//v8:v8_libplatform", | 1692 "//v8:v8_libplatform", |
1689 ] | 1693 ] |
1690 include_dirs += [ | 1694 include_dirs += [ |
1691 "//v8", | 1695 "//v8", |
1692 "//v8/include", | 1696 "//v8/include", |
1693 ] | 1697 ] |
1694 configs += [ "//v8:external_startup_data" ] | 1698 configs += [ "//v8:external_startup_data" ] |
1695 } | 1699 } |
1696 configs += [ ":pdfium_core_config" ] | 1700 configs += [ ":pdfium_core_config" ] |
| 1701 if (is_android) { |
| 1702 ignore_all_data_deps = true |
| 1703 use_raw_android_executable = true |
| 1704 } |
1697 } | 1705 } |
1698 | 1706 |
1699 if (pdf_is_standalone) { | 1707 if (pdf_is_standalone) { |
1700 source_set("samples") { | 1708 source_set("samples") { |
1701 testonly = true | 1709 testonly = true |
1702 deps = [ | 1710 deps = [ |
1703 "//samples", | 1711 "//samples", |
1704 ] | 1712 ] |
1705 } | 1713 } |
1706 } | 1714 } |
OLD | NEW |