diff --git a/Minecraft.Client/Common/Buildsteps/4JLibs.ps1 b/Minecraft.Client/Common/Buildsteps/4JLibs.ps1
index a9858ff2..032cf845 100644
--- a/Minecraft.Client/Common/Buildsteps/4JLibs.ps1
+++ b/Minecraft.Client/Common/Buildsteps/4JLibs.ps1
@@ -4,20 +4,31 @@ param(
[string]$Configuration
)
+if ($ProjectDir -match "Minecraft.World") {
+ $BaseDir = "$ProjectDir..\Minecraft.Client\"
+} elseif ($ProjectDir -match "Minecraft.Client") {
+ $BaseDir = $ProjectDir
+} else {
+ Write-Host "4JLibs: Unknown project directory: '$ProjectDir'"
+ exit 1
+}
+
switch ($Platform) {
- "x64" { $LibsDir = Join-Path $ProjectDir "Windows64\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Windows64" }
- "Durango" { $LibsDir = Join-Path $ProjectDir "Durango\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Durango" }
- "Xbox 360" { $LibsDir = Join-Path $ProjectDir "Xbox\4JLibs\"; $ExpectedCount = 5; $PlatformName = "Xbox" }
- "PS3" { $LibsDir = Join-Path $ProjectDir "PS3\4JLibs\"; $ExpectedCount = 4; $PlatformName = "PS3" }
- "Orbis" { $LibsDir = Join-Path $ProjectDir "Orbis\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Orbis" }
- "PSVita" { $LibsDir = Join-Path $ProjectDir "PSVita\4JLibs\"; $ExpectedCount = 4; $PlatformName = "PSVita" }
+ "x64" { $LibsDir = Join-Path $BaseDir "Windows64\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Windows64" }
+ "Durango" { $LibsDir = Join-Path $BaseDir "Durango\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Durango" }
+ "Xbox 360" { $LibsDir = Join-Path $BaseDir "Xbox\4JLibs\"; $ExpectedCount = 5; $PlatformName = "Xbox" }
+ "PS3" { $LibsDir = Join-Path $BaseDir "PS3\4JLibs\"; $ExpectedCount = 4; $PlatformName = "PS3" }
+ "Orbis" { $LibsDir = Join-Path $BaseDir "Orbis\4JLibs\"; $ExpectedCount = 4; $PlatformName = "Orbis" }
+ "PSVita" { $LibsDir = Join-Path $BaseDir "PSVita\4JLibs\"; $ExpectedCount = 4; $PlatformName = "PSVita" }
default { Write-Host "4JLibs: Unknown platform: '$Platform'"; exit 1 }
}
if ($Configuration -match "ContentPackage" -or $Configuration -match "Release") {
$BuildConfig = "Release"
+} elseif ($Configuration -match "Debug") {
+ $BuildConfig = "Debug"
} else {
- Write-Host "4JLibs: Configuration did not match Release or ContentPackage, defaulting to Debug"
+ Write-Host "4JLibs: Configuration did not match any known patterns, defaulting to Debug"
$BuildConfig = "Debug"
}
diff --git a/Minecraft.Client/Common/Buildsteps/Contents/Windows64/Effects.msscmp b/Minecraft.Client/Common/Buildsteps/Contents/Windows64/Effects.msscmp
deleted file mode 100644
index 8eb4b915..00000000
Binary files a/Minecraft.Client/Common/Buildsteps/Contents/Windows64/Effects.msscmp and /dev/null differ
diff --git a/Minecraft.Client/Common/Buildsteps/Windows64-postbuild.ps1 b/Minecraft.Client/Common/Buildsteps/Windows64-postbuild.ps1
index 69eb9ff0..fbac46ce 100644
--- a/Minecraft.Client/Common/Buildsteps/Windows64-postbuild.ps1
+++ b/Minecraft.Client/Common/Buildsteps/Windows64-postbuild.ps1
@@ -26,7 +26,7 @@ $folderCopies = @(
@{ Source = "Windows64Media"; Dest = "Windows64Media" },
#@{ Source = "PSVita\Tutorial"; Dest = "Windows64Media\Tutorial" }, # str1k3r - doesnt even work bru
@{ Source = "Windows64\Sound"; Dest = "Windows64Media\Sound" },
- @{ Source = "Common\Postbuilds\Contents\Windows64\redist64"; Dest = "redist64" }
+ @{ Source = Join-Path $PSScriptRoot "Contents\Windows64\redist64"; Dest = "redist64" }
)
foreach ($copy in $folderCopies) {
@@ -39,17 +39,18 @@ foreach ($copy in $folderCopies) {
}
$fileCopies = @(
- @{ Source = "Common\Postbuilds\Contents\Windows64\Effects.msscmp"; Dest = "Effects.msscmp" },
- @{ Source = "Common\Postbuilds\Contents\Windows64\iggy_w64.dll"; Dest = "iggy_w64.dll" },
- @{ Source = "Common\Postbuilds\Contents\Windows64\mss64.dll"; Dest = "mss64.dll" }
+ @{ Source = Join-Path $PSScriptRoot "Contents\Windows64\iggy_w64.dll"; Dest = "iggy_w64.dll" },
+ @{ Source = Join-Path $PSScriptRoot "Contents\Windows64\mss64.dll"; Dest = "mss64.dll" }
)
foreach ($copy in $fileCopies) {
- $src = Join-Path $ProjectDir $copy.Source
+ $src = $copy.Source
$dst = Join-Path $OutDir $copy.Dest
if (Test-Path $src) {
Copy-Item -Path $src -Destination $dst -Force
- }
+ } else {
+ Write-Host "Windows64 Postbuild: source not found, skipping: $src"
+ }
}
$deleteDirs = @(
diff --git a/Minecraft.Client/Minecraft.Client.vcxproj b/Minecraft.Client/Minecraft.Client.vcxproj
index b02657a8..6c17c3cd 100644
--- a/Minecraft.Client/Minecraft.Client.vcxproj
+++ b/Minecraft.Client/Minecraft.Client.vcxproj
@@ -501,7 +501,7 @@
- true
+ false
$(ProjectDir)\..\Minecraft.World\x64headers;$(ProjectDir)\Windows64\Sentient\Include;$(IncludePath)
@@ -2315,7 +2315,7 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CUXML
Designer
-
+
diff --git a/Minecraft.Client/Minecraft.Client.vcxproj.filters b/Minecraft.Client/Minecraft.Client.vcxproj.filters
index 4e72f61f..cf7295ec 100644
--- a/Minecraft.Client/Minecraft.Client.vcxproj.filters
+++ b/Minecraft.Client/Minecraft.Client.vcxproj.filters
@@ -726,6 +726,9 @@
{889a84db-3009-4a7c-8234-4bf93d412690}
+
+ {e5d64ee9-2601-46fd-9b18-254dae9cd85e}
+
@@ -884,13 +887,27 @@
PSVita\Iggy\gdraw
-
-
-
-
-
-
-
+
+ Buildsteps
+
+
+ Buildsteps
+
+
+ Buildsteps
+
+
+ Buildsteps
+
+
+ Buildsteps
+
+
+ Buildsteps
+
+
+ Buildsteps
+
diff --git a/Minecraft.Client/Windows64/4JLibs b/Minecraft.Client/Windows64/4JLibs
index d086428e..961be9d9 160000
--- a/Minecraft.Client/Windows64/4JLibs
+++ b/Minecraft.Client/Windows64/4JLibs
@@ -1 +1 @@
-Subproject commit d086428ecaf6225a89a85d4a184b7e24fcc7f135
+Subproject commit 961be9d9f781f5ae83d9c7b39c4219e6354f2666
diff --git a/Minecraft.World/Minecraft.World.vcxproj b/Minecraft.World/Minecraft.World.vcxproj
index eaa3ffaf..fa4b876e 100644
--- a/Minecraft.World/Minecraft.World.vcxproj
+++ b/Minecraft.World/Minecraft.World.vcxproj
@@ -819,17 +819,9 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
- Build 4JLibs
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
+
+
@@ -883,19 +875,11 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
- Build 4JLibs
+
+
@@ -1276,17 +1260,9 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
- Build 4JLibs
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
+
+
@@ -1312,17 +1288,9 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
- Build 4JLibs
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
+
+
@@ -1348,17 +1316,9 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
- Build 4JLibs
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
+
+
@@ -1384,17 +1344,9 @@
true
- if not exist "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\libs" (
- for %%C in (Debug Release) do (
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\4JLibs.sln" /p:Platform=Windows64 /p:Configuration=%%C /v:minimal
- if errorlevel 1 (
- echo 4JLibs build failed for %%C
- exit /b 1
- )
- )
- xcopy "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\Headers\Windows64" "$(SolutionDir)Minecraft.Client\Windows64\4JLibs\inc" /E /I /Y
-)
- Build 4JLibs
+ powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Minecraft.Client/Common/Buildsteps/4JLibs.ps1" -Platform "$(Platform)" -Configuration "$(Configuration)" -ProjectDir "$(ProjectDir)/"
+
+