mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
1b5203d3a0
With this new build system, it'll make it easier to compile third-party libraries statically to multiple platforms.
21 lines
544 B
Docker
21 lines
544 B
Docker
FROM dockcross/base
|
|
|
|
ENV OSX_CROSS_PATH=/osxcross
|
|
|
|
COPY --from=dockercore/golang-cross "${OSX_CROSS_PATH}/." "${OSX_CROSS_PATH}/"
|
|
ENV PATH=${OSX_CROSS_PATH}/target/bin:$PATH
|
|
|
|
COPY init.sh /tmp/init.sh
|
|
RUN bash /tmp/init.sh
|
|
|
|
ENV CC=x86_64-apple-darwin14-clang \
|
|
CXX=x86_64-apple-darwin14-clang++ \
|
|
CPP=x86_64-apple-darwin14-clang++ \
|
|
AR=x86_64-apple-darwin14-ar \
|
|
AS=x86_64-apple-darwin14-as \
|
|
LD=x86_64-apple-darwin14-ld
|
|
|
|
ARG IMAGE=lherman/cross-darwin-x64
|
|
ARG VERSION=latest
|
|
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
|