// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #include "externals_manual.h" #include #include "libctor.h" #include "settings.h" extern std::map external_includedir; extern std::map external_libdir; int resolv(const Settings& settings, const std::string& name, const ExternalManual& ext, Flags& flags) { flags = ext.flags; auto inc = external_includedir.find(name); if(inc != external_includedir.end()) { flags.cflags.push_back("-I" + inc->second); flags.cxxflags.push_back("-I" + inc->second); } auto lib = external_libdir.find(name); if(lib != external_libdir.end()) { flags.ldflags.push_back("-L" + lib->second); } return 0; }