forked from linuxdeploy/linuxdeploy-plugin-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.h
More file actions
53 lines (37 loc) · 1.18 KB
/
util.h
File metadata and controls
53 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
// system includes
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <tuple>
#include <vector>
// library includes
#include <args.hxx>
typedef struct {
bool success;
int retcode;
std::string stdoutOutput;
std::string stderrOutput;
} procOutput;
procOutput check_command(const std::vector<std::string> &args);
template<typename Iter>
std::string join(Iter beg, Iter end) {
std::stringstream rv;
if (beg != end) {
rv << *beg;
for_each(++beg, end, [&rv](const std::string &s) {
rv << " " << s;
});
}
return rv.str();
}
std::map<std::string, std::string> queryQmake(const std::filesystem::path& qmakePath);
std::filesystem::path findQmake();
bool pathContainsFile(std::filesystem::path dir, std::filesystem::path file);
std::string join(const std::vector<std::string> &list);
std::string join(const std::set<std::string> &list);
bool strStartsWith(const std::string &str, const std::string &prefix);
bool strEndsWith(const std::string &str, const std::string &suffix);
bool isQtDebugSymbolFile(const std::string& filename);
bool isQtDebugSymbolFile(const std::filesystem::path& path);