From 99fe901f2148b3f9ba6569fa92c1c88deef1dff5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Oct 2018 11:27:13 +0200 Subject: 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. --- tests/new.testscript | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/new.testscript') 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 -- cgit v1.1