Skip to content

Commit

Permalink
Add Dockerfile for building for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzoide committed Apr 6, 2024
1 parent 05e6a16 commit 3c0e344
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ indent_size = 4
[Makefile]
indent_style = tab
indent_size = 8

[Dockerfile*]
indent_size = 4
5 changes: 5 additions & 0 deletions Plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@ all-android: android-arm64 android-arm32 android-x86_64 android-x86

webgl: build/webgl/libflex-ui.bc
all-webgl: webgl

# Dockerized builds
docker-all-linux:
docker build -f src~/Dockerfile.build.linux -t gilzoide-flex-ui-build-linux:latest .
docker run --rm -v "$(CURDIR)":/src -w /src --platform=linux/amd64 gilzoide-flex-ui-build-linux:latest make all-linux
Binary file modified Plugins/build/linux/x86_64/libflex-ui.so
Binary file not shown.
7 changes: 7 additions & 0 deletions Plugins/src~/Dockerfile.build.linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 debian:12-slim

RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
g++ \
make

0 comments on commit 3c0e344

Please sign in to comment.