Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d00c48e authored by Inseob Kim's avatar Inseob Kim
Browse files

Fix link-type warning on GLDual

An sdk app GLDual uses a native:platform library libgldualjni, which
causes a link-type warning. Actually libutils is the only platform
library used by libgldualjni, and the warning can be eliminated by
rewriting code not to use libutils and setting LOCAL_SDK_VERSION.

Bug: 73907534
Test: mma -j does not show any link-type warnings
Merged-In: I2a4f4bb0ac8002cb7ab5c60f8ba74728eca92f22
Change-Id: I2a4f4bb0ac8002cb7ab5c60f8ba74728eca92f22
parent 8b24923b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,13 +37,13 @@ LOCAL_SRC_FILES:= \
  gl_code.cpp

LOCAL_SHARED_LIBRARIES := \
	libutils \
	liblog \
	libEGL \
	libGLESv2

LOCAL_MODULE := libgldualjni

LOCAL_SDK_VERSION := current


include $(BUILD_SHARED_LIBRARY)
+6 −1
Original line number Diff line number Diff line
@@ -2,7 +2,12 @@

#include <jni.h>
#define LOG_TAG "GL2JNI gl_code.cpp"
#include <utils/Log.h>
#include <android/log.h>

#define ALOG(priority, tag, ...) ((void)__android_log_print(ANDROID_##priority, tag, __VA_ARGS__))

#define ALOGI(...) ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__)
#define ALOGE(...) ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)

#include <EGL/egl.h>
#include <GLES2/gl2.h>