Fix lua build [ci build]

This commit is contained in:
halx99 2021-05-24 19:18:15 +08:00
parent c49a4ea632
commit adce3298de
5 changed files with 7 additions and 9 deletions

View File

@ -50,7 +50,7 @@ function(cocos_copy_lua_scripts cocos_target src_dir dst_dir)
if(MSVC) if(MSVC)
add_custom_command(TARGET ${luacompile_target} POST_BUILD add_custom_command(TARGET ${luacompile_target} POST_BUILD
COMMAND ${PYTHON_COMMAND} ARGS ${ADXE_ROOT_PATH}/cmake/scripts/sync_folder.py COMMAND ${PYTHON_COMMAND} ARGS ${ADXE_ROOT_PATH}/cmake/scripts/sync_folder.py
-s ${src_dir} -d ${dst_dir} -l ${LUAJIT32_COMMAND} -m $<CONFIG> -s ${src_dir} -d ${dst_dir} -m $<CONFIG>
) )
else() else()
if("${CMAKE_BUILD_TYPE}" STREQUAL "") if("${CMAKE_BUILD_TYPE}" STREQUAL "")
@ -61,9 +61,7 @@ function(cocos_copy_lua_scripts cocos_target src_dir dst_dir)
else() else()
add_custom_command(TARGET ${luacompile_target} POST_BUILD add_custom_command(TARGET ${luacompile_target} POST_BUILD
COMMAND ${PYTHON_COMMAND} ARGS ${ADXE_ROOT_PATH}/cmake/scripts/sync_folder.py COMMAND ${PYTHON_COMMAND} ARGS ${ADXE_ROOT_PATH}/cmake/scripts/sync_folder.py
-s ${src_dir} -d ${dst_dir} -l ${LUAJIT32_COMMAND} -m ${CMAKE_BUILD_TYPE} -s ${src_dir} -d ${dst_dir} -m ${CMAKE_BUILD_TYPE}
COMMAND ${PYTHON_COMMAND} ARGS ${ADXE_ROOT_PATH}/cmake/scripts/sync_folder.py
-s ${src_dir} -d ${dst_dir}/64bit -l ${LUAJIT64_COMMAND} -m ${CMAKE_BUILD_TYPE}
) )
endif() endif()
endif() endif()

View File

@ -25,8 +25,8 @@
# ****************************************************************************/ # ****************************************************************************/
# this CMakeLists is to generate Cocos2d-x Engine Library # this CMakeLists is to generate Cocos2d-x Engine Library
# build libcocos2d # build adxe
# build luacocos2d if BUILD_LUA_LIBS=ON # build adxelua if BUILD_LUA_LIBS=ON
# The version number # The version number
set(ADXE_VERSION 1.0) set(ADXE_VERSION 1.0)

View File

@ -126,7 +126,7 @@ else()
config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/frameworks/runtime-src/proj.android/app/src") config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/frameworks/runtime-src/proj.android/app/src")
endif() endif()
target_link_libraries(${APP_NAME} luacocos2d) target_link_libraries(${APP_NAME} ${ADXE_LUA_LIB})
target_include_directories(${APP_NAME} PRIVATE ${RUNTIME_SRC_ROOT}/Classes) target_include_directories(${APP_NAME} PRIVATE ${RUNTIME_SRC_ROOT}/Classes)
# mark app resources, resource will be copy auto after mark # mark app resources, resource will be copy auto after mark

View File

@ -101,7 +101,7 @@ else()
config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/src") config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/src")
endif() endif()
target_link_libraries(${APP_NAME} luacocos2d) target_link_libraries(${APP_NAME} ${ADXE_LUA_LIB})
target_include_directories(${APP_NAME} PRIVATE Classes) target_include_directories(${APP_NAME} PRIVATE Classes)
# mark app resources # mark app resources

View File

@ -114,7 +114,7 @@ else()
config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/src") config_android_shared_libs("org.cocos2dx.lib" "${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/src")
endif() endif()
target_link_libraries(${APP_NAME} luacocos2d) target_link_libraries(${APP_NAME} ${ADXE_LUA_LIB})
target_include_directories(${APP_NAME} PRIVATE Classes) target_include_directories(${APP_NAME} PRIVATE Classes)
# mark app resources # mark app resources