Skip to content

Commit

Permalink
Merge pull request #45 from NuiCpp/devel
Browse files Browse the repository at this point in the history
Improved dependencies.
  • Loading branch information
5cript authored Jun 12, 2023
2 parents 1a143dd + ff88083 commit 37db996
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/backend/emscripten.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function(nui_add_emscripten_target)
COMMAND $<TARGET_FILE:bin2hpp> ${ENABLE_BIN2HPP} ${CMAKE_BINARY_DIR}/module_${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}/bin/index.html ${CMAKE_BINARY_DIR}/include/index.hpp index
BINARY_DIR "${CMAKE_BINARY_DIR}/module_${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}"
BUILD_ALWAYS 1
BUILD_BYPRODUCTS "${CMAKE_BINARY_DIR}/module_${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}/bin/index.html"
INSTALL_COMMAND ""
)
add_dependencies(${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET} ${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-emscripten)
Expand All @@ -109,13 +110,18 @@ function(nui_add_emscripten_target)
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-prejs ALL
DEPENDS ${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_PREJS}
)
add_custom_target(
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-parcel-dep
DEPENDS "${CMAKE_BINARY_DIR}/module_${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}/bin/index.html"
)
add_dependencies(
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-emscripten
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-prejs
emscripten-setup
)
add_dependencies(
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}
${NUI_ADD_EMSCRIPTEN_TARGET_ARGS_TARGET}-parcel-dep
emscripten-setup
)

Expand Down

0 comments on commit 37db996

Please sign in to comment.