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

Side by Side Diff: samples/BUILD.gn

Issue 1393833006: Merge to XFA: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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
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_v8) {
20 defines += [
21 "PDF_ENABLE_V8",
22 ]
23 }
17 } 24 }
18 25
19 executable("pdfium_test") { 26 executable("pdfium_test") {
20 sources = [ 27 sources = [
21 "image_diff_png.cc", 28 "image_diff_png.cc",
22 "pdfium_test.cc", 29 "pdfium_test.cc",
23 ] 30 ]
24 deps = [ 31 deps = [
25 "//third_party/pdfium", 32 "//third_party/pdfium",
26 "//v8:v8_libplatform",
27 ] 33 ]
28 include_dirs = [ 34 if (pdf_enable_v8) {
29 "//v8", 35 deps += [
30 "//v8/include", 36 "//v8:v8_libplatform",
31 ] 37 ]
38 include_dirs = [
39 "//v8",
40 "//v8/include",
41 ]
42 }
32 configs += [ ":pdfium_samples_config" ] 43 configs += [ ":pdfium_samples_config" ]
33 } 44 }
34 45
35 executable("pdfium_diff") { 46 executable("pdfium_diff") {
36 sources = [ 47 sources = [
37 "image_diff.cc", 48 "image_diff.cc",
38 "image_diff_png.cc", 49 "image_diff_png.cc",
39 "image_diff_png.h", 50 "image_diff_png.h",
40 ] 51 ]
41 deps = [ 52 deps = [
42 "//third_party/pdfium", 53 "//third_party/pdfium",
43 ] 54 ]
44 configs += [ ":pdfium_samples_config" ] 55 configs += [ ":pdfium_samples_config" ]
45 } 56 }
OLDNEW
« BUILD.gn ('K') | « pdfium.gyp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698