add waf, skeleton main.cc
This commit is contained in:
commit
1ce1dc41ea
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/.lock-waf*
|
||||
/.waf*
|
||||
/build/
|
||||
/test/tmp/
|
||||
/coverage/
|
20
Makefile
Normal file
20
Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
all:
|
||||
./waf build --targets oniguruma-test
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
./waf clean
|
||||
|
||||
ifneq ($(FILTER),)
|
||||
GTEST_FILTER := --gtest_filter=$(FILTER)
|
||||
endif
|
||||
|
||||
.PHONY: build_tests
|
||||
build_tests:
|
||||
./waf build --targets tests
|
||||
|
||||
.PHONY: test
|
||||
test: build_tests
|
||||
./build/tests $(GTEST_FILTER)
|
||||
@-rm -rf coverage
|
||||
-gcovinator -b build -s src
|
5
main.cc
Normal file
5
main.cc
Normal file
@ -0,0 +1,5 @@
|
||||
#include <oniguruma.h>
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
}
|
169
waf
vendored
Executable file
169
waf
vendored
Executable file
File diff suppressed because one or more lines are too long
20
wscript
Normal file
20
wscript
Normal 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"])
|
Loading…
x
Reference in New Issue
Block a user