forked from arangodb/arangodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstallArangoDBJSClient.cmake
41 lines (37 loc) · 1.3 KB
/
InstallArangoDBJSClient.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
################################################################################
### @brief install client-side JavaScript files
################################################################################
install(
DIRECTORY
${ARANGODB_SOURCE_DIR}/js/common
${ARANGODB_SOURCE_DIR}/js/client
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR_ARANGO}/${ARANGODB_JS_VERSION}
FILES_MATCHING
PATTERN "*.js"
REGEX "^.*/js/client/modules/@arangodb/testsuites" EXCLUDE
REGEX "^.*/js/client/modules/@arangodb/testutils" EXCLUDE
)
install(
FILES
${ARANGODB_SOURCE_DIR}/js/JS_SHA1SUM.txt
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR_ARANGO}/${ARANGODB_JS_VERSION}
)
if (USE_ENTERPRISE)
install(
DIRECTORY
${ARANGODB_SOURCE_DIR}/enterprise/js/common
${ARANGODB_SOURCE_DIR}/enterprise/js/client
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR_ARANGO}/${ARANGODB_JS_VERSION}
FILES_MATCHING PATTERN "*.js"
)
endif ()
# For the node modules we need all files:
install(
DIRECTORY ${ARANGODB_SOURCE_DIR}/js/node
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR_ARANGO}/${ARANGODB_JS_VERSION}
REGEX "^.*/eslint" EXCLUDE
REGEX "^.*/.npmignore" EXCLUDE
REGEX "^.*/.bin" EXCLUDE
)