// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #include #include #include namespace { ctor::build_configurations ctorConfigs(const ctor::settings& settings) { return { { .target = "world", .sources = { { "world.cc", ctor::source_type::generated }, }, }, { .target = "foo", .sources = { { "foo.cc", ctor::source_type::generated }, }, }, { .target = "this_is_unused", .sources = { {"hello.cc", ctor::output_file{"world.cc"}}, {"hello.cc", ctor::output_file{"foo.cc"}}, }, .function = [](const std::string& input, const std::string& output, const ctor::build_configuration& config, const ctor::settings& settings) { namespace fs = std::filesystem; std::cout << "Input: " << input << '\n'; std::cout << "Output: " << output << '\n'; fs::copy_file(input, output, fs::copy_options::overwrite_existing); return 0; } }, }; } } REG(ctorConfigs);