diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-14 10:41:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:14 +0200 |
commit | 64eecc0f7ba15b1733bbc713a2f197dda590e12d (patch) | |
tree | bd3e05f5408e3f512eb39e37cddd9257d464e240 /build2/test/target | |
parent | d4be6965ed8d5cacb79776fa892b763548e3d070 (diff) |
Add test{} testscript target type
Diffstat (limited to 'build2/test/target')
-rw-r--r-- | build2/test/target | 29 |
1 files changed, 29 insertions, 0 deletions
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 <build2/types> +#include <build2/utility> + +#include <build2/target> + +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 |