add waf, skeleton main.cc
This commit is contained in:
commit
1ce1dc41ea
6 files changed
+222
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import platform
|
||||
import re
|
||||
import os.path
|
||||
|
||||
APPNAME = "oniguruma-test"
|
||||
|
||||
def options(opt):
|
||||
opt.load("compiler_c compiler_cxx")
|
||||
|
||||
def configure(conf):
|
||||
conf.load("compiler_c compiler_cxx")
|
||||
conf.check_cfg(package = "oniguruma", args = "--cflags --libs")
|
||||
|
||||
def build(bld):
|
||||
sources = bld.path.ant_glob("*.cc")
|
||||
bld(features = "c cprogram cxx cxxprogram",
|
||||
target = APPNAME,
|
||||
source = sources,
|
||||
cxxflags = ["-Wall", "-std=gnu++14", "-O2", "-Wno-switch"],
|
||||
uselib = ["oniguruma"])
|
||||
Reference in new issue
Block a user