Lua53 premake
来源:互联网 发布:java电商系统源码下载 编辑:程序博客网 时间:2024/05/21 10:50
Lua53 premake
(金庆的专栏 2017.2)
参考:用premake5创建lua532工程
http://blog.csdn.net/jq0123/article/details/51242780
-- premake5.lua
--[[
Usage examples:
for windows: premake5.exe --os=windows vs2015
fot linux: premake5.exe --os=linux gmake
]]
workspace "lua53"
configurations { "Debug", "Release" }
targetdir "bin/%{cfg.buildcfg}"
language "C++"
-- Force VS to compile as C++.
-- https://github.com/premake/premake-core/issues/142
filter "action:vs*"
buildoptions "/TP"
filter "system:windows"
defines { "LUA_BUILD_AS_DLL" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
project "lua53"
kind "ConsoleApp"
files { "src/lua.c" }
links { "lua53_shared_lib" }
project "luac53"
kind "ConsoleApp"
files { "src/luac.c" }
links { "lua53_static_lib" } -- Link error on Windows if link lua53 shared lib.
project "lua53_shared_lib"
kind "SharedLib"
targetname "lua53"
files { "src/*.h", "src/*.c" }
removefiles { "src/lua.c", "src/luac.c" }
project "lua53_static_lib"
kind "StaticLib"
targetname "lua53"
filter "system:windows"
removefiles { "src/lua.c", "src/luac.c" }
更改之处:
* VS强制按C++编译
* 创建动态库和静态库
* lua53.exe 链接动态库,luac53.exe 链接静态库,
因为 luac53.exe 链接动态库缺3个函数未导出。
* 添加宏 LUA_BUILD_AS_DLL,不然 lua53.dll 不会生成 lua53.lib
(金庆的专栏 2017.2)
参考:用premake5创建lua532工程
http://blog.csdn.net/jq0123/article/details/51242780
-- premake5.lua
--[[
Usage examples:
for windows: premake5.exe --os=windows vs2015
fot linux: premake5.exe --os=linux gmake
]]
workspace "lua53"
configurations { "Debug", "Release" }
targetdir "bin/%{cfg.buildcfg}"
language "C++"
-- Force VS to compile as C++.
-- https://github.com/premake/premake-core/issues/142
filter "action:vs*"
buildoptions "/TP"
filter "system:windows"
defines { "LUA_BUILD_AS_DLL" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
project "lua53"
kind "ConsoleApp"
files { "src/lua.c" }
links { "lua53_shared_lib" }
project "luac53"
kind "ConsoleApp"
files { "src/luac.c" }
links { "lua53_static_lib" } -- Link error on Windows if link lua53 shared lib.
project "lua53_shared_lib"
kind "SharedLib"
targetname "lua53"
files { "src/*.h", "src/*.c" }
removefiles { "src/lua.c", "src/luac.c" }
project "lua53_static_lib"
kind "StaticLib"
targetname "lua53"
filter "system:windows"
targetprefix "lib" -- liblua53.lib
filter {}
removefiles { "src/lua.c", "src/luac.c" }
更改之处:
* VS强制按C++编译
* 创建动态库和静态库
* lua53.exe 链接动态库,luac53.exe 链接静态库,
因为 luac53.exe 链接动态库缺3个函数未导出。
* 添加宏 LUA_BUILD_AS_DLL,不然 lua53.dll 不会生成 lua53.lib
0 0
- Lua53 premake
- Lua53
- premake
- premake 安装
- premake source 笔记
- premake基本配置详解
- premake构造工具
- premake构造工具- 使用premake工具生成工程文件
- Premake 4.1.2 命令行解释
- premake Ubuntu下的安装
- premake 使用clang替换gcc
- premake版解决方案小工具
- Premake 4.1.2 命令行解释
- premake设置静态运行库
- Premake可生成vcxproj.filters
- Ubuntu上用premake编译GDAL
- 跨平台MakeFile生成的软件--PreMake
- ALSA(二), makefile, Autotools, premake
- 安全策略之CSP应用
- Java Pattern和Matcher详解
- 数据库事物隔离四种级别详解
- GoldenDream-2月(开学啦)
- 字符串最小表示法 O(n)算法
- Lua53 premake
- Whole.Tomato.Visual.Assist.X.v10.9.2118.0-CRD
- Bootstrap 导航栏
- Django第二弹之环境搭建
- hdu 1425排序
- Unix中的IO模型:帮你弄清阻塞VS非阻塞、同步VS异步
- cs231n-(8)理解和可视化卷积网络
- CDOJ 1135 邱老师看电影 概率dp
- 大话数据结构读书笔记(六)-树