pack:打包添加lua定义导出。
This commit is contained in:
parent
ebb14aa7ef
commit
73d165ec93
@ -38,7 +38,20 @@ if (DEFINED USE_BOOST)
|
|||||||
install(FILES ${MINGW32_DLLS} DESTINATION bin)
|
install(FILES ${MINGW32_DLLS} DESTINATION bin)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
execute_process(
|
||||||
|
COMMAND cmd /c ${CMAKE_SOURCE_DIR}/def_gen.bat
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
execute_process(
|
||||||
|
COMMAND bash ${CMAKE_SOURCE_DIR}/def_gen.sh
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/export/lua_fs.lua DESTINATION bin)
|
||||||
# ********************************************************** pack infomation
|
# ********************************************************** pack infomation
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(ARCH_BIT "64Bit")
|
set(ARCH_BIT "64Bit")
|
||||||
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
@ -8,6 +8,10 @@ set BUILD_BIN=build\bin
|
|||||||
set GENDEF_EXE=%BUILD_BIN%\gendef.exe
|
set GENDEF_EXE=%BUILD_BIN%\gendef.exe
|
||||||
set FS_LIB=fs\lib.cxx
|
set FS_LIB=fs\lib.cxx
|
||||||
|
|
||||||
|
if not exist %GENDEF_EXE% (
|
||||||
|
echo gendef.exe not found!
|
||||||
|
exit /b 0
|
||||||
|
)
|
||||||
if not exist %EXPORT_DIR% (
|
if not exist %EXPORT_DIR% (
|
||||||
mkdir %EXPORT_DIR%
|
mkdir %EXPORT_DIR%
|
||||||
)
|
)
|
||||||
@ -17,4 +21,3 @@ copy /Y %BUILD_BIN%\luac.exe %MLUAC_EXE%
|
|||||||
copy /Y %BUILD_BIN%\lua_fs.dll %EXPORT_DIR%
|
copy /Y %BUILD_BIN%\lua_fs.dll %EXPORT_DIR%
|
||||||
echo end!
|
echo end!
|
||||||
endlocal
|
endlocal
|
||||||
pause
|
|
||||||
|
@ -10,6 +10,11 @@ LIB_DIR="build/lib"
|
|||||||
GENDEF_EXE="$BUILD_BIN/gendef"
|
GENDEF_EXE="$BUILD_BIN/gendef"
|
||||||
FS_LIB="fs/lib.cxx"
|
FS_LIB="fs/lib.cxx"
|
||||||
|
|
||||||
|
if [ ! -e "$GENDEF_EXE" ]; then
|
||||||
|
echo "$GENDEF_EXE not exist."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# 创建 export 和 lua 目录
|
# 创建 export 和 lua 目录
|
||||||
mkdir -p "$EXPORT_DIR"
|
mkdir -p "$EXPORT_DIR"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user