update 3rdparty libs

This commit is contained in:
InoriRus
2022-09-16 14:43:43 +10:00
parent e66461427e
commit 407e141f5d
1660 changed files with 299096 additions and 26412 deletions
+19 -12
View File
@@ -1,25 +1,32 @@
file(GLOB lua_src
"include/*.h"
"src/*.c"
)
list(REMOVE_ITEM lua_src ${CMAKE_CURRENT_SOURCE_DIR}/src/luac.c)
add_library(lua STATIC ${lua_src})
if (MINGW)
#set_source_files_properties(${lua_src} PROPERTIES COMPILE_FLAGS "-DLUA_BUILD_AS_DLL")
#set_source_files_properties(${lua_src} PROPERTIES COMPILE_FLAGS "-DLUA_BUILD_AS_DLL")
endif()
if (MSVC)
#set_source_files_properties(${lua_src} PROPERTIES LANGUAGE CXX )
set_source_files_properties(${lua_src} PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS")
#set_source_files_properties(${lua_src} PROPERTIES LANGUAGE CXX )
#set_source_files_properties(${lua_src} PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS")
endif()
configure_file(
luaconf_windows.h
${PROJECT_BINARY_DIR}/luaconf.h
COPYONLY
)
if (ANDROID)
target_compile_options(lua PRIVATE -Wno-deprecated-declarations)
endif()
#configure_file(
# luaconf_windows.h
# ${PROJECT_BINARY_DIR}/luaconf.h
# COPYONLY
# )
#add_library(lua STATIC ${lua_src})
add_library(lua_obj OBJECT ${lua_src})
add_library(lua STATIC $<TARGET_OBJECTS:lua_obj>)