File tree Expand file tree Collapse file tree 6 files changed +34
-6
lines changed Expand file tree Collapse file tree 6 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,13 @@ JAVA_FILES = \
1414 src/me/petcu/fmodbridge/BridgeHelper.java
1515
1616ANDROID_NDK ?= /opt/android-ndk-r25b
17- HOST_TAG ?= `uname | tr A-Z a-z` -x86_64
17+ HOST_TAG ?= linux -x86_64
1818
19- CC_ARM := $(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST_TAG)/bin/clang -target armv7a-linux-androideabi14 --sysroot=$(ANDROID_NDK)/sysroot -I$(ANDROID_NDK)/sysroot/usr/include/arm-linux-androideabi
20- CC_ARM64 := $(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST_TAG)/bin/clang -target aarch64-linux-androideabi21 --sysroot=$(ANDROID_NDK)/sysroot -I$(ANDROID_NDK)/sysroot/usr/include/aarch64-linux-android
21- AR := $(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST_TAG)/bin/llvm-ar
19+ # prebuilt compiler from the NDK toolchain
20+ TOOLCHAIN_PREFIX := $(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST_TAG)
21+ CC_ARM := $(TOOLCHAIN_PREFIX)/bin/armv7a-linux-androideabi19-clang
22+ CC_ARM64 := $(TOOLCHAIN_PREFIX)/bin/aarch64-linux-android21-clang
23+ AR := $(TOOLCHAIN_PREFIX)/bin/llvm-ar
2224
2325CFLAGS := -std=c11 -O3 -fvisibility=hidden -I./include -fpic -fomit-frame-pointer \
2426 -fno-strict-aliasing -funwind-tables -ffunction-sections -fstack-protector \
Original file line number Diff line number Diff line change 1- FROM lakoo/android-ndk:28-28.0.2-r17c
1+ FROM ubuntu:22.04
22
3- RUN apt-get update && apt-get install make -y
3+ ENV DEBIAN_FRONTEND=noninteractive
4+
5+ # basic tools
6+ RUN apt-get update && apt-get install -y \
7+ wget \
8+ unzip \
9+ openjdk-11-jdk \
10+ make \
11+ build-essential \
12+ && rm -rf /var/lib/apt/lists/*
13+
14+ # Android NDK r25b (same version as Defold's build server)
15+ ENV ANDROID_NDK_HOME=/opt/android-ndk-r25b
16+ RUN cd /opt && \
17+ wget -q https://dl.google.com/android/repository/android-ndk-r25b-linux.zip && \
18+ unzip -q android-ndk-r25b-linux.zip && \
19+ rm android-ndk-r25b-linux.zip
20+
21+ ENV PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
422
523VOLUME [ "/repo" ]
624WORKDIR /repo/bridge
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ platforms:
1212 context:
1313 frameworks: ["AVFoundation"]
1414
15+ armv7-android:
16+ context:
17+ libs: ["fmodbridge"]
18+
19+ arm64-android:
20+ context:
21+ libs: ["fmodbridge"]
22+
1523 x86_64-win32:
1624 context:
1725 libs: ["shlwapi.lib"]
You can’t perform that action at this time.
0 commit comments