diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-31 18:42:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-31 18:44:07 +0200 |
commit | a84ff43b183181e0a12c6d5e31c1f366d39ce2fe (patch) | |
tree | 3dce54b64fd8e9917ed034a3e2c9e20f057eece4 /build2/pkgconfig/target.hxx | |
parent | 89f5bc3b423a1269a60ccca05174226c8de40357 (diff) |
Experimental (and probably broken) pkg-config generation support
Diffstat (limited to 'build2/pkgconfig/target.hxx')
-rw-r--r-- | build2/pkgconfig/target.hxx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/build2/pkgconfig/target.hxx b/build2/pkgconfig/target.hxx new file mode 100644 index 0000000..feb8d80 --- /dev/null +++ b/build2/pkgconfig/target.hxx @@ -0,0 +1,48 @@ +// file : build2/pkgconfig/target.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_PKGCONFIG_TARGET_HXX +#define BUILD2_PKGCONFIG_TARGET_HXX + +#include <build2/types.hxx> +#include <build2/utility.hxx> + +#include <build2/target.hxx> + +namespace build2 +{ + namespace pkgconfig + { + class pc: public file + { + public: + using file::file; + + public: + static const target_type static_type; + }; + + class pca: public pc // .static.pc + { + public: + using pc::pc; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + + class pcs: public pc // .shared.pc + { + public: + using pc::pc; + + public: + static const target_type static_type; + virtual const target_type& dynamic_type () const {return static_type;} + }; + } +} + +#endif // BUILD2_PKGCONFIG_TARGET_HXX |