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") "node")
download_server download_server
start_server start_server
bash "$SRCROOT/scripts/download-core.sh" npm install --build-from-source
npm install --build-from-source --realm_enable_sync
# Change to a temp directory. # Change to a temp directory.
cd "$(mktemp -q -d -t realm.node.XXXXXX)" cd "$(mktemp -q -d -t realm.node.XXXXXX)"

View File

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