Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: BUILD.gn

Issue 889253003: Fix XFA build after combining PDFium into Chromium binary. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fxcodec/fx_lpng/lpng_v163/png.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 pdf_use_skia = false 7 pdf_use_skia = false
8 8
9 declare_args() { 9 declare_args() {
10 # On Android there's no system FreeType. On Windows and Mac, only a few 10 # On Android there's no system FreeType. On Windows and Mac, only a few
11 # methods are used from it. 11 # methods are used from it.
12 bundle_freetype = !is_linux 12 bundle_freetype = !is_linux
13 } 13 }
14 14
15 config("pdfium_config") { 15 config("pdfium_config") {
16 cflags = [] 16 cflags = []
17 include_dirs = [ "third_party/freetype/include" ] 17 include_dirs = [ "third_party/freetype/include" ]
18 defines = [ 18 defines = [
19 "_FPDFSDK_LIB", 19 "_FPDFSDK_LIB",
20 "_NO_GDIPLUS_", # workaround text rendering issues on Windows 20 "_NO_GDIPLUS_", # workaround text rendering issues on Windows
21 "OPJ_STATIC", 21 "OPJ_STATIC",
22 "PNG_PREFIX",
23 "PNGPREFIX_H",
24 "PNG_USE_READ_MACROS",
22 ] 25 ]
23 26
24 if (pdf_use_skia) { 27 if (pdf_use_skia) {
25 defines += [ "_SKIA_SUPPORT_" ] 28 defines += [ "_SKIA_SUPPORT_" ]
26 } 29 }
27 30
28 if (is_linux) { 31 if (is_linux) {
29 if (cpu_arch == "x64") { 32 if (cpu_arch == "x64") {
30 defines += [ "_FX_CPU_=_FX_X64_" ] 33 defines += [ "_FX_CPU_=_FX_X64_" ]
31 cflags += [ "-fPIC" ] 34 cflags += [ "-fPIC" ]
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 "testing/fx_string_testhelpers.h", 1585 "testing/fx_string_testhelpers.h",
1583 ] 1586 ]
1584 deps = [ 1587 deps = [
1585 "//testing/gtest", 1588 "//testing/gtest",
1586 ":pdfium" 1589 ":pdfium"
1587 ] 1590 ]
1588 include_dirs = [ "." ] 1591 include_dirs = [ "." ]
1589 configs -= [ "//build/config/compiler:chromium_code" ] 1592 configs -= [ "//build/config/compiler:chromium_code" ]
1590 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] 1593 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
1591 } 1594 }
OLDNEW
« no previous file with comments | « no previous file | core/src/fxcodec/fx_lpng/lpng_v163/png.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698