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

Commit 2120b23f authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Merge "Fix link-type check warning on PMTest_Java* test apps" am: 779f5616 am: 78c71ca4

am: e481df97

Change-Id: I38739a4f2f7bdb3da64e70cfa5f098039ef129fa
parents f4546316 e481df97
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -29,13 +29,10 @@ LOCAL_MODULE_TAGS := tests
LOCAL_SRC_FILES:= \
  native.cpp

# All of the shard libraries we link against.
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_LDLIBS := -llog

LOCAL_CFLAGS += -Wall -Wextra -Werror

# Also need the JNI headers.
LOCAL_C_INCLUDES += \
	$(JNI_H_INCLUDE)
LOCAL_SDK_VERSION := current

include $(BUILD_SHARED_LIBRARY)
+4 −1
Original line number Diff line number Diff line
@@ -15,12 +15,15 @@
 */

#define LOG_TAG "pmtest32 native.cpp"
#include <utils/Log.h>
#include <android/log.h>

#include <stdio.h>

#include "jni.h"

#define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

static jint
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
int result = a + b;
+2 −6
Original line number Diff line number Diff line
@@ -30,14 +30,10 @@ LOCAL_MODULE_TAGS := tests
LOCAL_SRC_FILES:= \
  native.cpp

# All of the shared libraries we link against.
LOCAL_SHARED_LIBRARIES := \
	libutils liblog
LOCAL_LDLIBS := -llog

LOCAL_CFLAGS += -Wall -Wextra -Werror

# Also need the JNI headers.
LOCAL_C_INCLUDES += \
	$(JNI_H_INCLUDE)
LOCAL_SDK_VERSION := current

include $(BUILD_SHARED_LIBRARY)
+4 −1
Original line number Diff line number Diff line
@@ -15,12 +15,15 @@
 */

#define LOG_TAG "pmtest64 native.cpp"
#include <utils/Log.h>
#include <android/log.h>

#include <stdio.h>

#include "jni.h"

#define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

static jint
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
int result = a + b;
+1 −5
Original line number Diff line number Diff line
@@ -29,14 +29,10 @@ LOCAL_MODULE_TAGS := tests
LOCAL_SRC_FILES:= \
  native.cpp

# All of the shard libraries we link against.
LOCAL_LDLIBS = -llog
LOCAL_SHARED_LIBRARIES := liblog

LOCAL_CFLAGS += -Wall -Wextra -Werror

# Also need the JNI headers.
LOCAL_C_INCLUDES += \
	$(JNI_H_INCLUDE)
LOCAL_SDK_VERSION := current

include $(BUILD_SHARED_LIBRARY)
Loading