File: Dockerfile.windows

package info (click to toggle)
sfcgal 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,348 kB
  • sloc: cpp: 44,959; sh: 198; makefile: 33; ansic: 24; python: 23
file content (20 lines) | stat: -rw-r--r-- 729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use sfcgal dependencies images
FROM sfcgal/sfcgal-build-deps:windows-latest

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

WORKDIR "c:\SFCGAL"
COPY src ./src
COPY test ./test
COPY CMakeLists.txt SFCGALConfig.cmake.in sfcgal.pc.in sfcgal-config.in ./

RUN cmake -S . -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DSFCGAL_BUILD_TESTS=OFF \
    -DCMAKE_TOOLCHAIN_FILE="\"$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake\""; \
    cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORS

# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]

ENTRYPOINT ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]