diff options
Diffstat (limited to 'build2/cc/target.cxx')
-rw-r--r-- | build2/cc/target.cxx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/build2/cc/target.cxx b/build2/cc/target.cxx new file mode 100644 index 0000000..7c2bb24 --- /dev/null +++ b/build2/cc/target.cxx @@ -0,0 +1,39 @@ +// file : build2/cc/target.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#include <build2/cc/target> + +using namespace std; + +namespace build2 +{ + namespace cc + { + extern const char ext_var[] = "extension"; // VC 19 rejects constexpr. + + extern const char h_ext_def[] = "h"; + const target_type h::static_type + { + "h", + &file::static_type, + &target_factory<h>, + &target_extension_var<ext_var, h_ext_def>, + nullptr, + &search_file, + false + }; + + extern const char c_ext_def[] = "c"; + const target_type c::static_type + { + "c", + &file::static_type, + &target_factory<c>, + &target_extension_var<ext_var, c_ext_def>, + nullptr, + &search_file, + false + }; + } +} |