diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-18 11:27:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-18 11:27:13 +0200 |
commit | 99fe901f2148b3f9ba6569fa92c1c88deef1dff5 (patch) | |
tree | 31a76e9d672614230e8a4dea715de1aeed8b1a27 /tests | |
parent | 8ee1f1ae8819ebe76434390a36895c5ad76bcfca (diff) |
Add binless option to bdep-new c++ language parameter
This allows creation of a simpler buildfile for header-only (and, in the
future, for module-only) libraries.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/new.testscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript index abda94b..f114ce8 100644 --- a/tests/new.testscript +++ b/tests/new.testscript @@ -68,6 +68,30 @@ status += -d prj EOE } + : lib-binless + : + { + $* -t lib -l c++,binless libfoo 2>>/"EOE" &libfoo/***; + created new library project libfoo in $~/libfoo/ + EOE + + $build libfoo/ $cxx 2>>~%EOE% + %(version\.in|c\+\+|ld) .+%{3} + EOE + } + + : lib-binless-unit-tests + : + { + $* -t lib,unit-tests -l c++,binless libfoo 2>>/"EOE" &libfoo/***; + created new library project libfoo in $~/libfoo/ + EOE + + $build libfoo/ $cxx 2>>~%EOE% + %(version\.in|c\+\+|ld) .+%{5} + EOE + } + # C versions of the above. # : exe-c |