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

Side by Side Diff: samples/BUILD.gn

Issue 1399833002: Allow building of XFA branch without XFA (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Keep GN in sync. Created 5 years, 2 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 | « pdfium.gyp ('k') | xfa.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("../pdfium.gni")
6
5 group("samples") { 7 group("samples") {
6 deps = [ 8 deps = [
7 ":pdfium_test", 9 ":pdfium_test",
8 ] 10 ]
9 } 11 }
10 12
11 config("pdfium_samples_config") { 13 config("pdfium_samples_config") {
12 defines = [ 14 defines = [
13 "PNG_PREFIX", 15 "PNG_PREFIX",
14 "PNGPREFIX_H", 16 "PNGPREFIX_H",
15 "PNG_USE_READ_MACROS", 17 "PNG_USE_READ_MACROS",
16 ] 18 ]
19 if (pdf_enable_xfa) {
20 defines += [ "PDF_ENABLE_XFA" ]
21 }
17 } 22 }
18 23
19 executable("pdfium_test") { 24 executable("pdfium_test") {
20 sources = [ 25 sources = [
21 "image_diff_png.cc", 26 "image_diff_png.cc",
22 "pdfium_test.cc", 27 "pdfium_test.cc",
23 ] 28 ]
24 deps = [ 29 deps = [
25 "//third_party/pdfium", 30 "//third_party/pdfium",
26 "//v8:v8_libplatform", 31 "//v8:v8_libplatform",
27 ] 32 ]
28 include_dirs = [ 33 include_dirs = [
29 "//v8", 34 "//v8",
30 "//v8/include", 35 "//v8/include",
31 ] 36 ]
32 configs += [ ":pdfium_samples_config" ] 37 configs += [ ":pdfium_samples_config" ]
33 } 38 }
34 39
35 executable("pdfium_diff") { 40 executable("pdfium_diff") {
36 sources = [ 41 sources = [
37 "image_diff.cc", 42 "image_diff.cc",
38 "image_diff_png.cc", 43 "image_diff_png.cc",
39 "image_diff_png.h", 44 "image_diff_png.h",
40 ] 45 ]
41 deps = [ 46 deps = [
42 "//third_party/pdfium", 47 "//third_party/pdfium",
43 ] 48 ]
44 configs += [ ":pdfium_samples_config" ] 49 configs += [ ":pdfium_samples_config" ]
45 } 50 }
OLDNEW
« no previous file with comments | « pdfium.gyp ('k') | xfa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698