string Builder::run_pkgconfig(const string &pkg, const string &what)
{
- vector<string> argv;
+ ExternalTask::Arguments argv;
argv.push_back("pkg-config");
if(what=="cflags" || what=="libs")
argv.push_back("--"+what);
IGNORE
};
+ typedef std::vector<std::string> Arguments;
+
private:
- std::vector<std::string> argv;
+ Arguments argv;
Msp::FS::Path work_dir;
int pid;
int exit_code;
std::string output;
public:
- ExternalTask(const std::vector<std::string> &, const Msp::FS::Path &);
+ ExternalTask(const Arguments &, const Msp::FS::Path &);
virtual ~ExternalTask();
virtual std::string get_command() const;
const ObjectFile &object = dynamic_cast<const ObjectFile &>(target);
const Component &comp = object.get_component();
- vector<string> argv;
+ ExternalTask::Arguments argv;
argv.push_back(name);
argv.push_back("-c");