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

Side by Side Diff: samples/samples.gyp

Issue 1395733006: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Always build with V8 under GN. 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 { 5 {
6 'variables': {
7 'pdf_enable_v8%': 1,
8 },
6 'target_defaults': { 9 'target_defaults': {
7 'defines' : [ 10 'defines' : [
8 'PNG_PREFIX', 11 'PNG_PREFIX',
9 'PNGPREFIX_H', 12 'PNGPREFIX_H',
10 'PNG_USE_READ_MACROS', 13 'PNG_USE_READ_MACROS',
11 ], 14 ],
12 'include_dirs': [ 15 'include_dirs': [
13 '<(DEPTH)', 16 '<(DEPTH)',
14 '<(DEPTH)/v8', 17 ],
15 '<(DEPTH)/v8/include', 18 'conditions': [
19 ['pdf_enable_v8==1', {
20 'include_dirs': [
21 '<(DEPTH)/v8',
22 '<(DEPTH)/v8/include',
23 ],
24 }],
16 ], 25 ],
17 }, 26 },
18 'targets': [ 27 'targets': [
19 { 28 {
20 'target_name': 'pdfium_test', 29 'target_name': 'pdfium_test',
21 'type': 'executable', 30 'type': 'executable',
22 'dependencies': [ 31 'dependencies': [
23 'fx_lpng', 32 'fx_lpng',
24 '../pdfium.gyp:pdfium', 33 '../pdfium.gyp:pdfium',
25 # Regardless of whether the library ships against system freetype, 34 # Regardless of whether the library ships against system freetype,
26 # always link this binary against the bundled one for consistency 35 # always link this binary against the bundled one for consistency
27 # of results across platforms. 36 # of results across platforms.
28 '../third_party/third_party.gyp:fx_freetype', 37 '../third_party/third_party.gyp:fx_freetype',
29 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
30 ], 38 ],
31 'sources': [ 39 'sources': [
32 'pdfium_test.cc', 40 'pdfium_test.cc',
33 'image_diff_png.cc', 41 'image_diff_png.cc',
34 ], 42 ],
35 'link_settings': { 43 'link_settings': {
36 'libraries!': [ 44 'libraries!': [
37 '-lfreetype', 45 '-lfreetype',
38 ], 46 ],
39 }, 47 },
48 'conditions': [
49 ['pdf_enable_v8==1', {
50 'dependencies': [
51 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
52 ],
53 }],
54 ],
40 }, 55 },
41 { 56 {
42 'target_name': 'pdfium_diff', 57 'target_name': 'pdfium_diff',
43 'type': 'executable', 58 'type': 'executable',
44 'variables': { 'enable_wexit_time_destructors': 1, }, 59 'variables': { 'enable_wexit_time_destructors': 1, },
45 'dependencies': [ 60 'dependencies': [
46 'fx_lpng', 61 'fx_lpng',
47 '../pdfium.gyp:pdfium', 62 '../pdfium.gyp:pdfium',
48 '../third_party/third_party.gyp:pdfium_base', 63 '../third_party/third_party.gyp:pdfium_base',
49 ], 64 ],
(...skipping 29 matching lines...) Expand all
79 'fx_lpng/src/fx_pngset.c', 94 'fx_lpng/src/fx_pngset.c',
80 'fx_lpng/src/fx_pngtrans.c', 95 'fx_lpng/src/fx_pngtrans.c',
81 'fx_lpng/src/fx_pngwio.c', 96 'fx_lpng/src/fx_pngwio.c',
82 'fx_lpng/src/fx_pngwrite.c', 97 'fx_lpng/src/fx_pngwrite.c',
83 'fx_lpng/src/fx_pngwtran.c', 98 'fx_lpng/src/fx_pngwtran.c',
84 'fx_lpng/src/fx_pngwutil.c', 99 'fx_lpng/src/fx_pngwutil.c',
85 ], 100 ],
86 }, 101 },
87 ], 102 ],
88 } 103 }
OLDNEW
« pdfium.gyp ('K') | « samples/pdfium_test.cc ('k') | testing/embedder_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698