From 6e7a24d390edd839dc43369a4d8aebd99e483d18 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 7 Nov 2022 13:03:54 +0200 Subject: [PATCH] Fix Android build on macOS. --- test/demo/example.gdextension | 4 ++++ tools/android.py | 1 + 2 files changed, 5 insertions(+) diff --git a/test/demo/example.gdextension b/test/demo/example.gdextension index b7946598..6d534056 100644 --- a/test/demo/example.gdextension +++ b/test/demo/example.gdextension @@ -16,3 +16,7 @@ linux.debug.arm64 = "res://bin/libgdexample.linux.template_debug.arm64.so" linux.release.arm64 = "res://bin/libgdexample.linux.template_release.arm64.so" linux.debug.rv64 = "res://bin/libgdexample.linux.template_debug.rv64.so" linux.release.rv64 = "res://bin/libgdexample.linux.template_release.rv64.so" +android.debug.x86_64 = "res://bin/libgdexample.android.template_debug.x86_64.so" +android.release.x86_64 = "res://bin/libgdexample.android.template_release.x86_64.so" +android.debug.arm64 = "res://bin/libgdexample.android.template_debug.arm64.so" +android.release.arm64 = "res://bin/libgdexample.android.template_release.arm64.so" diff --git a/tools/android.py b/tools/android.py index 720ff2dc..b9077f5d 100644 --- a/tools/android.py +++ b/tools/android.py @@ -53,6 +53,7 @@ def generate(env): toolchain += "linux-x86_64" elif sys.platform == "darwin": toolchain += "darwin-x86_64" + env.Append(LINKFLAGS=["-shared"]) env.PrependENVPath("PATH", toolchain + "/bin") # This does nothing half of the time, but we'll put it here anyways # Get architecture info