summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/all.gyp4
-rw-r--r--pdfium.gyp42
2 files changed, 25 insertions, 21 deletions
diff --git a/build/all.gyp b/build/all.gyp
index 62db131617..7e2ea613ff 100644
--- a/build/all.gyp
+++ b/build/all.gyp
@@ -8,9 +8,7 @@
'target_name': 'All',
'type': 'none',
'dependencies': [
- '../pdfium.gyp:pdfium',
- '../pdfium.gyp:pdfium_embeddertests',
- '../pdfium.gyp:pdfium_unittests',
+ '../pdfium.gyp:*',
'../samples/samples.gyp:*',
],
}
diff --git a/pdfium.gyp b/pdfium.gyp
index 82a170dbe2..934916fc3c 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -651,24 +651,6 @@
],
},
{
- 'target_name': 'fpdfxfa',
- 'type': 'static_library',
- 'dependencies': [
- 'javascript',
- 'xfa.gyp:xfa',
- ],
- 'sources': [
- 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
- 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
- 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
- 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
- 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
- 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
- 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
- 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
- ],
- },
- {
'target_name': 'javascript',
'type': 'static_library',
'sources': [
@@ -875,4 +857,28 @@
],
},
],
+ 'conditions': [
+ ['pdf_enable_xfa==1', {
+ 'targets': [
+ {
+ 'target_name': 'fpdfxfa',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'javascript',
+ 'xfa.gyp:xfa',
+ ],
+ 'sources': [
+ 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
+ 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
+ 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
+ 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
+ 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
+ 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
+ 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
+ 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
+ ],
+ },
+ ]
+ }],
+ ]
}