Skip to content

Commit b2eae1b

Browse files
authored
Merge pull request #122 from ModOrganizer2/dev/clean-and-fix
Cleaning and improvements
2 parents b31d41b + 13ed5bc commit b2eae1b

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

bootstrap.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
param([switch]$Verbose)
1+
param(
2+
[switch]
3+
$Verbose,
4+
[ValidateSet("Debug", "RelWithDebInfo", "Release")]
5+
[string]
6+
$Config = "Release"
7+
)
28

39
$root = $PSScriptRoot
410
if (!$root) {
@@ -23,7 +29,7 @@ if (! $installationPath) {
2329
$opts = ""
2430
$opts += " $root\build\mob.sln"
2531
$opts += " -m"
26-
$opts += " -p:Configuration=Release"
32+
$opts += " -p:Configuration=${Config}"
2733
$opts += " -noLogo"
2834
$opts += " -p:UseMultiToolTask=true"
2935
$opts += " -p:EnforceProcessCountAcrossBuilds=true"
@@ -45,5 +51,5 @@ if (! $?) {
4551
exit $LastExitCode
4652
}
4753

48-
Copy-Item "$root\build\src\Release\mob.exe" "$root\mob.exe"
54+
Copy-Item "$root\build\src\${Config}\mob.exe" "$root\mob.exe"
4955
Write-Output "run ``.\mob -d prefix/path build`` to start building"

patches/ncc/sources/publish.bat.patch

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/core/conf.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,13 @@ namespace mob {
378378

379379
MOB_ASSERT(!tasks.empty());
380380

381-
for (auto& t : tasks)
381+
for (auto& t : tasks) {
382+
if (t->name() != task &&
383+
details::find_string_for_task(t->name(), key)) {
384+
continue;
385+
}
382386
details::set_string_for_task(t->name(), key, value);
387+
}
383388
}
384389
else {
385390
// global task option

src/tasks/pyqt.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ namespace mob::tasks {
3737

3838
url source_url()
3939
{
40-
return "https://pypi.io/packages/source/P/PyQt6/"
41-
"PyQt6-" +
42-
pyqt::version() + ".tar.gz";
40+
const auto version = pyqt::version();
41+
std::string base = "https://pypi.io/packages/source/P/PyQt6/";
42+
if (version.find("dev") != std::string::npos) {
43+
base = "https://riverbankcomputing.com/pypi/packages/PyQt6/";
44+
}
45+
return base + "PyQt6-" + pyqt::version() + ".tar.gz";
4346
}
4447

4548
url prebuilt_url()

src/tools/nmake.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ namespace mob {
5656
if (f.line.find("Copyright (C) Microsoft Corporation.") !=
5757
std::string::npos)
5858
f.lv = context::level::trace;
59+
if (f.line.find("Microsoft (R) Program Maintenance Utility") !=
60+
std::string::npos)
61+
f.lv = context::level::trace;
5962
})
6063
.arg("/C", process::log_quiet) // silent
6164
.arg("/S", process::log_quiet) // silent

0 commit comments

Comments
 (0)