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

Side by Side Diff: samples/BUILD.gn

Issue 1413593003: Merge to XFA: Consolidate test support code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Remove stray merges. 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') | samples/pdfium_test.cc » ('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") 5 import("../pdfium.gni")
6 6
7 group("samples") { 7 group("samples") {
8 testonly = true
Lei Zhang 2015/10/19 22:53:43 Do these need to be merged to master?
8 deps = [ 9 deps = [
9 ":pdfium_test", 10 ":pdfium_test",
10 ] 11 ]
11 } 12 }
12 13
13 config("pdfium_samples_config") { 14 config("pdfium_samples_config") {
14 defines = [ 15 defines = [
15 "PNG_PREFIX", 16 "PNG_PREFIX",
16 "PNGPREFIX_H", 17 "PNGPREFIX_H",
17 "PNG_USE_READ_MACROS", 18 "PNG_USE_READ_MACROS",
18 ] 19 ]
19 if (pdf_enable_v8) { 20 if (pdf_enable_v8) {
20 defines += [ "PDF_ENABLE_V8", ] 21 defines += [ "PDF_ENABLE_V8", ]
21 } 22 }
22 if (pdf_enable_xfa) { 23 if (pdf_enable_xfa) {
23 defines += [ "PDF_ENABLE_XFA", ] 24 defines += [ "PDF_ENABLE_XFA", ]
24 } 25 }
25 } 26 }
26 27
27 executable("pdfium_test") { 28 executable("pdfium_test") {
29 testonly = true
28 sources = [ 30 sources = [
29 "image_diff_png.cc", 31 "image_diff_png.cc",
30 "pdfium_test.cc", 32 "pdfium_test.cc",
31 ] 33 ]
32 deps = [ 34 deps = [
33 "//third_party/pdfium", 35 "//third_party/pdfium:pdfium",
36 "//third_party/pdfium:test_support",
34 ] 37 ]
35 if (pdf_enable_v8) { 38 if (pdf_enable_v8) {
36 deps += [ 39 deps += [
37 "//v8:v8_libplatform", 40 "//v8:v8_libplatform",
38 ] 41 ]
39 include_dirs = [ 42 include_dirs = [
40 "//v8", 43 "//v8",
41 "//v8/include", 44 "//v8/include",
42 ] 45 ]
43 } 46 }
44 configs += [ ":pdfium_samples_config" ] 47 configs += [ ":pdfium_samples_config" ]
45 } 48 }
46 49
47 executable("pdfium_diff") { 50 executable("pdfium_diff") {
51 testonly = true
48 sources = [ 52 sources = [
49 "image_diff.cc", 53 "image_diff.cc",
50 "image_diff_png.cc", 54 "image_diff_png.cc",
51 "image_diff_png.h", 55 "image_diff_png.h",
52 ] 56 ]
53 deps = [ 57 deps = [
54 "//third_party/pdfium", 58 "//third_party/pdfium",
55 ] 59 ]
56 configs += [ ":pdfium_samples_config" ] 60 configs += [ ":pdfium_samples_config" ]
57 } 61 }
OLDNEW
« no previous file with comments | « pdfium.gyp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698