summaryrefslogtreecommitdiff
path: root/libs/lua/wscript
blob: b67820f3ccfc75f681a284f1a42ccd13034cd7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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()