forked from doodlum/skyrim-community-shaders
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,489 additions
and
1,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[submodule "extern/CommonLibSSE-NG"] | ||
path = extern/CommonLibSSE-NG | ||
url = https://github.com/alandtse/CommonLibVR.git | ||
[submodule "extern/NVAPI"] | ||
path = extern/NVAPI | ||
url = https://github.com/NVIDIA/nvapi.git | ||
|
||
[submodule "extern/Streamline"] | ||
path = extern/Streamline | ||
url = https://github.com/FlayaN/Streamline.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS base | ||
SHELL ["cmd", "/S", "/C"] | ||
|
||
RUN powershell -NoProfile -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; \ | ||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \ | ||
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); \ | ||
choco install curl git 7zip -y; \ | ||
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y" | ||
|
||
RUN \ | ||
curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe \ | ||
&& (start /w vs_buildtools.exe --quiet --wait --norestart --nocache \ | ||
--installPath "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2022\\BuildTools" \ | ||
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \ | ||
--add Microsoft.VisualStudio.Component.Windows11SDK.26100 \ | ||
--remove Microsoft.VisualStudio.Component.Windows10SDK.10240 \ | ||
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 \ | ||
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 \ | ||
--remove Microsoft.VisualStudio.Component.Windows81SDK \ | ||
|| IF "%ERRORLEVEL%"=="3010" EXIT 0) \ | ||
&& del /q vs_buildtools.exe | ||
|
||
RUN git clone https://github.com/microsoft/vcpkg.git C:/vcpkg && \ | ||
cd C:/vcpkg && \ | ||
bootstrap-vcpkg.bat | ||
|
||
RUN setx /M VCPKG_ROOT "C:/vcpkg" && mkdir C:\skyrim-community-shaders | ||
|
||
WORKDIR C:/skyrim-community-shaders | ||
|
||
ENTRYPOINT ["powershell", "-File", "C:/skyrim-community-shaders/containerbuild.ps1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(Streamline INTERFACE) | ||
|
||
target_include_directories( | ||
Streamline INTERFACE ${CMAKE_SOURCE_DIR}/extern/Streamline/include) | ||
|
||
if(MSVC) | ||
target_compile_options(Streamline INTERFACE /wd5103) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
param ( | ||
[string]$preset = "ALL" # Default value for preset is "ALL" | ||
) | ||
|
||
Write-Host "Starting build..." | ||
|
||
# Setup | ||
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 | ||
|
||
if (-Not (Test-Path -Path "CMakeUserPresets.json")) { | ||
Copy-Item -Path "CMakeUserPresets.json.template" -Destination "CMakeUserPresets.json" | ||
(Get-Content -Path "CMakeUserPresets.json") -replace 'F:/MySkyrimModpack/mods/CommunityShaders;F:/SteamLibrary/steamapps/common/SkyrimVR/Data;F:/SteamLibrary/steamapps/common/Skyrim Special Edition/Data', 'C:/skyrim-community-shaders/build' | Set-Content -Path "CMakeUserPresets.json" | ||
Write-Host "CMakeUserPresets.json created and modified." | ||
} else { | ||
Write-Host "CMakeUserPresets.json already exists. No action taken." | ||
} | ||
|
||
# Generate | ||
cmake -S . --preset=$preset --check-stamp-file build/$preset/CMakeFiles/generate.stamp | ||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "CMake configuration failed." | ||
exit 1 | ||
} | ||
|
||
# Build | ||
cmake --build build/$preset --config Release | ||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "Build failed." | ||
exit 1 | ||
} | ||
|
||
Write-Host "Build completed successfully." |
Submodule NVAPI
deleted from
3a83ef
Submodule Streamline
added at
f465f4
Oops, something went wrong.