add waf, skeleton main.cc

This commit is contained in:
josh committed 2018-03-15 21:50:03 -04:00
commit 1ce1dc41ea
6 files changed
+222

No files matched your search

+20
View File
@@ -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"])