add Rsconsfile
This commit is contained in:
parent
50cd9efd86
commit
663ed8c465
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/.lock-waf*
|
||||
/.waf*
|
||||
/.rsconscache
|
||||
/build/
|
||||
/test/tmp/
|
||||
/coverage/
|
||||
|
19
Makefile
19
Makefile
@ -1,20 +1,7 @@
|
||||
.PHONY: all
|
||||
all:
|
||||
./waf build --targets jes
|
||||
@rscons
|
||||
|
||||
.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
|
||||
@rscons -c
|
||||
|
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