mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-05-08 23:49:36 +00:00
update wasm 32 variables
This commit is contained in:
parent
e9bb164490
commit
9bfa29cbe9
@ -46,6 +46,13 @@ else(EXISTS ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH})
|
||||
message(STATUS "${TARGET_PLATFORM_TOOLCHAIN} not exits in ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
|
||||
endif()
|
||||
|
||||
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
|
||||
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
|
||||
set(QA_WASM32 ON CACHE BOOL "Custom define that enabled only when wasm32 platform are used" FORCE)
|
||||
endif(${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
|
||||
endif(DEFINED TARGET_PLATFORM_TOOLCHAIN)
|
||||
|
||||
|
||||
function(initWasmSupport name deployFile)
|
||||
if(NOT TARGET ${name})
|
||||
message("the ${name} target is not created!")
|
||||
@ -58,8 +65,6 @@ function(initWasmSupport name deployFile)
|
||||
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
|
||||
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
|
||||
message(added deploy step for site)
|
||||
set(QA_WASM32 ON CACHE BOOL "Custom define that enabled only when wasm32 platform are used" FORCE)
|
||||
|
||||
set_target_properties(${name} PROPERTIES OUTPUT_NAME "${name}.js")
|
||||
|
||||
addDeployFromFile(${deployFile})
|
||||
|
Loading…
x
Reference in New Issue
Block a user