2023-01-23 21:59:41 +00:00
|
|
|
set(WEB_SOURCES
|
2023-01-01 19:49:48 +00:00
|
|
|
src/about-dialog.js
|
|
|
|
src/action-manager.js
|
|
|
|
src/alert-dialog.js
|
|
|
|
src/context-menu.js
|
|
|
|
src/file-row.js
|
|
|
|
src/formatter.js
|
|
|
|
src/inspector.js
|
2023-01-23 21:59:41 +00:00
|
|
|
src/labels-dialog.js
|
2023-01-01 19:49:48 +00:00
|
|
|
src/main.js
|
|
|
|
src/move-dialog.js
|
|
|
|
src/notifications.js
|
|
|
|
src/open-dialog.js
|
|
|
|
src/overflow-menu.js
|
|
|
|
src/prefs-dialog.js
|
|
|
|
src/prefs.js
|
|
|
|
src/remote.js
|
|
|
|
src/remove-dialog.js
|
|
|
|
src/rename-dialog.js
|
|
|
|
src/shortcuts-dialog.js
|
|
|
|
src/statistics-dialog.js
|
|
|
|
src/torrent.js
|
|
|
|
src/torrent-row.js
|
|
|
|
src/transmission.js
|
2023-01-23 21:59:41 +00:00
|
|
|
src/utils.js)
|
|
|
|
|
|
|
|
set(WEB_STYLES
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/css/transmission-app.scss)
|
2020-10-24 01:04:25 +00:00
|
|
|
|
2023-01-23 21:59:41 +00:00
|
|
|
set(WEB_IMAGES
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/img/box.svg
|
|
|
|
assets/img/chevron-down.svg
|
|
|
|
assets/img/chevron-up.svg
|
2023-01-23 21:59:41 +00:00
|
|
|
assets/img/file-text.svg
|
|
|
|
assets/img/film.svg
|
|
|
|
assets/img/folder.svg
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/img/horizontal-rule.svg
|
2023-01-23 21:59:41 +00:00
|
|
|
assets/img/image.svg
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/img/lock-fill.svg
|
|
|
|
assets/img/logo.png
|
|
|
|
assets/img/magnet.svg
|
2023-01-23 21:59:41 +00:00
|
|
|
assets/img/modern-tortoise-blue.png
|
|
|
|
assets/img/modern-tortoise.png
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/img/music.svg
|
|
|
|
assets/img/package.svg
|
|
|
|
assets/img/pause-circle-active.svg
|
|
|
|
assets/img/pause-circle-idle.svg
|
|
|
|
assets/img/play-circle-active.svg
|
|
|
|
assets/img/play-circle-idle.svg
|
2023-01-23 21:59:41 +00:00
|
|
|
assets/img/README.md
|
2023-01-01 19:49:48 +00:00
|
|
|
assets/img/router.svg
|
|
|
|
assets/img/type.svg)
|
2020-10-24 01:04:25 +00:00
|
|
|
|
2023-01-23 21:59:41 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.map"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
|
|
|
|
WORKING_DIRECTORY
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/babel.config.js"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/package-lock.json"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/package.json"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/prettier.config.js"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/stylelint.config.js"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/webpack.config.js"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/assets" "assets"
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/public_html" "public_html"
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src" "src"
|
|
|
|
COMMAND "${NPM}" ci --no-audit --no-fund --no-progress
|
2023-01-24 07:02:48 +00:00
|
|
|
COMMAND "${NPM}" run build
|
2023-01-23 21:59:41 +00:00
|
|
|
DEPENDS
|
|
|
|
${WEB_SOURCES}
|
|
|
|
${WEB_STYLES}
|
|
|
|
${WEB_IMAGES})
|
|
|
|
|
|
|
|
add_custom_target("${TR_NAME}-web"
|
|
|
|
ALL
|
|
|
|
DEPENDS
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.map"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
|
|
|
|
SOURCES
|
|
|
|
${WEB_SOURCES})
|
2023-02-13 16:52:53 +00:00
|
|
|
|
2023-02-22 12:25:50 +00:00
|
|
|
set(TR_WEB_ASSETS ${CMAKE_CURRENT_BINARY_DIR}/public_html PARENT_SCOPE)
|