Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use waf-based build system instead of the old one.

  • Loading branch information...
commit e1186c771347c396e47c33a570ffc386422269ac 1 parent 5d50fef
@nsf authored
View
9 .gitignore
@@ -1,6 +1,3 @@
-keyboard_demo
-*.a
-*.o
-*.lo
-*.so
-*~
+build
+.waf*
+.lock*
View
6 src/demo/wscript
@@ -0,0 +1,6 @@
+def build(bld):
+ bld.program(
+ source = 'keyboard.c',
+ target = 'keyboard',
+ use = 'termbox',
+ )
View
11 src/wscript
@@ -0,0 +1,11 @@
+def build(bld):
+ sources = bld.path.ant_glob("*.c")
+ bld.shlib(
+ source = bld.path.ant_glob("*.c"),
+ target = 'termbox',
+ )
+ bld.stlib(
+ source = bld.path.ant_glob("*.c"),
+ target = 'termbox',
+ )
+ bld.recurse("demo")
View
BIN  waf
Binary file not shown
View
17 wscript
@@ -0,0 +1,17 @@
+APPNAME = 'termbox'
+VERSION = '1.1'
+
+top = '.'
+out = 'build'
+
+import sys
+
+def options(opt):
+ opt.load('compiler_c')
+
+def configure(conf):
+ conf.load('compiler_c')
+ conf.env.append_unique('CFLAGS', ['-Wall', '-Wextra', '-g', '-O0'])
+
+def build(bld):
+ bld.recurse('src')
Please sign in to comment.
Something went wrong with that request. Please try again.