From a14daf38475a414e462708d9b0f4d651e5119b58 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Nov 2018 11:03:37 +0200 Subject: Add support for target and prerequisite specific variable blocks For example, now instead of: lib{foo}: cxx.loptions += -static lib{foo}: cxx.libs += -lpthread We can write: lib{foo}: { cxx.loptions += -static cxx.libs += -lpthread } The same works for prerequisites as well as target type/patterns. For example: exe{*.test}: { test = true install = false } --- tests/variable/target-type-pattern-specific/buildfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/variable/target-type-pattern-specific/buildfile (limited to 'tests/variable/target-type-pattern-specific/buildfile') diff --git a/tests/variable/target-type-pattern-specific/buildfile b/tests/variable/target-type-pattern-specific/buildfile new file mode 100644 index 0000000..efed550 --- /dev/null +++ b/tests/variable/target-type-pattern-specific/buildfile @@ -0,0 +1,5 @@ +# file : tests/variable/target-type-pattern-specific/buildfile +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +./: testscript $b -- cgit v1.1