-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsw.h
More file actions
28 lines (26 loc) · 810 Bytes
/
sw.h
File metadata and controls
28 lines (26 loc) · 810 Bytes
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
struct sw_build {
void build(solution &s) {
auto &lib = s.add<native_library_target>("sw.lib");
lib += "src/.*\\.h"_rdir;
lib.public_ += "src"_idir;
if (lib.is<os::windows>()) {
lib += "advapi32.lib"_slib;
lib += "ole32.lib"_slib;
lib += "OleAut32.lib"_slib;
}
if (lib.is<os::macos>()) {
// for now
lib.public_ += "/usr/local/opt/fmt/include"_idir; // github ci
lib.public_ += "/opt/homebrew/include"_idir; // brew
}
auto &exe = s.add<executable_target>("sw");
exe += "src/sw/main.cpp";
exe += lib;
/*if (tgt.is<cpp_compiler::msvc>()) {
}
{
//s.add<test>();
//s.add<test_command>();
}*/
}
};