8bb91099c5
Avoid repeated pointless configure messages like: Checking for 'g++' (C++ compiler!) : /usr/lib64/ccache/g++ Checking for 'gcc' (C compiler) : /usr/lib64/ccache/gcc
35 lines
820 B
Python
35 lines
820 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.5"
|
|
I18N_PACKAGE = 'liblua'
|
|
|
|
# Mandatory variables
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
autowaf.set_options(opt)
|
|
|
|
def configure(conf):
|
|
pass
|
|
|
|
def build(bld):
|
|
obj=bld.stlib (source = ['lua.cc', 'luastate.cc'],
|
|
cflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
|
cxxflags = [ bld.env['compiler_flags_dict']['pic'] ],
|
|
includes = ['.'],
|
|
export_includes = ['.'],
|
|
target = 'liblua',
|
|
uselib = [ 'SIGCPP', 'DL' ]
|
|
)
|
|
autowaf.ensure_visible_symbols (obj, True)
|
|
|
|
def shutdown():
|
|
autowaf.shutdown()
|