Merge "Fix link-type check warning on PMTest_Java* test apps"
This commit is contained in:
@@ -29,13 +29,10 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_SRC_FILES:= \
|
LOCAL_SRC_FILES:= \
|
||||||
native.cpp
|
native.cpp
|
||||||
|
|
||||||
# All of the shard libraries we link against.
|
LOCAL_LDLIBS := -llog
|
||||||
LOCAL_SHARED_LIBRARIES := liblog
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
||||||
|
|
||||||
# Also need the JNI headers.
|
LOCAL_SDK_VERSION := current
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
$(JNI_H_INCLUDE)
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|||||||
@@ -15,12 +15,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "pmtest32 native.cpp"
|
#define LOG_TAG "pmtest32 native.cpp"
|
||||||
#include <utils/Log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "jni.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
|
static jint
|
||||||
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
||||||
int result = a + b;
|
int result = a + b;
|
||||||
|
|||||||
@@ -30,14 +30,10 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_SRC_FILES:= \
|
LOCAL_SRC_FILES:= \
|
||||||
native.cpp
|
native.cpp
|
||||||
|
|
||||||
# All of the shared libraries we link against.
|
LOCAL_LDLIBS := -llog
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libutils liblog
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
||||||
|
|
||||||
# Also need the JNI headers.
|
LOCAL_SDK_VERSION := current
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
$(JNI_H_INCLUDE)
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|||||||
@@ -15,12 +15,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "pmtest64 native.cpp"
|
#define LOG_TAG "pmtest64 native.cpp"
|
||||||
#include <utils/Log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "jni.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
|
static jint
|
||||||
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
||||||
int result = a + b;
|
int result = a + b;
|
||||||
|
|||||||
@@ -29,14 +29,10 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_SRC_FILES:= \
|
LOCAL_SRC_FILES:= \
|
||||||
native.cpp
|
native.cpp
|
||||||
|
|
||||||
# All of the shard libraries we link against.
|
|
||||||
LOCAL_LDLIBS = -llog
|
LOCAL_LDLIBS = -llog
|
||||||
LOCAL_SHARED_LIBRARIES := liblog
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
||||||
|
|
||||||
# Also need the JNI headers.
|
LOCAL_SDK_VERSION := current
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
$(JNI_H_INCLUDE)
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|||||||
@@ -15,12 +15,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_TAG "pmtestdual native.cpp"
|
#define LOG_TAG "pmtestdual native.cpp"
|
||||||
#include <utils/Log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "jni.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
|
static jint
|
||||||
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
|
||||||
int result = a + b;
|
int result = a + b;
|
||||||
|
|||||||
Reference in New Issue
Block a user