| 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 12 matching lines...) Expand all Loading... |
| 23 defines += [ "_SKIA_SUPPORT_" ] | 23 defines += [ "_SKIA_SUPPORT_" ] |
| 24 } | 24 } |
| 25 | 25 |
| 26 if (pdf_enable_v8) { | 26 if (pdf_enable_v8) { |
| 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 |
| 34 if (pdf_use_win32_gdi) { |
| 35 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] |
| 36 } |
| 33 } | 37 } |
| 34 | 38 |
| 35 config("pdfium_core_config") { | 39 config("pdfium_core_config") { |
| 36 cflags = [] | 40 cflags = [] |
| 37 configs = [ ":pdfium_common_config" ] | 41 configs = [ ":pdfium_common_config" ] |
| 38 defines = [ "V8_DEPRECATION_WARNINGS" ] | 42 defines = [ "V8_DEPRECATION_WARNINGS" ] |
| 39 if (is_linux) { | 43 if (is_linux) { |
| 40 if (current_cpu == "x64") { | 44 if (current_cpu == "x64") { |
| 41 defines += [ "_FX_CPU_=_FX_X64_" ] | 45 defines += [ "_FX_CPU_=_FX_X64_" ] |
| 42 cflags += [ "-fPIC" ] | 46 cflags += [ "-fPIC" ] |
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 } | 1635 } |
| 1632 | 1636 |
| 1633 if (pdf_is_standalone) { | 1637 if (pdf_is_standalone) { |
| 1634 source_set("samples") { | 1638 source_set("samples") { |
| 1635 testonly = true | 1639 testonly = true |
| 1636 deps = [ | 1640 deps = [ |
| 1637 "//samples", | 1641 "//samples", |
| 1638 ] | 1642 ] |
| 1639 } | 1643 } |
| 1640 } | 1644 } |
| OLD | NEW |