Skip to content

Commit 7153617

Browse files
committed
Use correct API.
1 parent f10d667 commit 7153617

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

sw.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ void configure(Build &s)
3333
s.loadModule("utils/cc/win2android.cpp").call<void(Solution&)>("configure", s);
3434
#endif
3535

36-
//s.getSettings().Native.ConfigurationType = ConfigurationType::ReleaseWithDebugInformation;
37-
//s.getSettings().Native.CompilerType = CompilerType::ClangCl;
38-
//s.getSettings().Native.CompilerType = CompilerType::Clang;
36+
//s.getBuildSettings().Native.ConfigurationType = ConfigurationType::ReleaseWithDebugInformation;
37+
//s.getBuildSettings().Native.CompilerType = CompilerType::ClangCl;
38+
//s.getBuildSettings().Native.CompilerType = CompilerType::Clang;
3939
}
4040

4141
void build(Solution &s)
@@ -57,12 +57,12 @@ void build(Solution &s)
5757
"org.sw.demo.boost.property_tree"_dep,
5858
"org.sw.demo.boost.stacktrace"_dep;
5959
support.ApiName = "SW_SUPPORT_API";
60-
if (support.getSettings().TargetOS.Type == OSType::Windows)
60+
if (support.getBuildSettings().TargetOS.Type == OSType::Windows)
6161
{
6262
support.Protected += "_CRT_SECURE_NO_WARNINGS"_d;
6363
support.Public += "UNICODE"_d;
6464
}
65-
if (support.getSettings().TargetOS.Type == OSType::Macos)
65+
if (support.getBuildSettings().TargetOS.Type == OSType::Macos)
6666
support.Public += "BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED"_def;
6767
}
6868

@@ -101,7 +101,7 @@ void build(Solution &s)
101101
;
102102

103103
manager.Public -= "pub.egorpugin.primitives.win32helpers-master"_dep;
104-
if (manager.getSettings().TargetOS.Type == OSType::Windows)
104+
if (manager.getBuildSettings().TargetOS.Type == OSType::Windows)
105105
manager.Public += "pub.egorpugin.primitives.win32helpers-master"_dep;
106106

107107
manager += "src/sw/manager/.*"_rr;
@@ -174,7 +174,7 @@ void build(Solution &s)
174174
core.CPPVersion = CPPLanguageStandard::CPP17;
175175
core.Public += builder;
176176
core += "src/sw/core/.*"_rr;
177-
if (core.getSettings().TargetOS.Type == OSType::Windows)
177+
if (core.getBuildSettings().TargetOS.Type == OSType::Windows)
178178
core += "OleAut32.lib"_slib;
179179
}
180180

@@ -194,9 +194,9 @@ void build(Solution &s)
194194
gen_flex_bison("org.sw.demo.lexxmark.winflexbison-master"_dep, cpp_driver, "src/sw/driver/bazel/lexer.ll", "src/sw/driver/bazel/grammar.yy");
195195
if (cpp_driver.getCompilerType() == CompilerType::MSVC)
196196
cpp_driver.CompileOptions.push_back("-bigobj");
197-
if (cpp_driver.getSettings().TargetOS.Type == OSType::Windows)
197+
if (cpp_driver.getBuildSettings().TargetOS.Type == OSType::Windows)
198198
cpp_driver += "dbghelp.lib"_slib;
199-
//else if (s.getSettings().Native.CompilerType == CompilerType::GNU)
199+
//else if (s.getBuildSettings().Native.CompilerType == CompilerType::GNU)
200200
//cpp_driver.CompileOptions.push_back("-Wa,-mbig-obj");
201201
{
202202
auto c = cpp_driver.addCommand();
@@ -239,7 +239,7 @@ void build(Solution &s)
239239
embed("pub.egorpugin.primitives.tools.embedder-master"_dep, client, "src/sw/client/inserts/inserts.cpp.in");
240240
if (client.getCompilerType() == CompilerType::MSVC)
241241
client.CompileOptions.push_back("-bigobj");
242-
if (client.getSettings().TargetOS.Type == OSType::Linux)
242+
if (client.getBuildSettings().TargetOS.Type == OSType::Linux)
243243
{
244244
//client.getSelectedTool()->LinkOptions.push_back("-static-libstdc++");
245245
//client.getSelectedTool()->LinkOptions.push_back("-static-libgcc");
@@ -254,15 +254,15 @@ void build(Solution &s)
254254
c.c->always = true;
255255
}
256256

257-
if (client.getSettings().TargetOS.Type == OSType::Windows)
257+
if (client.getBuildSettings().TargetOS.Type == OSType::Windows)
258258
{
259259
auto &client = tools.addTarget<ExecutableTarget>("client");
260260
client += "src/sw/tools/client.cpp";
261261
client +=
262262
"org.sw.demo.boost.dll"_dep,
263263
"org.sw.demo.boost.filesystem"_dep,
264264
"user32.lib"_slib;
265-
if (client.getSettings().TargetOS.Type == OSType::Windows)
265+
if (client.getBuildSettings().TargetOS.Type == OSType::Windows)
266266
client.Public += "UNICODE"_d;
267267
}
268268
}

0 commit comments

Comments
 (0)