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

Side by Side Diff: samples/BUILD.gn

Issue 1508003003: Move default value of pdf_enable_xfa to standalone.gypi (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Moar GN Created 5 years 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 | « pdfium.gyp ('k') | samples/samples.gyp » ('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 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium 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/config/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("../pdfium.gni") 6 import("../pdfium.gni")
7 7
8 group("samples") { 8 group("samples") {
9 testonly = true 9 testonly = true
10 deps = [ 10 deps = [
(...skipping 13 matching lines...) Expand all
24 defines += [ "PDF_ENABLE_V8", ] 24 defines += [ "PDF_ENABLE_V8", ]
25 } 25 }
26 if (pdf_enable_xfa) { 26 if (pdf_enable_xfa) {
27 defines += [ "PDF_ENABLE_XFA", ] 27 defines += [ "PDF_ENABLE_XFA", ]
28 } 28 }
29 } 29 }
30 30
31 executable("pdfium_test") { 31 executable("pdfium_test") {
32 testonly = true 32 testonly = true
33 sources = [ 33 sources = [
34 "pdfium_test.cc",
34 "image_diff_png.cc", 35 "image_diff_png.cc",
35 "pdfium_test.cc", 36 "image_diff_png.h",
36 ] 37 ]
37 deps = [ 38 deps = [
38 "//build/config/sanitizers:deps", 39 "//build/config/sanitizers:deps",
39 "//third_party/pdfium:pdfium", 40 "//third_party/pdfium:pdfium",
40 "//third_party/pdfium:test_support", 41 "//third_party/pdfium:test_support",
41 42
42 # Regardless of whether the library ships against system freetype, 43 # Regardless of whether the library ships against system freetype,
43 # always link this binary against the bundled one for consistency 44 # always link this binary against the bundled one for consistency
44 # of results across platforms. 45 # of results across platforms.
45 "//third_party/pdfium/third_party:fx_freetype", 46 "//third_party/pdfium/third_party:fx_freetype",
46 ] 47 ]
48 if (!pdf_enable_xfa) {
49 deps += [ "../third_party:fx_lpng" ]
50 }
47 if (pdf_enable_v8) { 51 if (pdf_enable_v8) {
48 deps += [ "//v8:v8_libplatform" ] 52 deps += [ "//v8:v8_libplatform" ]
49 include_dirs = [ 53 include_dirs = [
50 "//v8", 54 "//v8",
51 "//v8/include", 55 "//v8/include",
52 ] 56 ]
53 } 57 }
54 configs += [ ":pdfium_samples_config" ] 58 configs += [ ":pdfium_samples_config" ]
55 } 59 }
56 60
57 executable("pdfium_diff") { 61 executable("pdfium_diff") {
58 testonly = true 62 testonly = true
59 sources = [ 63 sources = [
60 "image_diff.cc", 64 "image_diff.cc",
61 "image_diff_png.cc", 65 "image_diff_png.cc",
62 "image_diff_png.h", 66 "image_diff_png.h",
63 ] 67 ]
64 deps = [ 68 deps = [
65 "//build/config/sanitizers:deps", 69 "//build/config/sanitizers:deps",
66 "//third_party/pdfium", 70 "//third_party/pdfium",
67 ] 71 ]
72 if (!pdf_enable_xfa) {
73 deps += [ "../third_party:fx_lpng" ]
74 }
68 configs -= [ "//build/config/compiler:chromium_code" ] 75 configs -= [ "//build/config/compiler:chromium_code" ]
69 configs += [ 76 configs += [
70 ":pdfium_samples_config", 77 ":pdfium_samples_config",
71 "//build/config/compiler:no_chromium_code", 78 "//build/config/compiler:no_chromium_code",
72 ] 79 ]
73 } 80 }
OLDNEW
« no previous file with comments | « pdfium.gyp ('k') | samples/samples.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698