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

Side by Side Diff: samples/samples.gyp

Issue 1480403002: Allow building non-XFA (master) on the XFA branch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: warning 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 | « samples/pdfium_test.cc ('k') | testing/embedder_test.cpp » ('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 { 5 {
6 'variables': { 6 'variables': {
7 'pdf_enable_v8%': 1, 7 'pdf_enable_v8%': 1,
8 'pdf_enable_xfa%': 1,
8 }, 9 },
9 'target_defaults': { 10 'target_defaults': {
10 'defines' : [ 11 'defines' : [
11 'PNG_PREFIX', 12 'PNG_PREFIX',
12 'PNGPREFIX_H', 13 'PNGPREFIX_H',
13 'PNG_USE_READ_MACROS', 14 'PNG_USE_READ_MACROS',
14 ], 15 ],
15 'include_dirs': [ 16 'include_dirs': [
16 # This is implicit in GN. 17 # This is implicit in GN.
17 '<(DEPTH)', 18 '<(DEPTH)',
18 '..', 19 '..',
19 ], 20 ],
20 'conditions': [ 21 'conditions': [
21 ['pdf_enable_v8==1', { 22 ['pdf_enable_v8==1', {
22 'defines': [ 23 'defines': [
23 'PDF_ENABLE_V8', 24 'PDF_ENABLE_V8',
24 ], 25 ],
25 'include_dirs': [ 26 'include_dirs': [
26 '<(DEPTH)/v8', 27 '<(DEPTH)/v8',
27 '<(DEPTH)/v8/include', 28 '<(DEPTH)/v8/include',
28 ], 29 ],
29 }], 30 }],
31 ['pdf_enable_xfa==1', {
32 'defines': [
33 'PDF_ENABLE_XFA',
34 ],
35 }],
30 ], 36 ],
31 }, 37 },
32 'targets': [ 38 'targets': [
33 { 39 {
34 'target_name': 'pdfium_test', 40 'target_name': 'pdfium_test',
35 'type': 'executable', 41 'type': 'executable',
36 'dependencies': [ 42 'dependencies': [
37 '../pdfium.gyp:pdfium', 43 '../pdfium.gyp:pdfium',
38 '../pdfium.gyp:test_support', 44 '../pdfium.gyp:test_support',
39 # Regardless of whether the library ships against system freetype, 45 # Regardless of whether the library ships against system freetype,
40 # always link this binary against the bundled one for consistency 46 # always link this binary against the bundled one for consistency
41 # of results across platforms. 47 # of results across platforms.
42 '../third_party/third_party.gyp:fx_freetype', 48 '../third_party/third_party.gyp:fx_freetype',
43 ], 49 ],
44 'sources': [ 50 'sources': [
45 'pdfium_test.cc', 51 'pdfium_test.cc',
46 'image_diff_png.cc', 52 'image_diff_png.cc',
47 ], 53 ],
48 'link_settings': { 54 'link_settings': {
49 'libraries!': [ 55 'libraries!': [
50 '-lfreetype', 56 '-lfreetype',
51 ], 57 ],
52 }, 58 },
53 'conditions': [ 59 'conditions': [
60 ['pdf_enable_xfa==0', {
61 'dependencies': [
62 '../third_party/third_party.gyp:fx_lpng',
63 ],
64 }],
54 ['pdf_enable_v8==1', { 65 ['pdf_enable_v8==1', {
55 'dependencies': [ 66 'dependencies': [
56 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', 67 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
57 ], 68 ],
58 }], 69 }],
59 ], 70 ],
60 }, 71 },
61 { 72 {
62 'target_name': 'pdfium_diff', 73 'target_name': 'pdfium_diff',
63 'type': 'executable', 74 'type': 'executable',
64 'variables': { 'enable_wexit_time_destructors': 1, }, 75 'variables': { 'enable_wexit_time_destructors': 1, },
65 'dependencies': [ 76 'dependencies': [
66 '../pdfium.gyp:pdfium', 77 '../pdfium.gyp:pdfium',
67 '../third_party/third_party.gyp:pdfium_base', 78 '../third_party/third_party.gyp:pdfium_base',
68 ], 79 ],
69 'sources': [ 80 'sources': [
70 'image_diff.cc', 81 'image_diff.cc',
71 'image_diff_png.h', 82 'image_diff_png.h',
72 'image_diff_png.cc', 83 'image_diff_png.cc',
73 ], 84 ],
85 'conditions': [
86 ['pdf_enable_xfa==0', {
87 'dependencies': [
88 '../third_party/third_party.gyp:fx_lpng',
89 ],
90 }],
91 ],
74 }, 92 },
75 ], 93 ],
76 } 94 }
OLDNEW
« no previous file with comments | « samples/pdfium_test.cc ('k') | testing/embedder_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698