forked from microsoft/Microsoft-3D-Movie-Maker
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into new-x64
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# escape=` | ||
|
||
FROM mcr.microsoft.com/windows/servercore:ltsc2019 | ||
|
||
ADD https://aka.ms/vs/17/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe | ||
|
||
RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache ` | ||
--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` | ||
--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 0s | ||
|
||
RUN rmdir /S /Q C:\\TEMP | ||
|
||
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin" | ||
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin" | ||
|
||
SHELL ["powershell"] | ||
|
||
RUN 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')) | ||
|
||
RUN Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | ||
RUN Install-Module -Name VCVars -Force | ||
RUN pushvc (invoke-vcvars -TargetArch x86 -HostArch AMD64) | ||
RUN choco install ninja -y | ||
|
||
ENTRYPOINT [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "cmd.exe" ] |
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,15 @@ | ||
version: "3.9" | ||
services: | ||
3dmmforever-build: | ||
image: 3dmmforever-build | ||
container_name: 3dmmforever-build | ||
build: . | ||
volumes: | ||
- .:C:\3d | ||
working_dir: C:\3d | ||
command: > | ||
C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat && | ||
cmake --preset x86:msvc:debug && | ||
cmake --build build && | ||
cmake --install build | ||