Skip to content

Commit

Permalink
Switched from using cmake to waf
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtahu committed Jul 27, 2013
1 parent b675e74 commit 4783509
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
29 changes: 0 additions & 29 deletions CMakeLists.txt

This file was deleted.

15 changes: 15 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def options(ctx):
ctx.load('compiler_cxx')

def configure(ctx):
ctx.load('compiler_cxx')
ctx.find_program('flex', var='FLEX')
ctx.find_program('bison', var='BISON')

def build(bld):
sources = bld.path.ant_glob('*.cpp') + ['LangS.tab.cpp', 'LangS.yy.cpp' ]
bld(rule = '${FLEX} -o ${TGT} ${SRC}', source= 'LangS.l', target = 'LangS.yy.cpp')
bld(rule = '${BISON} -d ${SRC}', source= 'LangS.ypp', target = ['LangS.tab.cpp','LangS.tab.hpp'])
langs = bld(features='c cxx cxxprogram', source=sources, target='LangS', includes='.')


0 comments on commit 4783509

Please sign in to comment.