Skip to content

Commit

Permalink
added wscript
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Jan 3, 2011
1 parent 3e2d818 commit d7dc7a5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
def build(bld):
bld(features = 'cxx cstaticlib',
source = 'util.cpp',
target = 'util',
includes = ['.'],
lib = ['gflags', 'glog'])

bld(features = 'cxx cstaticlib',
source = 'SimpleHMM.cpp',
target = 'SimpleHMM',
includes = ['util'],
lib = ['gflags', 'glog'])

bld(features = 'cxx cprogram',
source = 'simple_hmm.cpp',
target = 'simple_hmm',
includes = ['.'],
uselib_local = ['util', 'SimpleHMM'],
lib = ['gflags', 'glog'])
18 changes: 18 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
VERSION = '0.0.1'
APPNAME = 'simple_hmm'

srcdir = '.'
blddir = 'build'

def set_options(ctx):
ctx.tool_options('compiler_cxx')

def configure(ctx):
ctx.check_tool('compiler_cxx')
ctx.env.append_value('std', ['c++0x'])
ctx.check_cxx(lib = 'glog')
ctx.check_cxx(lib = 'gflags')
ctx.env.CXXFLAGS += ['-O3', '-Wall', '-W']

def build(bld):
bld.recurse('src')

0 comments on commit d7dc7a5

Please sign in to comment.