From 9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Jan 2016 11:55:15 +0200 Subject: Rename build directory/namespace to build2 --- build2/cxx/target.cxx | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 build2/cxx/target.cxx (limited to 'build2/cxx/target.cxx') diff --git a/build2/cxx/target.cxx b/build2/cxx/target.cxx new file mode 100644 index 0000000..0990945 --- /dev/null +++ b/build2/cxx/target.cxx @@ -0,0 +1,81 @@ +// file : build2/cxx/target.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#include + +using namespace std; + +namespace build2 +{ + namespace cxx + { + constexpr const char ext_var[] = "extension"; + + constexpr const char hxx_ext_def[] = "hxx"; + const target_type hxx::static_type + { + "hxx", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + + constexpr const char ixx_ext_def[] = "ixx"; + const target_type ixx::static_type + { + "ixx", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + + constexpr const char txx_ext_def[] = "txx"; + const target_type txx::static_type + { + "txx", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + + constexpr const char cxx_ext_def[] = "cxx"; + const target_type cxx::static_type + { + "cxx", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + + constexpr const char h_ext_def[] = "h"; + const target_type h::static_type + { + "h", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + + constexpr const char c_ext_def[] = "c"; + const target_type c::static_type + { + "c", + &file::static_type, + &target_factory, + &target_extension_var, + &search_file, + false + }; + } +} -- cgit v1.1