add Rsconsfile
This commit is contained in:
parent
50cd9efd86
commit
663ed8c465
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/.lock-waf*
|
/.lock-waf*
|
||||||
/.waf*
|
/.waf*
|
||||||
|
/.rsconscache
|
||||||
/build/
|
/build/
|
||||||
/test/tmp/
|
/test/tmp/
|
||||||
/coverage/
|
/coverage/
|
||||||
|
19
Makefile
19
Makefile
@ -1,20 +1,7 @@
|
|||||||
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
./waf build --targets jes
|
@rscons
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
./waf clean
|
@rscons -c
|
||||||
|
|
||||||
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
|
|
||||||
|
6
Rsconsfile
Normal file
6
Rsconsfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Rscons::Environment.new do |env|
|
||||||
|
env["sources"] = Dir[
|
||||||
|
"src/**/*.d",
|
||||||
|
"src/**/*.c"]
|
||||||
|
env.Program("#{env.build_root}/jes", "${sources}")
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user