Build macOS with sync by default

This commit is contained in:
Radu Tutueanu 2016-11-09 19:07:26 +01:00
parent b8c5bafd24
commit 9833b8e490
2 changed files with 22 additions and 12 deletions

View File

@ -176,8 +176,7 @@ case "$TARGET" in
"node")
download_server
start_server
bash "$SRCROOT/scripts/download-core.sh"
npm install --build-from-source --realm_enable_sync
npm install --build-from-source
# Change to a temp directory.
cd "$(mktemp -q -d -t realm.node.XXXXXX)"

View File

@ -1,8 +1,18 @@
{
"variables": {
"use_realm_debug": "<!(echo $REALMJS_USE_DEBUG_CORE)",
"realm_enable_sync%": "0"
"use_realm_debug": "<!(echo $REALMJS_USE_DEBUG_CORE)"
},
"conditions": [
["OS=='mac'", {
"variables": {
"realm_enable_sync%": "1"
}
}, {
"variables": {
"realm_enable_sync%": "0"
}
}]
],
"targets": [
{
"target_name": "realm-core",
@ -72,6 +82,14 @@
},
"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": {
@ -83,14 +101,7 @@
"include_dirs": [ "<(module_root_dir)/vendor/core-node/include" ],
"library_dirs": [ "<(module_root_dir)/vendor/core-node" ]
},
"actions": [
{
"action_name": "download-realm",
"inputs": [ ],
"outputs": [ "<(module_root_dir)/vendor/core-node" ],
"action": [ "<(module_root_dir)/scripts/download-core.sh", "node" ]
}
]
}]
]