Skip to content

Commit d5d13b0

Browse files
committed
fix: fix android build, by including the spdlog shared library in the final apk
1 parent 578e1d4 commit d5d13b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

platforms/android/app/jni/Android.mk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ LOCAL_SRC_FILES := $(shell find "${SUBPROJECTS_PATH}" -name libfmt.so)
6262
include $(PREBUILT_SHARED_LIBRARY)
6363

6464

65+
include $(CLEAR_VARS)
66+
LOCAL_MODULE := spdlog
67+
LOCAL_SRC_FILES := $(shell find "${SUBPROJECTS_PATH}" -name libspdlog.so)
68+
include $(PREBUILT_SHARED_LIBRARY)
69+
70+
6571
include $(CLEAR_VARS)
6672
LOCAL_MODULE := keyutils
6773
LOCAL_SRC_FILES := $(shell find "${SUBPROJECTS_PATH}" -name libkeyutils.so)
@@ -99,7 +105,7 @@ include $(PREBUILT_SHARED_LIBRARY)
99105

100106
include $(CLEAR_VARS)
101107
LOCAL_MODULE := main
102-
LOCAL_SHARED_LIBRARIES := SDL2 sdl2_ttf freetype png16 sdl2_mixer vorbis vorbisfile ogg sdl2_image fmt keyutils oopetris_core oopetris_recordings oopetris_graphics oopetris
108+
LOCAL_SHARED_LIBRARIES := SDL2 sdl2_ttf freetype png16 sdl2_mixer vorbis vorbisfile ogg sdl2_image fmt spdlog keyutils oopetris_core oopetris_recordings oopetris_graphics oopetris
103109
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
104110
LOCAL_LDFLAGS := -Wl,--no-undefined
105111
include $(BUILD_SHARED_LIBRARY)

0 commit comments

Comments
 (0)