Add variable to enable skipping the download

This commit is contained in:
Radu Tutueanu 2016-11-11 17:39:07 +01:00
parent 900827d72f
commit e268cfef58
2 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,7 @@
{
"variables": {
"realm_node_build_as_library%": "0"
"realm_node_build_as_library%": "0",
"realm_download_binaries%": "1"
},
"includes": [
"src/node/gyp/target_defaults.gypi",

View File

@ -82,14 +82,6 @@
},
"target_name": "vendored-realm",
"type": "none",
"actions": [
{
"action_name": "download-realm",
"inputs": [ ],
"outputs": [ "<(module_root_dir)/vendor/core-node" ],
"action": [ "<(module_root_dir)/scripts/download-core.sh", "node" ]
}
],
"conditions": [
["realm_enable_sync", {
"all_dependent_settings": {
@ -102,9 +94,18 @@
"library_dirs": [ "<(module_root_dir)/vendor/core-node" ]
},
}],
["realm_download_binaries", {
"actions": [
{
"action_name": "download-realm",
"inputs": [ ],
"outputs": [ "<(module_root_dir)/vendor/core-node" ],
"action": [ "<(module_root_dir)/scripts/download-core.sh", "node", "<(realm_enable_sync)" ]
}
]
}]
]
}
]
}