mirror of https://github.com/axmolengine/axmol.git
Sync compiled shaders for UWP [skip ci]
This commit is contained in:
parent
07b51489e5
commit
e261f8d913
|
@ -389,8 +389,12 @@ function(ax_setup_app_config app_name)
|
|||
get_target_property(rt_output ${app_name} RUNTIME_OUTPUT_DIRECTORY)
|
||||
if ((WIN32 AND (NOT WINRT)) OR LINUX)
|
||||
ax_sync_target_res(${APP_NAME} LINK_TO "${rt_output}/${CMAKE_CFG_INTDIR}/axslc" FOLDERS ${GLSLCC_OUT_DIR} SYM_LINK 1 SYNC_TARGET_ID axslc)
|
||||
elseif(APPLE)
|
||||
elseif(APPLE OR WINRT)
|
||||
if (APPLE)
|
||||
ax_mark_multi_resources(compiled_shader_files RES_TO "Resources/axslc" FOLDERS ${GLSLCC_OUT_DIR})
|
||||
else()
|
||||
ax_mark_multi_resources(compiled_shader_files RES_TO "Content/axslc" FOLDERS ${GLSLCC_OUT_DIR})
|
||||
endif()
|
||||
target_sources(${app_name} PRIVATE ${compiled_shader_files})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -97,6 +97,7 @@ bool FileUtilsWinRT::init()
|
|||
{
|
||||
_checkPath();
|
||||
_defaultResRootPath = s_pszResourcePath;
|
||||
addSearchPath("axslc");
|
||||
return FileUtils::init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue