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

Commit e105b79f authored by Inseob Kim's avatar Inseob Kim
Browse files

Fix link-type warning on GLPerf

An sdk app GLPerf uses a native:platform library libglperf, which
causes a link-type warning. Actually libutils is the only platform
library used by libglperf, 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: I9ad9b542288e6dd914f14ec45d8d35c6985da89f
Change-Id: I9ad9b542288e6dd914f14ec45d8d35c6985da89f
parent 9d00c48e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,11 +39,12 @@ LOCAL_SRC_FILES:= \
  gl_code.cpp

LOCAL_SHARED_LIBRARIES := \
	libutils \
	liblog \
	libEGL \
	libGLESv2

LOCAL_SDK_VERSION := current

LOCAL_MODULE := libglperf


+7 −2
Original line number Diff line number Diff line
@@ -2,16 +2,21 @@

#include <jni.h>
#define LOG_TAG "GLPerf 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>
#include <GLES2/gl2ext.h>
#include <utils/Timers.h>

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>

#include "../../gl_perf/fill_common.cpp"