From e268cfef58ba2e370d62a8a29cd61a253f180414 Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Fri, 11 Nov 2016 17:39:07 +0100 Subject: [PATCH] Add variable to enable skipping the download --- binding.gyp | 3 ++- src/node/gyp/realm.gyp | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/binding.gyp b/binding.gyp index bb22d6ae..cdbcc274 100644 --- a/binding.gyp +++ b/binding.gyp @@ -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", diff --git a/src/node/gyp/realm.gyp b/src/node/gyp/realm.gyp index e89775f3..96c200f4 100644 --- a/src/node/gyp/realm.gyp +++ b/src/node/gyp/realm.gyp @@ -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)" ] + } + ] }] ] - } ] }