Copy angle binaries

This commit is contained in:
halx99 2020-07-23 10:32:50 +08:00
parent bfd73bf69a
commit f98bcff3a6
2 changed files with 12 additions and 0 deletions

View File

@ -433,6 +433,7 @@ if(WINDOWS)
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/Classes/precheader.cpp" PROPERTIES COMPILE_FLAGS "/Ycprecheader.h")
endif()
# Copy win32 angle binaries
if(WIN32)
add_custom_command(TARGET ${APP_NAME}
COMMAND ${CMAKE_COMMAND} -E copy_if_different

View File

@ -147,3 +147,14 @@ if(LINUX OR WINDOWS)
cocos_copy_lua_scripts(${APP_NAME} ${res_src_folders} ${APP_RES_DIR}/src )
cocos_copy_lua_scripts(${APP_NAME} ${res_script_folders} ${APP_RES_DIR}/src/cocos)
endif()
# Copy win32 angle binaries
if(WIN32)
add_custom_command(TARGET ${APP_NAME}
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/libGLESv2.dll
${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/libEGL.dll
${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/d3dcompiler_47.dll
$<TARGET_FILE_DIR:${APP_NAME}>
)
endif()