aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cxx/target.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-26 12:06:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-28 15:01:48 +0300
commitac87e3827b214c0ba1bd1c17a2d8a18026637d3f (patch)
tree8a750721a2537f9762b9dda4e00951b61ee1354f /libbuild2/cxx/target.cxx
parentf7adb1ce7a13753a6acf5c9eeb9577ecdada630c (diff)
Move cxx build system module to separate library
Diffstat (limited to 'libbuild2/cxx/target.cxx')
-rw-r--r--libbuild2/cxx/target.cxx85
1 files changed, 85 insertions, 0 deletions
diff --git a/libbuild2/cxx/target.cxx b/libbuild2/cxx/target.cxx
new file mode 100644
index 0000000..25dfa3a
--- /dev/null
+++ b/libbuild2/cxx/target.cxx
@@ -0,0 +1,85 @@
+// file : libbuild2/cxx/target.cxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#include <libbuild2/cxx/target.hxx>
+
+#include <libbuild2/context.hxx>
+
+using namespace std;
+
+namespace build2
+{
+ namespace cxx
+ {
+ extern const char hxx_ext_def[] = "hxx";
+ const target_type hxx::static_type
+ {
+ "hxx",
+ &cc::static_type,
+ &target_factory<hxx>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<hxx_ext_def>,
+ &target_pattern_var<hxx_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+
+ extern const char ixx_ext_def[] = "ixx";
+ const target_type ixx::static_type
+ {
+ "ixx",
+ &cc::static_type,
+ &target_factory<ixx>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<ixx_ext_def>,
+ &target_pattern_var<ixx_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+
+ extern const char txx_ext_def[] = "txx";
+ const target_type txx::static_type
+ {
+ "txx",
+ &cc::static_type,
+ &target_factory<txx>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<txx_ext_def>,
+ &target_pattern_var<txx_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+
+ extern const char cxx_ext_def[] = "cxx";
+ const target_type cxx::static_type
+ {
+ "cxx",
+ &cc::static_type,
+ &target_factory<cxx>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<cxx_ext_def>,
+ &target_pattern_var<cxx_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+
+ extern const char mxx_ext_def[] = "mxx";
+ const target_type mxx::static_type
+ {
+ "mxx",
+ &cc::static_type,
+ &target_factory<mxx>,
+ nullptr, /* fixed_extension */
+ &target_extension_var<mxx_ext_def>,
+ &target_pattern_var<mxx_ext_def>,
+ nullptr,
+ &file_search,
+ false
+ };
+ }
+}