From 64eecc0f7ba15b1733bbc713a2f197dda590e12d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 14 Oct 2016 10:41:48 +0200 Subject: Add test{} testscript target type --- build2/test/target | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build2/test/target (limited to 'build2/test/target') diff --git a/build2/test/target b/build2/test/target new file mode 100644 index 0000000..fe1d25f --- /dev/null +++ b/build2/test/target @@ -0,0 +1,29 @@ +// file : build2/test/target -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_TEST_TARGET +#define BUILD2_TEST_TARGET + +#include +#include + +#include + +namespace build2 +{ + namespace test + { + class testscript: public file + { + public: + using file::file; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + } +} + +#endif // BUILD2_TEST_TARGET -- cgit v1.1