mirror of https://gitee.com/bigwinds/arangodb
272 lines
8.4 KiB
CMake
272 lines
8.4 KiB
CMake
# -*- mode: CMAKE; -*-
|
|
|
|
## -----------------------------------------------------------------------------
|
|
## --SECTION-- COMMON INCLUDES
|
|
## -----------------------------------------------------------------------------
|
|
|
|
################################################################################
|
|
### @brief local directory
|
|
################################################################################
|
|
|
|
include_directories(.)
|
|
|
|
################################################################################
|
|
### @brief library source
|
|
################################################################################
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/lib)
|
|
|
|
## -----------------------------------------------------------------------------
|
|
## --SECTION-- EXECUTABLES
|
|
## -----------------------------------------------------------------------------
|
|
|
|
################################################################################
|
|
### @brief output directory
|
|
################################################################################
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
|
|
################################################################################
|
|
### @brief arangod
|
|
################################################################################
|
|
|
|
if (MSVC)
|
|
SET(ARANGO_MSVC
|
|
RestServer/WindowsServiceUtils.cpp
|
|
)
|
|
endif ()
|
|
|
|
|
|
add_executable(
|
|
${BIN_ARANGOD}
|
|
${ARANGO_MSVC}
|
|
Actions/actions.cpp
|
|
Actions/RestActionHandler.cpp
|
|
Aql/AggregationOptions.cpp
|
|
Aql/AqlItemBlock.cpp
|
|
Aql/AqlItemBlockManager.cpp
|
|
Aql/AqlValue.cpp
|
|
Aql/Ast.cpp
|
|
Aql/AstNode.cpp
|
|
Aql/AttributeAccessor.cpp
|
|
Aql/BindParameters.cpp
|
|
Aql/Collection.cpp
|
|
Aql/CollectionScanner.cpp
|
|
Aql/ExecutionBlock.cpp
|
|
Aql/ExecutionEngine.cpp
|
|
Aql/ExecutionNode.cpp
|
|
Aql/ExecutionPlan.cpp
|
|
Aql/ExecutionStats.cpp
|
|
Aql/Executor.cpp
|
|
Aql/Expression.cpp
|
|
Aql/Function.cpp
|
|
Aql/Functions.cpp
|
|
Aql/grammar.cpp
|
|
Aql/NodeFinder.cpp
|
|
Aql/Optimizer.cpp
|
|
Aql/OptimizerRules.cpp
|
|
Aql/Parser.cpp
|
|
Aql/Query.cpp
|
|
Aql/QueryList.cpp
|
|
Aql/QueryRegistry.cpp
|
|
Aql/RangeInfo.cpp
|
|
Aql/Range.cpp
|
|
Aql/RestAqlHandler.cpp
|
|
Aql/Scopes.cpp
|
|
Aql/ShortStringStorage.cpp
|
|
Aql/tokens.cpp
|
|
Aql/V8Expression.cpp
|
|
Aql/Variable.cpp
|
|
Aql/VariableGenerator.cpp
|
|
Aql/ModificationOptions.cpp
|
|
Cluster/AgencyComm.cpp
|
|
Cluster/ApplicationCluster.cpp
|
|
Cluster/ClusterComm.cpp
|
|
Cluster/ClusterInfo.cpp
|
|
Cluster/ClusterMethods.cpp
|
|
Cluster/HeartbeatThread.cpp
|
|
Cluster/RestShardHandler.cpp
|
|
Cluster/ServerJob.cpp
|
|
Cluster/ServerState.cpp
|
|
Cluster/v8-cluster.cpp
|
|
FulltextIndex/fulltext-handles.cpp
|
|
FulltextIndex/fulltext-index.cpp
|
|
FulltextIndex/fulltext-list.cpp
|
|
FulltextIndex/fulltext-query.cpp
|
|
FulltextIndex/fulltext-result.cpp
|
|
FulltextIndex/fulltext-wordlist.cpp
|
|
GeoIndex/GeoIndex.cpp
|
|
HashIndex/hash-array.cpp
|
|
HashIndex/hash-array-multi.cpp
|
|
Indexes/CapConstraint.cpp
|
|
Indexes/EdgeIndex.cpp
|
|
Indexes/FulltextIndex.cpp
|
|
Indexes/GeoIndex2.cpp
|
|
Indexes/HashIndex.cpp
|
|
Indexes/Index.cpp
|
|
Indexes/PrimaryIndex.cpp
|
|
Indexes/SkiplistIndex2.cpp
|
|
IndexOperators/index-operator.cpp
|
|
Replication/ContinuousSyncer.cpp
|
|
Replication/InitialSyncer.cpp
|
|
Replication/Syncer.cpp
|
|
RestHandler/RestBatchHandler.cpp
|
|
RestHandler/RestCursorHandler.cpp
|
|
RestHandler/RestDocumentHandler.cpp
|
|
RestHandler/RestEdgeHandler.cpp
|
|
RestHandler/RestExportHandler.cpp
|
|
RestHandler/RestImportHandler.cpp
|
|
RestHandler/RestPleaseUpgradeHandler.cpp
|
|
RestHandler/RestQueryHandler.cpp
|
|
RestHandler/RestReplicationHandler.cpp
|
|
RestHandler/RestSimpleHandler.cpp
|
|
RestHandler/RestSimpleQueryHandler.cpp
|
|
RestHandler/RestUploadHandler.cpp
|
|
RestHandler/RestVocbaseBaseHandler.cpp
|
|
RestServer/ArangoServer.cpp
|
|
RestServer/ConsoleThread.cpp
|
|
RestServer/VocbaseContext.cpp
|
|
RestServer/arangod.cpp
|
|
SkipLists/skiplistIndex.cpp
|
|
Utils/CollectionExport.cpp
|
|
Utils/Cursor.cpp
|
|
Utils/CursorRepository.cpp
|
|
Utils/DocumentHelper.cpp
|
|
Utils/StandaloneTransactionContext.cpp
|
|
Utils/Transaction.cpp
|
|
Utils/TransactionContext.cpp
|
|
Utils/V8TransactionContext.cpp
|
|
V8Server/ApplicationV8.cpp
|
|
V8Server/V8DispatcherThread.cpp
|
|
V8Server/V8Job.cpp
|
|
V8Server/V8PeriodicTask.cpp
|
|
V8Server/V8QueueJob.cpp
|
|
V8Server/V8TimerTask.cpp
|
|
V8Server/V8Traverser.cpp
|
|
V8Server/v8-actions.cpp
|
|
V8Server/v8-collection.cpp
|
|
V8Server/v8-collection-util.cpp
|
|
V8Server/v8-dispatcher.cpp
|
|
V8Server/v8-query.cpp
|
|
V8Server/v8-replication.cpp
|
|
V8Server/v8-user-structures.cpp
|
|
V8Server/v8-util.cpp
|
|
V8Server/v8-vocbase.cpp
|
|
V8Server/v8-voccursor.cpp
|
|
V8Server/v8-vocindex.cpp
|
|
V8Server/v8-wrapshapedjson.cpp
|
|
VocBase/auth.cpp
|
|
VocBase/cleanup.cpp
|
|
VocBase/collection.cpp
|
|
VocBase/compactor.cpp
|
|
VocBase/datafile.cpp
|
|
VocBase/Ditch.cpp
|
|
VocBase/document-collection.cpp
|
|
VocBase/ExampleMatcher.cpp
|
|
VocBase/edge-collection.cpp
|
|
VocBase/headers.cpp
|
|
VocBase/KeyGenerator.cpp
|
|
VocBase/replication-applier.cpp
|
|
VocBase/replication-common.cpp
|
|
VocBase/replication-dump.cpp
|
|
VocBase/replication-master.cpp
|
|
VocBase/server.cpp
|
|
VocBase/transaction.cpp
|
|
VocBase/voc-shaper.cpp
|
|
VocBase/vocbase.cpp
|
|
VocBase/vocbase-defaults.cpp
|
|
Wal/AllocatorThread.cpp
|
|
Wal/CollectorThread.cpp
|
|
Wal/LogfileManager.cpp
|
|
Wal/Logfile.cpp
|
|
Wal/Marker.cpp
|
|
Wal/RecoverState.cpp
|
|
Wal/RemoverThread.cpp
|
|
Wal/Slot.cpp
|
|
Wal/Slots.cpp
|
|
Wal/SynchroniserThread.cpp
|
|
)
|
|
|
|
target_link_libraries(
|
|
${BIN_ARANGOD}
|
|
${LIB_ARANGO_FE}
|
|
${LIB_ARANGO_V8}
|
|
${LIB_ARANGO}
|
|
${LIBEV_LIBS}
|
|
${V8_LIBS} # need this for rest::Version
|
|
${ICU_LIBS}
|
|
${BT_LIBS}
|
|
${ZLIB_LIBS}
|
|
${READLINE_LIBS}
|
|
${OPENSSL_LIBS}
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${MSVC_LIBS}
|
|
)
|
|
|
|
################################################################################
|
|
### @brief install arangod binary
|
|
################################################################################
|
|
|
|
install(
|
|
TARGETS ${BIN_ARANGOD}
|
|
RUNTIME DESTINATION ${TRI_SBINDIR_INSTALL})
|
|
|
|
################################################################################
|
|
### @brief install arangod config
|
|
################################################################################
|
|
|
|
install_config(arangod)
|
|
|
|
################################################################################
|
|
### @brief install arango-dfdb binary
|
|
################################################################################
|
|
|
|
install_command_alias(${BIN_ARANGOD} ${TRI_SBINDIR_INSTALL} arango-dfdb)
|
|
|
|
################################################################################
|
|
### @brief install arango-dfdb config
|
|
################################################################################
|
|
|
|
install_config(arango-dfdb)
|
|
|
|
################################################################################
|
|
### @brief install server-side JavaScript files
|
|
################################################################################
|
|
|
|
install(
|
|
DIRECTORY ${PROJECT_BINARY_DIR}/js
|
|
DESTINATION share/arangodb/js)
|
|
|
|
################################################################################
|
|
### @brief install log directory
|
|
################################################################################
|
|
|
|
install(
|
|
DIRECTORY ${PROJECT_BINARY_DIR}/var/log/arangodb
|
|
DESTINATION ${VARDIR_INSTALL}/log)
|
|
|
|
################################################################################
|
|
### @brief install database directory
|
|
################################################################################
|
|
|
|
install(
|
|
DIRECTORY ${PROJECT_BINARY_DIR}/var/lib/arangodb
|
|
DESTINATION ${VARDIR_INSTALL}/lib)
|
|
|
|
################################################################################
|
|
### @brief install apps directory
|
|
################################################################################
|
|
|
|
install(
|
|
DIRECTORY ${PROJECT_BINARY_DIR}/var/lib/arangodb-apps
|
|
DESTINATION ${VARDIR_INSTALL}/lib)
|
|
|
|
## -----------------------------------------------------------------------------
|
|
## --SECTION-- END-OF-FILE
|
|
## -----------------------------------------------------------------------------
|
|
|
|
## Local Variables:
|
|
## mode: outline-minor
|
|
## outline-regexp: "### @brief\\|## --SECTION--\\|# -\\*- "
|
|
## End:
|