Skip to content

Commit

Permalink
Use waf-based build system instead of the old one.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Jul 29, 2013
1 parent 5d50fef commit e1186c7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .gitignore
@@ -1,6 +1,3 @@
keyboard_demo
*.a
*.o
*.lo
*.so
*~
build
.waf*
.lock*
6 changes: 6 additions & 0 deletions src/demo/wscript
@@ -0,0 +1,6 @@
def build(bld):
bld.program(
source = 'keyboard.c',
target = 'keyboard',
use = 'termbox',
)
11 changes: 11 additions & 0 deletions 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")
Binary file added waf
Binary file not shown.
17 changes: 17 additions & 0 deletions 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')

0 comments on commit e1186c7

Please sign in to comment.