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

Unified Diff: pdfium.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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/fsdk_mgr.cpp ('k') | public/fpdf_formfill.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdfium.gyp
diff --git a/pdfium.gyp b/pdfium.gyp
index b2a736391d82fdfcfc5a14e26b358e9bfd27edf2..aa1847882488daefa0801caa58d1d75930c3ac4d 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -88,7 +88,6 @@
'fxge',
'javascript',
'pdfwindow',
- 'fpdfxfa',
],
'sources': [
'fpdfsdk/include/fsdk_actionhandler.h',
@@ -133,6 +132,11 @@
'public/fpdfview.h',
],
'conditions': [
+ ['pdf_enable_xfa==1', {
+ 'dependencies': [
+ 'fpdfxfa',
+ ],
+ }],
['bundle_freetype==1', {
'dependencies': [
'third_party/third_party.gyp:fx_freetype',
@@ -344,8 +348,6 @@
'<(libjpeg_gyp_path):libjpeg',
'third_party/third_party.gyp:fx_lcms2',
'third_party/third_party.gyp:fx_libopenjpeg',
- 'third_party/third_party.gyp:fx_lpng',
- 'third_party/third_party.gyp:fx_tiff',
'third_party/third_party.gyp:fx_zlib',
],
'sources': [
@@ -354,18 +356,12 @@
'core/include/fxcodec/fx_codec_flate.h',
'core/src/fxcodec/codec/codec_int.h',
'core/src/fxcodec/codec/fx_codec.cpp',
- 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
'core/src/fxcodec/codec/fx_codec_fax.cpp',
'core/src/fxcodec/codec/fx_codec_flate.cpp',
- 'core/src/fxcodec/codec/fx_codec_gif.cpp',
'core/src/fxcodec/codec/fx_codec_icc.cpp',
'core/src/fxcodec/codec/fx_codec_jbig.cpp',
'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
- 'core/src/fxcodec/codec/fx_codec_png.cpp',
- 'core/src/fxcodec/codec/fx_codec_progress.cpp',
- 'core/src/fxcodec/codec/fx_codec_progress.h',
- 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
'core/src/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
@@ -404,10 +400,6 @@
'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
'core/src/fxcodec/jbig2/JBig2_TrdProc.cpp',
'core/src/fxcodec/jbig2/JBig2_TrdProc.h',
- 'core/src/fxcodec/lbmp/fx_bmp.cpp',
- 'core/src/fxcodec/lbmp/fx_bmp.h',
- 'core/src/fxcodec/lgif/fx_gif.cpp',
- 'core/src/fxcodec/lgif/fx_gif.h',
],
'msvs_settings': {
'VCCLCompilerTool': {
@@ -417,6 +409,24 @@
},
},
'conditions': [
+ ['pdf_enable_xfa==1', {
+ 'dependencies': [
+ 'third_party/third_party.gyp:fx_lpng',
+ 'third_party/third_party.gyp:fx_tiff',
+ ],
+ 'sources': [
+ 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
+ 'core/src/fxcodec/codec/fx_codec_gif.cpp',
+ 'core/src/fxcodec/codec/fx_codec_png.cpp',
+ 'core/src/fxcodec/codec/fx_codec_progress.cpp',
+ 'core/src/fxcodec/codec/fx_codec_progress.h',
+ 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
+ 'core/src/fxcodec/lbmp/fx_bmp.cpp',
+ 'core/src/fxcodec/lbmp/fx_bmp.h',
+ 'core/src/fxcodec/lgif/fx_gif.cpp',
+ 'core/src/fxcodec/lgif/fx_gif.h',
+ ],
+ }],
['os_posix==1', {
# core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
# conversion to check that an address is 16-bit aligned (benign).
@@ -428,7 +438,6 @@
'target_name': 'fxcrt',
'type': 'static_library',
'sources': [
- 'core/include/fxcrt/fx_arb.h',
'core/include/fxcrt/fx_basic.h',
'core/include/fxcrt/fx_bidi.h',
'core/include/fxcrt/fx_coordinates.h',
@@ -447,8 +456,6 @@
'core/src/fxcrt/fxcrt_posix.h',
'core/src/fxcrt/fxcrt_windows.cpp',
'core/src/fxcrt/fxcrt_windows.h',
- 'core/src/fxcrt/fx_arabic.cpp',
- 'core/src/fxcrt/fx_arabic.h',
'core/src/fxcrt/fx_basic_array.cpp',
'core/src/fxcrt/fx_basic_bstring.cpp',
'core/src/fxcrt/fx_basic_buffer.cpp',
@@ -470,6 +477,15 @@
'core/src/fxcrt/plex.h',
'core/src/fxcrt/xml_int.h',
],
+ 'conditions': [
+ ['pdf_enable_xfa==1', {
+ 'sources': [
+ 'core/include/fxcrt/fx_arb.h',
+ 'core/src/fxcrt/fx_arabic.cpp',
+ 'core/src/fxcrt/fx_arabic.h',
+ ],
+ }],
+ ],
},
{
'target_name': 'fxge',
@@ -638,7 +654,8 @@
'target_name': 'fpdfxfa',
'type': 'static_library',
'dependencies': [
- 'javascript'
+ 'javascript',
+ 'xfa.gyp:xfa',
],
'sources': [
'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
@@ -650,13 +667,6 @@
'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
],
- 'conditions': [
- [ "pdf_enable_xfa==1", {
- 'dependencies': [
- 'xfa.gyp:xfa',
- ],
- }],
- ],
},
{
'target_name': 'javascript',
@@ -815,9 +825,13 @@
'testing/embedder_test.h',
'testing/embedder_test_mock_delegate.h',
'testing/embedder_test_timer_handling_delegate.h',
- 'xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp',
],
'conditions': [
+ ['pdf_enable_xfa==1', {
+ 'sources': [
+ 'xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp',
+ ],
+ }],
['pdf_enable_v8==1', {
'include_dirs': [
'<(DEPTH)/v8',
« no previous file with comments | « fpdfsdk/src/fsdk_mgr.cpp ('k') | public/fpdf_formfill.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698