2016-02-13 16:31:17 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from waflib.extras import autowaf as autowaf
|
|
|
|
from waflib import TaskGen
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
# Variables for 'waf dist'
|
|
|
|
APPNAME = 'liblua'
|
2019-10-29 00:36:24 -04:00
|
|
|
VERSION = "5.3.5"
|
2016-02-13 16:31:17 -05:00
|
|
|
I18N_PACKAGE = 'liblua'
|
|
|
|
|
|
|
|
# Mandatory variables
|
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
autowaf.set_options(opt)
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.load('compiler_c')
|
|
|
|
autowaf.configure(conf)
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
obj=bld.stlib (source = ['lua.cc', 'luastate.cc'],
|
2018-10-14 22:06:11 -04:00
|
|
|
cflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
|
|
|
cxxflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
|
|
|
includes = ['.'],
|
|
|
|
export_includes = ['.'],
|
|
|
|
target = 'liblua',
|
|
|
|
uselib = [ 'SIGCPP', 'DL' ]
|
2016-02-13 16:31:17 -05:00
|
|
|
)
|
|
|
|
autowaf.ensure_visible_symbols (obj, True)
|
|
|
|
|
|
|
|
def shutdown():
|
|
|
|
autowaf.shutdown()
|