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

Unified Diff: xfa.gyp

Issue 1393833006: Merge to XFA: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase, fix build, stray include. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/embedder_test.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa.gyp
diff --git a/xfa.gyp b/xfa.gyp
index 25dd8ff619f07d957e68c61c45fccacfa14d5d77..5504ebc9d86bf01f8ef18007befd186eb29a8499 100644
--- a/xfa.gyp
+++ b/xfa.gyp
@@ -1,4 +1,7 @@
{
+ "variables": {
+ "pdf_enable_v8%": 1,
+ },
"target_defaults": {
"defines": [
"PDF_ENABLE_XFA",
@@ -663,61 +666,58 @@
"xfa/src/fxgraphics/src/fx_path_generator.cpp",
"xfa/src/fxgraphics/src/fx_path_generator.h",
"xfa/src/fxgraphics/src/pre.h",
- "xfa/src/fxjse/src/class.cpp",
- "xfa/src/fxjse/src/class.h",
- "xfa/src/fxjse/src/context.cpp",
- "xfa/src/fxjse/src/context.h",
- "xfa/src/fxjse/src/dynprop.cpp",
- "xfa/src/fxjse/src/runtime.cpp",
- "xfa/src/fxjse/src/runtime.h",
- "xfa/src/fxjse/src/scope_inline.h",
- "xfa/src/fxjse/src/util_inline.h",
- "xfa/src/fxjse/src/value.cpp",
- "xfa/src/fxjse/src/value.h"
],
- "conditions":[
- [
- "OS == 'win'",
- {
- "configurations":{
- "Debug":{
- "msvs_configuration_attributes":{
- },
- "msvs_settings":{
- "VCCLCompilerTool":{
- },
- "VCLibrarianTool":{
- },
- "VCLinkerTool":{
- }
- }
- },
- "Release":{
- "msvs_configuration_attributes":{
- },
- "msvs_settings":{
- "VCCLCompilerTool":{
- },
- "VCLibrarianTool":{
- },
- "VCLinkerTool":{
- }
- }
+ "conditions": [
+ ["pdf_enable_v8==1", {
+ 'dependencies': [
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
+ ],
+ 'export_dependent_settings': [
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)/v8',
+ '<(DEPTH)/v8/include',
+ ],
+ 'sources': [
+ "xfa/src/fxjse/src/class.cpp",
+ "xfa/src/fxjse/src/class.h",
+ "xfa/src/fxjse/src/context.cpp",
+ "xfa/src/fxjse/src/context.h",
+ "xfa/src/fxjse/src/dynprop.cpp",
+ "xfa/src/fxjse/src/runtime.cpp",
+ "xfa/src/fxjse/src/runtime.h",
+ "xfa/src/fxjse/src/scope_inline.h",
+ "xfa/src/fxjse/src/util_inline.h",
+ "xfa/src/fxjse/src/value.cpp",
+ "xfa/src/fxjse/src/value.h"
+ ],
+ }],
+ ["OS == 'win'", {
+ "configurations": {
+ "Debug": {
+ "msvs_configuration_attributes": {},
+ "msvs_settings": {
+ "VCCLCompilerTool": {},
+ "VCLibrarianTool": {},
+ "VCLinkerTool": {},
}
},
- "sources":[
- ]
- }
- ],
- [
- "OS == 'mac'",
- {
- "configurations":{
+ "Release": {
+ "msvs_configuration_attributes": {},
+ "msvs_settings": {
+ "VCCLCompilerTool": {},
+ "VCLibrarianTool": {},
+ "VCLinkerTool": {},
+ }
+ }
},
- "sources":[
- ]
- }
- ]
+ "sources": [],
+ }],
+ ["OS == 'mac'", {
+ "configurations": {},
+ "sources": [],
+ }],
]
}
]
« no previous file with comments | « testing/embedder_test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698