mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
ide/Builders: OpenBSD support in CreateBuildMethods
git-svn-id: svn://ultimatepp.org/upp/trunk@14362 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9cc69ba3b7
commit
c254e1178b
2 changed files with 12 additions and 3 deletions
|
|
@ -96,14 +96,24 @@ void CreateBuildMethods()
|
|||
if(IsNull(LoadFile(bm)))
|
||||
SaveFile(bm, clang_bm);
|
||||
#else
|
||||
bool openbsd = ToLower(Sys("uname")).Find("openbsd") >= 0;
|
||||
auto Fix = [=](const char *s) {
|
||||
String r = s;
|
||||
if(openbsd) {
|
||||
r.Replace("INCLUDE = \"\";", "INCLUDE = \"/usr/local/include\";");
|
||||
r.Replace("LIB = \"\";", "LIB = \"/usr/local/lib\";");
|
||||
}
|
||||
return r;
|
||||
};
|
||||
|
||||
String bm = ConfigFile("GCC.bm");
|
||||
if(IsNull(LoadFile(bm)))
|
||||
SaveFile(bm, gcc_bm);
|
||||
SaveFile(bm, Fix(gcc_bm));
|
||||
|
||||
if(Sys("clang --version").GetCount()) {
|
||||
String bm = ConfigFile("CLANG.bm");
|
||||
if(IsNull(LoadFile(bm)))
|
||||
SaveFile(bm, clang_bm);
|
||||
SaveFile(bm, Fix(clang_bm));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ String GetAndroidSDKPath()
|
|||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
|
||||
#ifdef PLATFORM_POSIX
|
||||
setlinebuf(stdout);
|
||||
CreateBuildMethods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue