| 1 |
# Use sfcgal dependencies images |
| 2 |
FROM sfcgal/sfcgal-build-deps:windows-latest |
| 3 |
|
| 4 |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] |
| 5 |
|
| 6 |
WORKDIR "c:\SFCGAL" |
| 7 |
COPY src ./src |
| 8 |
COPY test ./test |
| 9 |
COPY sfcgalop ./sfcgalop |
| 10 |
COPY CMakeLists.txt SFCGALConfig.cmake.in sfcgal.pc.in sfcgal-config.in ./ |
| 11 |
|
| 12 |
RUN cmake -S . -B build \ |
| 13 |
-DCMAKE_BUILD_TYPE=Release \ |
| 14 |
-DSFCGAL_BUILD_TESTS=OFF \ |
| 15 |
-DCMAKE_TOOLCHAIN_FILE="\"$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake\"" \ |
| 16 |
-DVCPKG_TARGET_TRIPLET=x64-windows-release; \ |
| 17 |
cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORS |
| 18 |
|
| 19 |
# Restore the default Windows shell for correct batch processing. |
| 20 |
SHELL ["cmd", "/S", "/C"] |
| 21 |
|
| 22 |
ENTRYPOINT ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"] |