1
0
Fork 0

naive attempt to not build arangobackup in community version (#10013)

* naive attempt to not build arangobackup in community version

* fix testing.js

* try to fix enterprise detection
This commit is contained in:
Jan 2019-09-13 19:26:35 +02:00 committed by KVS85
parent 351ca41553
commit 935a35a275
3 changed files with 30 additions and 11 deletions

View File

@ -1252,7 +1252,9 @@ if (USE_GOOGLE_TESTS)
endif ()
add_dependencies(arangobench zlibstatic)
if (USE_ENTERPRISE)
add_dependencies(arangobackup zlibstatic)
endif ()
add_dependencies(arangod zlibstatic)
add_dependencies(arangodump zlibstatic)
add_dependencies(arangoexport zlibstatic)
@ -1262,7 +1264,9 @@ add_dependencies(arangosh zlibstatic)
if (UNIX)
add_dependencies(arangobench man)
if (USE_ENTERPRISE)
add_dependencies(arangobackup man)
endif ()
add_dependencies(arangod man)
add_dependencies(arangodump man)
add_dependencies(arangoexport man)
@ -1274,7 +1278,10 @@ endif()
if (NOT USE_PRECOMPILED_V8)
# all binaries depend on v8_build because it contains ICU as well
add_dependencies(arangobench v8_build)
if (USE_ENTERPRISE)
add_dependencies(arangobackup v8_build)
endif ()
add_dependencies(arangod v8_build)
add_dependencies(arangodump v8_build)
add_dependencies(arangoexport v8_build)

View File

@ -64,6 +64,8 @@ endif()
## arangobackup
################################################################################
if (USE_ENTERPRISE)
if (MSVC AND NOT(SKIP_PACKAGING))
generate_product_version(ProductVersionFiles_arangobackup
NAME arangobackup
@ -118,6 +120,8 @@ if (DARWIN)
target_compile_options(arangobackup PRIVATE -Werror)
endif()
endif () # USE_ENTERPRISE
################################################################################
## arangodump
################################################################################

View File

@ -250,14 +250,22 @@ function setupBinaries (builddir, buildType, configDir) {
LOGS_DIR = fs.join(TOP_DIR, 'logs');
let checkFiles = [
ARANGOBACKUP_BIN,
ARANGOBENCH_BIN,
ARANGODUMP_BIN,
ARANGOD_BIN,
ARANGOIMPORT_BIN,
ARANGORESTORE_BIN,
ARANGOEXPORT_BIN,
ARANGOSH_BIN];
ARANGOSH_BIN
];
if (global.ARANGODB_CLIENT_VERSION) {
let version = global.ARANGODB_CLIENT_VERSION(true);
if (version.hasOwnProperty('enterprise-version')) {
checkFiles.push(ARANGOBACKUP_BIN);
}
}
for (let b = 0; b < checkFiles.length; ++b) {
if (!fs.isFile(checkFiles[b])) {
throw new Error('unable to locate ' + checkFiles[b]);