summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-src/testbuilds/windows-shared-x64.dockerfile
blob: 8689b5db1b5f729ebec88434130b83023eec9124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM dockcross/windows-shared-x64:latest
ARG no_check=false
ARG no_install=false

RUN mkdir src
COPY CMakeLists.txt README COPYING.LIB ChangeLog src/
COPY CMakeScripts src/CMakeScripts
COPY bins src/bins
COPY docs src/docs
COPY test src/test
COPY SDL src/SDL
COPY zzipwrap src/zzipwrap
COPY zzip src/zzip

RUN { echo "[requires]" \
    ; echo "zlib/1.2.11" \
    ; echo "" \
    ; echo "[generators]" \
    ; echo "cmake_paths" \
    ; } > src/conanfile.txt

RUN mkdir src/build
RUN cd src/build && conan install ..
RUN cd src/build && cmake .. -DCMAKE_TOOLCHAIN_FILE=./conan_paths.cmake -DBUILD_STATIC_LIBS=OFF -DCMAKE_SYSTEM_NAME=Windows
RUN cd src/build && cmake --build .
# RUN $no_check || (cd src/build && make check)
# RUN $no_install || (cd src/build && make install)
RUN cd src/build && cmake --build . --target install