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_config") { | 9 config("pdfium_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 "V8_DEPRECATION_WARNINGS", | 20 "V8_DEPRECATION_WARNINGS", |
21 "_CRT_SECURE_NO_WARNINGS", | |
22 ] | 21 ] |
23 | 22 |
24 if (pdf_use_skia) { | 23 if (pdf_use_skia) { |
25 defines += [ "_SKIA_SUPPORT_" ] | 24 defines += [ "_SKIA_SUPPORT_" ] |
26 } | 25 } |
27 | 26 |
28 if (pdf_enable_v8) { | 27 if (pdf_enable_v8) { |
29 defines += [ "PDF_ENABLE_V8" ] | 28 defines += [ "PDF_ENABLE_V8" ] |
30 } | 29 } |
31 | 30 |
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 "//v8:v8_libplatform", | 1664 "//v8:v8_libplatform", |
1666 ] | 1665 ] |
1667 include_dirs += [ | 1666 include_dirs += [ |
1668 "//v8", | 1667 "//v8", |
1669 "//v8/include", | 1668 "//v8/include", |
1670 ] | 1669 ] |
1671 configs += [ "//v8:external_startup_data" ] | 1670 configs += [ "//v8:external_startup_data" ] |
1672 } | 1671 } |
1673 configs += [ ":pdfium_config" ] | 1672 configs += [ ":pdfium_config" ] |
1674 } | 1673 } |
OLD | NEW |