mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
build: install rebuilt web if available (#4865)
This commit is contained in:
@@ -772,7 +772,7 @@ foreach(P cli daemon gtk mac qt utils)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
|
if(NOT REBUILD_WEB AND (ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT))
|
||||||
tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
|
tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -87,3 +87,7 @@ add_custom_target("${TR_NAME}-web"
|
|||||||
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
|
||||||
SOURCES
|
SOURCES
|
||||||
${WEB_SOURCES})
|
${WEB_SOURCES})
|
||||||
|
|
||||||
|
install(
|
||||||
|
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/public_html
|
||||||
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
|
||||||
|
|||||||
Reference in New Issue
Block a user