1
0
Fork 0

Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

This commit is contained in:
Esteban Lombeyda 2014-03-20 12:12:10 +01:00
commit 23d395c027
1 changed files with 36 additions and 18 deletions

54
CMakeLists.txt Normal file → Executable file
View File

@ -38,9 +38,6 @@ set(BIN_ARANGOIRB arangoirb)
set(BIN_ARANGORESTORE arangorestore)
set(BIN_ARANGOSH arangosh)
set(SCRIPT_ARANGO_DFDB arango-dfdb)
set(SCRIPT_FOXX_MANAGER foxx-manager)
set(TEST_BASICS_SUITE basics_suite)
set(TEST_GEO_SUITE geo_suite)
@ -261,19 +258,26 @@ include_directories(${PROJECT_SOURCE_DIR})
macro (generate_root_config name)
FILE(READ ${PROJECT_SOURCE_DIR}/etc/arangodb/${name}.conf.in FileContent)
SET(SHARE_DIR "@ROOTDIR@/share/arangodb")
SET(VAR_DIR "@ROOTDIR@/var")
if (MSVC)
SET(SHARE_DIR "@ROOTDIR@/share/arangodb")
SET(VAR_DIR "@ROOTDIR@/var")
endif ()
STRING(REPLACE "@PKGDATADIR@" ${SHARE_DIR}
STRING(REPLACE "@PKGDATADIR@" "@ROOTDIR@/share/arangodb"
FileContent "${FileContent}")
STRING(REPLACE "@LOCALSTATEDIR@" ${VAR_DIR}
STRING(REPLACE "@LOCALSTATEDIR@" "@ROOTDIR@/var"
FileContent "${FileContent}")
STRING(REPLACE "@SBINDIR@" "@ROOTDIR@/bin"
FileContent "${FileContent}")
STRING(REPLACE "@LIBEXECDIR@/arangodb" "@ROOTDIR@/bin"
FileContent "${FileContent}")
STRING(REPLACE "@SYSCONFDIR@" "@ROOTDIR@/etc/arangodb"
FileContent "${FileContent}")
if (MSVC)
STRING(REPLACE "@PROGRAM_SUFFIX@" ".exe"
FileContent "${FileContent}")
STRING(REGEX REPLACE "[\r\n]file =" "\n# file ="
FileContent "${FileContent}")
endif ()
@ -759,27 +763,28 @@ endif ()
if (MSVC)
##############################################################################
# Initializing variables
## Initializing variables
##############################################################################
set(CPACK_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/Installation/Windows/Templates")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL 1)
set(BITS 64)
IF(CMAKE_CL_64)
if(CMAKE_CL_64)
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}")
SET(BITS 64)
ELSE()
else()
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}")
SET(BITS 32)
ENDIF()
endif()
SET(CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS "SetRegView ${BITS}")
# SetRegView controlls where die regkeys are written to
# SetRegView 32 writes the keys into Wow6432
# this variable was defined by eld and included in NSIS.template.in
# this variable was defined by eld and included in NSIS.template.in
SET(CPACK_NSIS_EXTRA_PREUNINSTALL_COMMANDS
" SetRegView ${BITS}
SimpleSC::StopService 'ArangoDB' 0 30
@ -812,8 +817,8 @@ if (MSVC)
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Arango Server.lnk' '$INSTDIR\\\\bin\\\\arangod.exe' '' '$INSTDIR\\\\resources\\\\Icons\\\\arangodb.ico' '0' SW_SHOWMAXIMIZED
")
# Note, short cuts are created in $SMPROGRAMS\$STARTMENU_FOLDER but
# they are deleted from '$SMPROGRAMS\$MUI_TEMP
# Note, short cuts are created in $SMPROGRAMS\$STARTMENU_FOLDER but
# they are deleted from '$SMPROGRAMS\$MUI_TEMP
set(CPACK_NSIS_DELETE_ICONS_EXTRA
"Delete '$SMPROGRAMS\\\\$MUI_TEMP\\\\Arango Server.lnk'
Delete '$SMPROGRAMS\\\\$MUI_TEMP\\\\Arango Shell.lnk'
@ -823,6 +828,19 @@ if (MSVC)
set(CPACK_NSIS_HELP_LINK "http://www.arangodb.org")
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.arangodb.org")
set(CPACK_NSIS_CONTACT "hackers@arangodb.org")
##############################################################################
## etcd
##############################################################################
if(CMAKE_CL_64)
install(PROGRAMS 3rdParty-Windows/64/bin/etcd-arango.exe
DESTINATION ${TRI_SBINDIR_INSTALL})
else()
install(PROGRAMS 3rdParty-Windows/32/bin/etcd-arango.exe
DESTINATION ${TRI_SBINDIR_INSTALL})
endif()
endif ()
################################################################################