21 lines
516 B
Python
21 lines
516 B
Python
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"])
|