lua编译

2 篇文章 0 订阅
1 篇文章 0 订阅

lua编译


* 注:本人使用qmake作为makefile文件的维护工具

lua-project.pro

TEMPLATE = subdirs
SUBDIRS += lua-lib.pro
SUBDIRS += lua.pro
SUBDIRS += luac.pro

lua-lib.pro

######################################################################
# Automatically generated by qmake (3.0) ?? ?? 14 13:07:04 2017
######################################################################
QT -=core gui
TEMPLATE = lib
DEFINES += _CRT_SECURE_NO_WARNINGS
# 输出函数
DEFINES += LUA_BUILD_AS_DLL
# 兼容低版本api,如luaL_openlib,
# 在python中安装第三方lupa库时,需要调用luaL_openlib函数
DEFINES += LUA_COMPAT_5_1 LUA_COMPAT_5_2
TARGET = lua53
DESTDIR = $$PWD/dist
# Input
HEADERS += lapi.h \
           lauxlib.h \
           lcode.h \
           lctype.h \
           ldebug.h \
           ldo.h \
           lfunc.h \
           lgc.h \
           llex.h \
           llimits.h \
           lmem.h \
           lobject.h \
           lopcodes.h \
           lparser.h \
           lprefix.h \
           lstate.h \
           lstring.h \
           ltable.h \
           ltm.h \
           lua.h \
           lua.hpp \
           luaconf.h \
           lualib.h \
           lundump.h \
           lvm.h \
           lzio.h
SOURCES += lapi.c \
           lauxlib.c \
           lbaselib.c \
           lbitlib.c \
           lcode.c \
           lcorolib.c \
           lctype.c \
           ldblib.c \
           ldebug.c \
           ldo.c \
           ldump.c \
           lfunc.c \
           lgc.c \
           linit.c \
           liolib.c \
           llex.c \
           lmathlib.c \
           lmem.c \
           loadlib.c \
           lobject.c \
           lopcodes.c \
           loslib.c \
           lparser.c \
           lstate.c \
           lstring.c \
           lstrlib.c \
           ltable.c \
           ltablib.c \
           ltm.c \
           lundump.c \
           lutf8lib.c \
           lvm.c \
           lzio.c

lua.pro

######################################################################
# Automatically generated by qmake (3.0) ?? ?? 14 13:07:04 2017
######################################################################
QT -=core gui
TEMPLATE = app
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES -= LUA_BUILD_AS_DLL
DEFINES -= LUA_COMPAT_5_1 LUA_COMPAT_5_2
TARGET = lua53
DESTDIR = $$PWD/dist
# Input
HEADERS += lapi.h \
           lauxlib.h \
           lcode.h \
           lctype.h \
           ldebug.h \
           ldo.h \
           lfunc.h \
           lgc.h \
           llex.h \
           llimits.h \
           lmem.h \
           lobject.h \
           lopcodes.h \
           lparser.h \
           lprefix.h \
           lstate.h \
           lstring.h \
           ltable.h \
           ltm.h \
           lua.h \
           lua.hpp \
           luaconf.h \
           lualib.h \
           lundump.h \
           lvm.h \
           lzio.h
SOURCES += lapi.c \
           lauxlib.c \
           lbaselib.c \
           lbitlib.c \
           lcode.c \
           lcorolib.c \
           lctype.c \
           ldblib.c \
           ldebug.c \
           ldo.c \
           ldump.c \
           lfunc.c \
           lgc.c \
           linit.c \
           liolib.c \
           llex.c \
           lmathlib.c \
           lmem.c \
           loadlib.c \
           lobject.c \
           lopcodes.c \
           loslib.c \
           lparser.c \
           lstate.c \
           lstring.c \
           lstrlib.c \
           ltable.c \
           ltablib.c \
           ltm.c \
           lundump.c \
           lutf8lib.c \
           lvm.c \
           lzio.c
SOURCES += lua.c

luac.pro

######################################################################
# Automatically generated by qmake (3.0) ?? ?? 14 13:07:04 2017
######################################################################
QT -=core gui
TEMPLATE = app
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES -= LUA_BUILD_AS_DLL
DEFINES -= LUA_COMPAT_5_1 LUA_COMPAT_5_2
TARGET = luac53
DESTDIR = $$PWD/dist
# Input
HEADERS += lapi.h \
           lauxlib.h \
           lcode.h \
           lctype.h \
           ldebug.h \
           ldo.h \
           lfunc.h \
           lgc.h \
           llex.h \
           llimits.h \
           lmem.h \
           lobject.h \
           lopcodes.h \
           lparser.h \
           lprefix.h \
           lstate.h \
           lstring.h \
           ltable.h \
           ltm.h \
           lua.h \
           lua.hpp \
           luaconf.h \
           lualib.h \
           lundump.h \
           lvm.h \
           lzio.h
SOURCES += lapi.c \
           lauxlib.c \
           lbaselib.c \
           lbitlib.c \
           lcode.c \
           lcorolib.c \
           lctype.c \
           ldblib.c \
           ldebug.c \
           ldo.c \
           ldump.c \
           lfunc.c \
           lgc.c \
           linit.c \
           liolib.c \
           llex.c \
           lmathlib.c \
           lmem.c \
           loadlib.c \
           lobject.c \
           lopcodes.c \
           loslib.c \
           lparser.c \
           lstate.c \
           lstring.c \
           lstrlib.c \
           ltable.c \
           ltablib.c \
           ltm.c \
           lundump.c \
           lutf8lib.c \
           lvm.c \
           lzio.c
SOURCES += luac.c
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值