Skip to content

Commit 1bcbcc5

Browse files
authored
[WASM] set _APP_RES_FOLDER if not defined to be able to specify directories of Resources (#2483)
* add AX_WASM_RES_FOLDER to specify dirs of Resources, Content/ by default * use right var * set _APP_RES_FOLDER if not defined * Typo * Remove spaces
1 parent ca93e35 commit 1bcbcc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/Modules/AXBuildHelpers.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ macro (ax_setup_app_props app_name)
569569
# string(APPEND EMSCRIPTEN_LINK_FLAGS " -s SEPARATE_DWARF_URL=https://xxx:8080/axmolwasm/axmolwasm/build/HelloLua.debug.wasm")
570570
# string(APPEND EMSCRIPTEN_LINK_FLAGS " -gseparate-dwarf=HelloLua.debug.wasm")
571571

572-
set(_APP_RES_FOLDER "${_APP_SOURCE_DIR}/Content")
572+
if (NOT DEFINED _APP_RES_FOLDER)
573+
set(_APP_RES_FOLDER "${_APP_SOURCE_DIR}/Content")
574+
endif()
573575
foreach(FOLDER IN LISTS _APP_RES_FOLDER)
574576
string(APPEND EMSCRIPTEN_LINK_FLAGS " --preload-file ${FOLDER}/@/")
575577
endforeach()

0 commit comments

Comments
 (0)