Merge pull request #305 from sfo/linking_option

Windows-Images with dynamic linking
This commit is contained in:
Matt McCormick 2019-03-02 15:58:36 -05:00 committed by GitHub
commit b5a13fa4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 278 additions and 75 deletions

View File

@ -306,66 +306,126 @@ jobs:
- save_cache:
key: manylinux-x86-assets-{{ .Revision }}
paths: ~/docker/manylinux-x86.tar
windows-x64:
windows-static-x64:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-x64 build
name: windows-static-x64 build
command: |
docker load -i ~/docker/base.tar
make windows-x64
tagged=$(docker images -q -f 'since=dockcross/windows-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x64)
docker save -o ~/docker/windows-x64.tar dockcross/windows-x64:latest $tagged
make windows-static-x64
tagged=$(docker images -q -f 'since=dockcross/windows-static-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x64)
docker save -o ~/docker/windows-static-x64.tar dockcross/windows-static-x64:latest $tagged
- run:
name: windows-x64 test
name: windows-static-x64 test
command: |
make windows-x64.test
make windows-static-x64.test
- save_cache:
key: windows-x64-assets-{{ .Revision }}
paths: ~/docker/windows-x64.tar
windows-x64-posix:
key: windows-static-x64-assets-{{ .Revision }}
paths: ~/docker/windows-static-x64.tar
windows-static-x64-posix:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-x64-posix build
name: windows-static-x64-posix build
command: |
docker load -i ~/docker/base.tar
make windows-x64-posix
tagged=$(docker images -q -f 'since=dockcross/windows-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x64-posix)
docker save -o ~/docker/windows-x64-posix.tar dockcross/windows-x64-posix:latest $tagged
make windows-static-x64-posix
tagged=$(docker images -q -f 'since=dockcross/windows-static-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x64-posix)
docker save -o ~/docker/windows-static-x64-posix.tar dockcross/windows-static-x64-posix:latest $tagged
- run:
name: windows-x64-posix test
name: windows-static-x64-posix test
command: |
make windows-x64-posix.test
make windows-static-x64-posix.test
- save_cache:
key: windows-x64-posix-assets-{{ .Revision }}
paths: ~/docker/windows-x64-posix.tar
windows-x86:
key: windows-static-x64-posix-assets-{{ .Revision }}
paths: ~/docker/windows-static-x64-posix.tar
windows-static-x86:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-x86 build
name: windows-static-x86 build
command: |
docker load -i ~/docker/base.tar
make windows-x86
tagged=$(docker images -q -f 'since=dockcross/windows-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x86)
docker save -o ~/docker/windows-x86.tar dockcross/windows-x86:latest $tagged
make windows-static-x86
tagged=$(docker images -q -f 'since=dockcross/windows-static-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x86)
docker save -o ~/docker/windows-static-x86.tar dockcross/windows-static-x86:latest $tagged
- run:
name: windows-x86 test
name: windows-static-x86 test
command: |
make windows-x86.test
make windows-static-x86.test
- save_cache:
key: windows-x86-assets-{{ .Revision }}
paths: ~/docker/windows-x86.tar
key: windows-static-x86-assets-{{ .Revision }}
paths: ~/docker/windows-static-x86.tar
windows-shared-x64:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-shared-x64 build
command: |
docker load -i ~/docker/base.tar
make windows-shared-x64
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x64)
docker save -o ~/docker/windows-shared-x64.tar dockcross/windows-shared-x64:latest $tagged
- run:
name: windows-shared-x64 test
command: |
make windows-shared-x64.test
- save_cache:
key: windows-shared-x64-assets-{{ .Revision }}
paths: ~/docker/windows-shared-x64.tar
windows-shared-x64-posix:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-shared-x64-posix build
command: |
docker load -i ~/docker/base.tar
make windows-shared-x64-posix
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x64-posix)
docker save -o ~/docker/windows-shared-x64-posix.tar dockcross/windows-shared-x64-posix:latest $tagged
- run:
name: windows-shared-x64-posix test
command: |
make windows-shared-x64-posix.test
- save_cache:
key: windows-shared-x64-posix-assets-{{ .Revision }}
paths: ~/docker/windows-shared-x64-posix.tar
windows-shared-x86:
<<: *build-settings
steps:
- restore_cache:
key: base-assets-{{ .Revision }}
- run:
no_output_timeout: 1.5h
name: windows-shared-x86 build
command: |
docker load -i ~/docker/base.tar
make windows-shared-x86
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x86)
docker save -o ~/docker/windows-shared-x86.tar dockcross/windows-shared-x86:latest $tagged
- run:
name: windows-shared-x86 test
command: |
make windows-shared-x86.test
- save_cache:
key: windows-shared-x86-assets-{{ .Revision }}
paths: ~/docker/windows-shared-x86.tar
deploy:
<<: *build-settings
steps:
@ -550,39 +610,75 @@ jobs:
docker push $tagged
fi
- restore_cache:
key: windows-x64-assets-{{ .Revision }}
key: windows-static-x64-assets-{{ .Revision }}
- deploy:
name: Deploy windows-x64
name: Deploy windows-static-x64
command: |
docker load -i ~/docker/windows-x64.tar
docker load -i ~/docker/windows-static-x64.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-x64:latest
tagged=$(docker images -q -f 'since=dockcross/windows-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x64)
docker push dockcross/windows-static-x64:latest
tagged=$(docker images -q -f 'since=dockcross/windows-static-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x64)
docker push $tagged
fi
- restore_cache:
key: windows-x64-posix-assets-{{ .Revision }}
key: windows-static-x64-posix-assets-{{ .Revision }}
- deploy:
name: Deploy windows-x64-posix
name: Deploy windows-static-x64-posix
command: |
docker load -i ~/docker/windows-x64-posix.tar
docker load -i ~/docker/windows-static-x64-posix.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-x64-posix:latest
tagged=$(docker images -q -f 'since=dockcross/windows-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x64-posix)
docker push dockcross/windows-static-x64-posix:latest
tagged=$(docker images -q -f 'since=dockcross/windows-static-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x64-posix)
docker push $tagged
fi
- restore_cache:
key: windows-x86-assets-{{ .Revision }}
key: windows-static-x86-assets-{{ .Revision }}
- deploy:
name: Deploy windows-x86
name: Deploy windows-static-x86
command: |
docker load -i ~/docker/windows-x86.tar
docker load -i ~/docker/windows-static-x86.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-x86:latest
tagged=$(docker images -q -f 'since=dockcross/windows-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-x86)
docker push dockcross/windows-static-x86:latest
tagged=$(docker images -q -f 'since=dockcross/windows-static-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-static-x86)
docker push $tagged
fi
- restore_cache:
key: windows-shared-x64-assets-{{ .Revision }}
- deploy:
name: Deploy windows-shared-x64
command: |
docker load -i ~/docker/windows-shared-x64.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-shared-x64:latest
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x64)
docker push $tagged
fi
- restore_cache:
key: windows-shared-x64-posix-assets-{{ .Revision }}
- deploy:
name: Deploy windows-shared-x64-posix
command: |
docker load -i ~/docker/windows-shared-x64-posix.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-shared-x64-posix:latest
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x64-posix:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x64-posix)
docker push $tagged
fi
- restore_cache:
key: windows-shared-x86-assets-{{ .Revision }}
- deploy:
name: Deploy windows-shared-x86
command: |
docker load -i ~/docker/windows-shared-x86.tar
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push dockcross/windows-shared-x86:latest
tagged=$(docker images -q -f 'since=dockcross/windows-shared-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep windows-shared-x86)
docker push $tagged
fi
@ -635,13 +731,22 @@ workflows:
- manylinux-x86:
requires:
- base
- windows-x64:
- windows-static-x64:
requires:
- base
- windows-x64-posix:
- windows-static-x64-posix:
requires:
- base
- windows-x86:
- windows-static-x86:
requires:
- base
- windows-shared-x64:
requires:
- base
- windows-shared-x64-posix:
requires:
- base
- windows-shared-x86:
requires:
- base
- deploy:
@ -662,6 +767,9 @@ workflows:
- linux-x86
- manylinux-x64
- manylinux-x86
- windows-x64
- windows-x64-posix
- windows-x86
- windows-static-x64
- windows-static-x64-posix
- windows-static-x86
- windows-shared-x64
- windows-shared-x64-posix
- windows-shared-x86

View File

@ -13,10 +13,10 @@ ORG = dockcross
BIN = ./bin
# These images are built using the "build implicit rule"
STANDARD_IMAGES = linux-s390x android-arm android-arm64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 linux-mips linux-mipsel linux-ppc64le windows-x86 windows-x64 windows-x64-posix
STANDARD_IMAGES = linux-s390x android-arm android-arm64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 linux-mips linux-mipsel linux-ppc64le windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix
# Generated Dockerfiles.
GEN_IMAGES = linux-s390x linux-mips manylinux-x86 manylinux-x64 web-wasm linux-arm64 windows-x86 windows-x64 windows-x64-posix linux-armv7 linux-armv5
GEN_IMAGES = linux-s390x linux-mips manylinux-x86 manylinux-x64 web-wasm linux-arm64 windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix linux-armv7 linux-armv5
GEN_IMAGE_DOCKERFILES = $(addsuffix /Dockerfile,$(GEN_IMAGES))
# These images are expected to have explicit rules for *both* build and testing
@ -29,9 +29,12 @@ IMAGES = $(STANDARD_IMAGES) $(NON_STANDARD_IMAGES)
# Optional arguments for test runner (test/run.py) associated with "testing implicit rule"
linux-ppc64le.test_ARGS = --languages C
windows-x86.test_ARGS = --exe-suffix ".exe"
windows-x64.test_ARGS = --exe-suffix ".exe"
windows-x64-posix.test_ARGS = --exe-suffix ".exe"
windows-static-x86.test_ARGS = --exe-suffix ".exe"
windows-static-x64.test_ARGS = --exe-suffix ".exe"
windows-static-x64-posix.test_ARGS = --exe-suffix ".exe"
windows-shared-x86.test_ARGS = --exe-suffix ".exe"
windows-shared-x64.test_ARGS = --exe-suffix ".exe"
windows-shared-x64-posix.test_ARGS = --exe-suffix ".exe"
# On CircleCI, do not attempt to delete container
# See https://circleci.com/docs/docker-btrfs-error/

View File

@ -198,25 +198,45 @@ dockcross/web-wasm
|web-wasm-images| The Emscripten WebAssembly/asm.js/JavaScript cross compiler.
.. |windows-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-x64.svg
:target: https://microbadger.com/images/dockcross/windows-x64
.. |windows-static-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-static-x64.svg
:target: https://microbadger.com/images/dockcross/windows-static-x64
dockcross/windows-x64
|windows-x64-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads.
dockcross/windows-static-x64
|windows-static-x64-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads and static linking.
.. |windows-x64-posix-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-x64-posix.svg
:target: https://microbadger.com/images/dockcross/windows-x64-posix
.. |windows-static-x64-posix-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-static-x64-posix.svg
:target: https://microbadger.com/images/dockcross/windows-static-x64-posix
dockcross/windows-x64-posix
|windows-x64-posix-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with posix threads.
dockcross/windows-static-x64-posix
|windows-static-x64-posix-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with posix threads and static linking.
.. |windows-x86-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-x86.svg
:target: https://microbadger.com/images/dockcross/windows-x86
.. |windows-static-x86-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-static-x86.svg
:target: https://microbadger.com/images/dockcross/windows-static-x86
dockcross/windows-x86
|windows-x86-images| 32-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads.
dockcross/windows-static-x86
|windows-static-x86-images| 32-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads and static linking.
.. |windows-shared-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-shared-x64.svg
:target: https://microbadger.com/images/dockcross/windows-shared-x64
dockcross/windows-shared-x64
|windows-shared-x64-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads and dynamic linking.
.. |windows-shared-x64-posix-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-shared-x64-posix.svg
:target: https://microbadger.com/images/dockcross/windows-shared-x64-posix
dockcross/windows-shared-x64-posix
|windows-shared-x64-posix-images| 64-bit Windows cross-compiler based on MXE/MinGW-w64 with posix threads and dynamic linking.
.. |windows-shared-x86-images| image:: https://images.microbadger.com/badges/image/dockcross/windows-shared-x86.svg
:target: https://microbadger.com/images/dockcross/windows-shared-x86
dockcross/windows-shared-x86
|windows-shared-x86-images| 32-bit Windows cross-compiler based on MXE/MinGW-w64 with win32 threads and dynamic linking.
Articles

View File

@ -5,18 +5,20 @@
# WINEARCH environment variable to either "win64" or "win32"
# MXE_TARGET_ARCH argument to either "x86_64" or "i686". See http://mxe.cc/
# MXE_TARGET_THREAD argument to either "" or ".posix". Default is win32. See http://mxe.cc/
# MXE_TARGET_LINK argument to either "static" or "shared"
#
# For example:
#
# ENV WINEARCH win64
# ARG MXE_TARGET_ARCH=x86_64
# ARG MXE_TARGET_THREAD=
# ARG MXE_TARGET_LINK=shared
#
# mxe master 2019-02-27
ARG MXE_GIT_TAG=2ce5587c94fc355b2c826c786a3ee018479d88d1
ENV CMAKE_TOOLCHAIN_FILE /usr/src/mxe/usr/${MXE_TARGET_ARCH}-w64-mingw32.static${MXE_TARGET_THREAD}/share/cmake/mxe-conf.cmake
ENV CMAKE_TOOLCHAIN_FILE /usr/src/mxe/usr/${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}/share/cmake/mxe-conf.cmake
ARG DEBIAN_FRONTEND=noninteractive
@ -84,7 +86,7 @@ RUN \
# Configure "settings.mk" required to build MXE
#
cd /usr/src/mxe && \
echo "MXE_TARGETS := ${MXE_TARGET_ARCH}-w64-mingw32.static${MXE_TARGET_THREAD}" > settings.mk && \
echo "MXE_TARGETS := ${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}" > settings.mk && \
echo "LOCAL_PKG_LIST := cc cmake" >> settings.mk && \
echo ".DEFAULT local-pkg-list:" >> settings.mk && \
echo "local-pkg-list: \$(LOCAL_PKG_LIST)" >> settings.mk && \
@ -107,11 +109,11 @@ RUN \
#
cd /usr/bin && \
rm cmake cpack && \
ln -s /usr/src/mxe/usr/bin/${MXE_TARGET_ARCH}-w64-mingw32.static${MXE_TARGET_THREAD}-cmake cmake && \
ln -s /usr/src/mxe/usr/bin/${MXE_TARGET_ARCH}-w64-mingw32.static${MXE_TARGET_THREAD}-cpack cpack
ln -s /usr/src/mxe/usr/bin/${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}-cmake cmake && \
ln -s /usr/src/mxe/usr/bin/${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}-cpack cpack
ENV PATH ${PATH}:/usr/src/mxe/usr/bin
ENV CROSS_TRIPLE ${MXE_TARGET_ARCH}-w64-mingw32.static${MXE_TARGET_THREAD}
ENV CROSS_TRIPLE ${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}
ENV AS=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-as \
AR=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ar \
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \

View File

@ -4,12 +4,13 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win64
ARG MXE_TARGET_ARCH=x86_64
ARG MXE_TARGET_THREAD=.posix
ARG MXE_TARGET_LINK=shared
#include "common.windows"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-x64-posix
ARG IMAGE=dockcross/windows-shared-x64-posix
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL

View File

@ -4,12 +4,13 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win64
ARG MXE_TARGET_ARCH=x86_64
ARG MXE_TARGET_THREAD=
ARG MXE_TARGET_LINK=shared
#include "common.windows"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-x64
ARG IMAGE=dockcross/windows-shared-x64
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL

View File

@ -4,14 +4,13 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win32
ARG MXE_TARGET_ARCH=i686
ARG MXE_TARGET_THREAD=
ARG MXE_TARGET_LINK=shared
#include "common.windows"
WORKDIR /work
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-x86
ARG IMAGE=dockcross/windows-shared-x86
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL

View File

@ -0,0 +1,23 @@
FROM dockcross/base:latest
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win64
ARG MXE_TARGET_ARCH=x86_64
ARG MXE_TARGET_THREAD=.posix
ARG MXE_TARGET_LINK=static
#include "common.windows"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-static-x64-posix
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$IMAGE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}

View File

@ -0,0 +1,23 @@
FROM dockcross/base:latest
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win64
ARG MXE_TARGET_ARCH=x86_64
ARG MXE_TARGET_THREAD=
ARG MXE_TARGET_LINK=static
#include "common.windows"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-static-x64
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$IMAGE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}

View File

@ -0,0 +1,23 @@
FROM dockcross/base:latest
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV WINEARCH win32
ARG MXE_TARGET_ARCH=i686
ARG MXE_TARGET_THREAD=
ARG MXE_TARGET_LINK=static
#include "common.windows"
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE=dockcross/windows-static-x86
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$IMAGE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}