diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-13 22:31:17 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-22 22:06:47 +0100 |
commit | 5b40e073e9c973479c3d286a007c57e1e0fa3d0f (patch) | |
tree | a50ea1c4a213472b20b557bdfa673a4d3ad39a58 /libs/lua/wscript | |
parent | 2b575e4746d996a4e0ce3b2b2ee3c7f53bee6aca (diff) |
add liblua wrapper and build-scripts
Diffstat (limited to 'libs/lua/wscript')
-rw-r--r-- | libs/lua/wscript | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/lua/wscript b/libs/lua/wscript new file mode 100644 index 0000000000..6598e5a230 --- /dev/null +++ b/libs/lua/wscript @@ -0,0 +1,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 = "3.5.1" +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() |