diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-29 09:25:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-29 09:25:52 +0200 |
commit | a8777a4aa67b1cf60d7053635d1a3edadca5779e (patch) | |
tree | b6aa0ddefbd060517deab90a939fa5df2f861499 /libbuild2/target.hxx | |
parent | 7eb5fa7d01a5ee352b65b6f08ec893abcf016096 (diff) |
Make sure we generate common pkg-config file for only liba{}/libs{}
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 1a7abfc..038552f 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -267,12 +267,18 @@ namespace build2 // enum class target_decl: uint8_t { - prereq_new, // Created from prerequisite (create_new_target()). - prereq_file, // Created from prerequisite/file (search_existing_file ()). - implied, // Target-spec variable assignment, implicitly-entered, etc. - real // Real dependency declaration. + prereq_new = 1, // Created from prerequisite (create_new_target()). + prereq_file, // Created from prerequisite/file (search_existing_file()). + implied, // Target-spec variable assignment, implicitly-entered, etc. + real // Real dependency declaration. }; + inline bool + operator>= (target_decl l, target_decl r) + { + return static_cast<uint8_t> (l) >= static_cast<uint8_t> (r); + } + class LIBBUILD2_SYMEXPORT target { public: |