aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/target.cxx')
-rw-r--r--build2/cc/target.cxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/build2/cc/target.cxx b/build2/cc/target.cxx
index 5fbf67d..6f8d541 100644
--- a/build2/cc/target.cxx
+++ b/build2/cc/target.cxx
@@ -49,5 +49,45 @@ namespace build2
&file_search,
false
};
+
+ const target_type pc::static_type
+ {
+ "pc",
+ &file::static_type,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ &target_search,
+ false
+ };
+
+ extern const char pca_ext[] = "static.pc"; // VC14 rejects constexpr.
+
+ const target_type pca::static_type
+ {
+ "pca",
+ &pc::static_type,
+ &file_factory<pca, pca_ext>,
+ &target_extension_fix<pca_ext>,
+ &target_pattern_fix<pca_ext>,
+ &target_print_0_ext_verb, // Fixed extension, no use printing.
+ &file_search,
+ false
+ };
+
+ extern const char pcs_ext[] = "shared.pc"; // VC14 rejects constexpr.
+
+ const target_type pcs::static_type
+ {
+ "pcs",
+ &pc::static_type,
+ &file_factory<pcs, pcs_ext>,
+ &target_extension_fix<pcs_ext>,
+ &target_pattern_fix<pcs_ext>,
+ &target_print_0_ext_verb, // Fixed extension, no use printing.
+ &file_search,
+ false
+ };
}
}