blob: 81bb9dd1bb23a066f2b478f864d4df2d45fa8ade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION ${CEPH_INSTALL_DATADIR}/mgr
${mgr_module_install_excludes}
PATTERN "frontend/*" EXCLUDE
PATTERN ".*" EXCLUDE)
if(WITH_MGR_DASHBOARD_FRONTEND)
# build from source
add_subdirectory(frontend)
if(WITH_TESTS)
include(AddCephTest)
add_tox_test(mgr-dashboard-py3 TOX_ENVS py3)
add_tox_test(mgr-dashboard-lint TOX_ENVS lint)
add_tox_test(mgr-dashboard-check TOX_ENVS check)
add_tox_test(mgr-dashboard-openapi TOX_ENVS openapi-check)
endif()
else()
# prebuilt
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/frontend/dist
DESTINATION ${CEPH_INSTALL_DATADIR}/mgr/dashboard/frontend)
install(FILES frontend/package.json
DESTINATION ${CEPH_INSTALL_DATADIR}/mgr/dashboard/frontend)
endif()
|