Merge pull request #330 from c4games/lua54-compat

Lua 5.4 compatible
This commit is contained in:
halx99 2021-03-13 18:46:13 +08:00 committed by GitHub
parent d7610b8c77
commit b8892e446b
3 changed files with 8 additions and 2 deletions

View File

@ -151,7 +151,7 @@ set_target_properties(${ENGINEX_CORE_LIB}
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
VERSION "${ENGINEX_VERSION}"
FOLDER "Internal"
)

View File

@ -48,7 +48,7 @@ function(setup_cocos_extension_config target_name)
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
FOLDER "Extensions"
)

View File

@ -22,6 +22,12 @@ THE SOFTWARE.
]]
if (math.pow == nil) then
math.pow = function (x,y)
return x ^ y
end
end
require "cocos.cocos2d.Cocos2d"
require "cocos.cocos2d.Cocos2dConstants"
require "cocos.cocos2d.functions"