From 10fd2aface4486fc7f873dd2b54a1c2073c0b434 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Dec 2015 14:46:45 +0200 Subject: Reimplement define as dynamic derivation rather than alias New syntax: define cli: file The rationale is we need to be able to assign the file extension (using type/pattern-specific variables). And if it is an alias, we will assign it to the original target type. Note that we could still support aliases if we need to. Will need to bring back the id member in target_type that would normally point to itself but for an alias would point to the origin. --- build/cli/target.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'build/cli/target.cxx') diff --git a/build/cli/target.cxx b/build/cli/target.cxx index 0666335..a480633 100644 --- a/build/cli/target.cxx +++ b/build/cli/target.cxx @@ -18,14 +18,12 @@ namespace build constexpr const char cli_ext[] = "cli"; const target_type cli::static_type { - typeid (cli), "cli", &file::static_type, &target_factory, &target_extension_fix, &search_file, - false, - nullptr + false }; // cli.cxx @@ -66,14 +64,12 @@ namespace build const target_type cli_cxx::static_type { - typeid (cli_cxx), "cli.cxx", &mtime_target::static_type, &cli_cxx_factory, nullptr, &search_target, - true, // "See through" default iteration mode. - nullptr + true // "See through" default iteration mode. }; } } -- cgit v1.1