Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Lua as a DLL on Windows because that's required to import lz4 #68

Merged
merged 2 commits into from Aug 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions build/win64/Dockerfile
Expand Up @@ -84,8 +84,9 @@ WORKDIR ../
RUN wget https://www.lua.org/ftp/lua-5.3.4.tar.gz && \
tar xzvf lua-5.3.4.tar.gz
WORKDIR lua-5.3.4
RUN make generic CC="$CC -std=gnu99" AR="$AR rcu" && \
make local && cp -r install/* /usr/local/mingw
RUN make mingw CC=$CC && \
cp src/lua53.dll /usr/local/mingw/lib/liblua.dll && \
cp src/*.h /usr/local/mingw/include/

WORKDIR ../

Expand All @@ -105,6 +106,7 @@ RUN wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha1
COPY ./cryptokernel /cryptokernel

RUN cp lua-lz4/lz4.dll cryptokernel
RUN cp /usr/local/mingw/lib/liblua.dll cryptokernel/lua53.dll

RUN git clone https://github.com/metalicjames/cschnorr.git
WORKDIR cschnorr
Expand All @@ -116,4 +118,4 @@ WORKDIR ../

WORKDIR cryptokernel
RUN premake5 gmake2 --os=windows --include-dir=/usr/local/mingw/include --lib-dir=/usr/local/mingw/lib
RUN make config=release_static ckd
RUN make config=release_static ckd