From 70317569c6dcd9809ed4a8c425777e653ec6ca08 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 May 2017 18:24:31 +0300 Subject: Add hxx extension for headers --- build2/cxx/init | 37 ------------------------------ build2/cxx/init.cxx | 14 ++++++------ build2/cxx/init.hxx | 37 ++++++++++++++++++++++++++++++ build2/cxx/target | 63 --------------------------------------------------- build2/cxx/target.cxx | 2 +- build2/cxx/target.hxx | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 108 insertions(+), 108 deletions(-) delete mode 100644 build2/cxx/init create mode 100644 build2/cxx/init.hxx delete mode 100644 build2/cxx/target create mode 100644 build2/cxx/target.hxx (limited to 'build2/cxx') diff --git a/build2/cxx/init b/build2/cxx/init deleted file mode 100644 index 78798b9..0000000 --- a/build2/cxx/init +++ /dev/null @@ -1,37 +0,0 @@ -// file : build2/cxx/init -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BUILD2_CXX_INIT -#define BUILD2_CXX_INIT - -#include -#include - -#include - -namespace build2 -{ - namespace cxx - { - bool - config_init (scope&, - scope&, - const location&, - unique_ptr&, - bool, - bool, - const variable_map&); - - bool - init (scope&, - scope&, - const location&, - unique_ptr&, - bool, - bool, - const variable_map&); - } -} - -#endif // BUILD2_CXX_INIT diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index f76779b..c74a077 100644 --- a/build2/cxx/init.cxx +++ b/build2/cxx/init.cxx @@ -2,16 +2,16 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include +#include -#include -#include -#include +#include +#include +#include -#include -#include +#include +#include -#include +#include using namespace std; using namespace butl; diff --git a/build2/cxx/init.hxx b/build2/cxx/init.hxx new file mode 100644 index 0000000..5ba4041 --- /dev/null +++ b/build2/cxx/init.hxx @@ -0,0 +1,37 @@ +// file : build2/cxx/init.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_CXX_INIT_HXX +#define BUILD2_CXX_INIT_HXX + +#include +#include + +#include + +namespace build2 +{ + namespace cxx + { + bool + config_init (scope&, + scope&, + const location&, + unique_ptr&, + bool, + bool, + const variable_map&); + + bool + init (scope&, + scope&, + const location&, + unique_ptr&, + bool, + bool, + const variable_map&); + } +} + +#endif // BUILD2_CXX_INIT_HXX diff --git a/build2/cxx/target b/build2/cxx/target deleted file mode 100644 index 6a63060..0000000 --- a/build2/cxx/target +++ /dev/null @@ -1,63 +0,0 @@ -// file : build2/cxx/target -*- C++ -*- -// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BUILD2_CXX_TARGET -#define BUILD2_CXX_TARGET - -#include -#include - -#include -#include - -namespace build2 -{ - namespace cxx - { - using cc::h; - using cc::c; - - class hxx: public file - { - public: - using file::file; - - public: - static const target_type static_type; - virtual const target_type& dynamic_type () const {return static_type;} - }; - - class ixx: public file - { - public: - using file::file; - - public: - static const target_type static_type; - virtual const target_type& dynamic_type () const {return static_type;} - }; - - class txx: public file - { - public: - using file::file; - - public: - static const target_type static_type; - virtual const target_type& dynamic_type () const {return static_type;} - }; - - class cxx: public cc::cc - { - public: - using cc::cc; - - public: - static const target_type static_type; - virtual const target_type& dynamic_type () const {return static_type;} - }; - } -} - -#endif // BUILD2_CXX_TARGET diff --git a/build2/cxx/target.cxx b/build2/cxx/target.cxx index 8955cb2..7fb9971 100644 --- a/build2/cxx/target.cxx +++ b/build2/cxx/target.cxx @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include +#include using namespace std; diff --git a/build2/cxx/target.hxx b/build2/cxx/target.hxx new file mode 100644 index 0000000..4dd93e3 --- /dev/null +++ b/build2/cxx/target.hxx @@ -0,0 +1,63 @@ +// file : build2/cxx/target.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_CXX_TARGET_HXX +#define BUILD2_CXX_TARGET_HXX + +#include +#include + +#include +#include + +namespace build2 +{ + namespace cxx + { + using cc::h; + using cc::c; + + class hxx: public file + { + public: + using file::file; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + + class ixx: public file + { + public: + using file::file; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + + class txx: public file + { + public: + using file::file; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + + class cxx: public cc::cc + { + public: + using cc::cc; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + } +} + +#endif // BUILD2_CXX_TARGET_HXX -- cgit v1.1