mirror of
https://github.com/ARMSX2/ARMSX1.git
synced 2026-08-24 16:53:35 -07:00
11 lines
429 B
CMake
11 lines
429 B
CMake
if(NOT DEFINED INPUT_FILE)
|
|
message(FATAL_ERROR "postprocess_web_html.cmake requires INPUT_FILE")
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/../third_party/fuse-lib/cmake/postprocess_web_html.cmake")
|
|
|
|
file(READ "${INPUT_FILE}" html)
|
|
file(READ "${CMAKE_CURRENT_LIST_DIR}/file_access.js" file_access)
|
|
string(REPLACE "</body>" "<script>\n${file_access}\n</script>\n</body>" html "${html}")
|
|
file(WRITE "${INPUT_FILE}" "${html}")
|