| fs::path compile_file_plan::get_object_file_path(const build_env& env) const noexcept { | fs::path compile_file_plan::get_object_file_path(const build_env& env) const noexcept { | ||||
| auto relpath = fs::relative(source.path, source.basis_path); | auto relpath = fs::relative(source.path, source.basis_path); | ||||
| auto ret = env.output_root / subdir / relpath; | |||||
| auto ret = env.output_root / subdir / relpath; | |||||
| ret.replace_filename(relpath.filename().string() + env.toolchain.object_suffix()); | ret.replace_filename(relpath.filename().string() + env.toolchain.object_suffix()); | ||||
| return ret; | return ret; | ||||
| } | } |
| man.dependencies.end()); | man.dependencies.end()); | ||||
| }); | }); | ||||
| auto plan = dds::create_deps_build_plan(deps); | |||||
| auto tc = tc_filepath.get_toolchain(); | |||||
| auto bdir = build_dir.Get(); | |||||
| auto plan = dds::create_deps_build_plan(deps); | |||||
| auto tc = tc_filepath.get_toolchain(); | |||||
| auto bdir = build_dir.Get(); | |||||
| dds::build_env env{std::move(tc), bdir}; | dds::build_env env{std::move(tc), bdir}; | ||||
| plan.compile_all(env, 6); | plan.compile_all(env, 6); | ||||
| plan.archive_all(env, 6); | plan.archive_all(env, 6); |