diff --git a/Dockerfile b/Dockerfile index 554cb16..27e3831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,12 +23,6 @@ COPY *.sh libssp-Makefile ./ COPY wrappers/*.sh ./wrappers/ RUN ./build-all.sh $TOOLCHAIN_PREFIX && \ ./strip-llvm.sh $TOOLCHAIN_PREFIX && \ - apt-get update -qq && \ - apt-get install -qqy binutils-mingw-w64-x86-64 && \ - cp /usr/bin/x86_64-w64-mingw32-windres $TOOLCHAIN_PREFIX/bin/x86_64-w64-mingw32-windresreal && \ - apt-get remove -qqy binutils-mingw-w64-x86-64 && \ - apt-get clean -y && \ - rm -rf /var/lib/apt/lists/* && \ rm -rf /build ENV PATH=$TOOLCHAIN_PREFIX/bin:$PATH diff --git a/Dockerfile.dev b/Dockerfile.dev index 3f95e30..47146d3 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -28,15 +28,6 @@ COPY wrappers/*.sh ./wrappers/ COPY install-wrappers.sh . RUN ./install-wrappers.sh $TOOLCHAIN_PREFIX -# Cheating: Pull windres from the normal binutils package. -# llvm-rc isn't fully usable as a replacement for windres yet. -RUN apt-get update -qq && \ - apt-get install -qqy binutils-mingw-w64-x86-64 && \ - cp /usr/bin/x86_64-w64-mingw32-windres $TOOLCHAIN_PREFIX/bin/x86_64-w64-mingw32-windresreal && \ - apt-get remove -qqy binutils-mingw-w64-x86-64 && \ - apt-get clean -y && \ - rm -rf /var/lib/apt/lists/* - # Build MinGW-w64 COPY build-mingw-w64.sh . RUN ./build-mingw-w64.sh $TOOLCHAIN_PREFIX diff --git a/wrappers/windres-wrapper.sh b/wrappers/windres-wrapper.sh index 9f8adb7..b820fb3 100755 --- a/wrappers/windres-wrapper.sh +++ b/wrappers/windres-wrapper.sh @@ -1,3 +1,244 @@ -#!/bin/sh -set -e -x86_64-w64-mingw32-windresreal "$@" --output-format res +#!/bin/sh -e +# +# author: Josh de Kock +# +# This is free and unencumbered software released into the public domain. +# +# Anyone is free to copy, modify, publish, use, compile, sell, or +# distribute this software, either in source code form or as a compiled +# binary, for any purpose, commercial or non-commercial, and by any +# means. +# +# In jurisdictions that recognize copyright laws, the author or authors +# of this software dedicate any and all copyright interest in the +# software to the public domain. We make this dedication for the benefit +# of the public at large and to the detriment of our heirs and +# successors. We intend this dedication to be an overt act of +# relinquishment in perpetuity of all present and future rights to this +# software under copyright law. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# +# For more information, please refer to + +print_version () { + cat <&2 +version: LLVM windres (GNU Binutils compatible) 0.1 +EOF + exit 1 +} + +print_help () { + cat <&2 +usage: llvm-windres