13
0
livetrax/libs/lua/wscript
2017-11-29 12:06:42 +01:00

36 lines
779 B
Python

#!/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'
VERSION = "5.3.4"
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'],
cflags = [ '-fPIC' ],
cxxflags = [ '-fPIC' ],
includes = ['.'],
export_includes = ['.'],
target = 'liblua',
uselib = [ 'SIGCPP', 'DL' ]
)
autowaf.ensure_visible_symbols (obj, True)
def shutdown():
autowaf.shutdown()