bool compile_deps()

in include/poac/subcmd/build.hpp [168:196]


        bool compile_deps(
                const YAML::Node& node,
                const std::string& name,
                const boost::filesystem::path& deps_path,
                const bool verbose)
        {
            namespace exception = core::exception;

            // depsのビルド時はbinaryは不要.必要になる可能性があるのはlibraryのみ
            if (io::file::yaml::get(node, "build", "lib")) {
                stroite::builder bs(deps_path);

                bs.configure_compile(false, verbose);
                if (!bs.compile_conf.source_files.empty()) {
                    std::cout << io::cli::to_status(name) << std::endl;

                    if (const auto obj_files_path = bs._compile()) {
                        handle_generate_lib(bs, *obj_files_path, verbose);
                    }
                    else { // Compile failure
                        throw exception::error("\nCompile error.");
                    }
                    std::cout << std::endl;
                }

                return true;
            }
            return false;
        }