Merge "Convert libhidcommand_jni to Android.bp" into stage-aosp-master

This commit is contained in:
Dan Willemsen
2017-09-09 19:16:34 +00:00
committed by Android (Google) Code Review
3 changed files with 18 additions and 18 deletions

1
cmds/hid/Android.bp Normal file
View File

@@ -0,0 +1 @@
subdirs = ["jni"]

17
cmds/hid/jni/Android.bp Normal file
View File

@@ -0,0 +1,17 @@
cc_library_shared {
name: "libhidcommand_jni",
srcs: ["com_android_commands_hid_Device.cpp"],
shared_libs: [
"libandroid",
"liblog",
"libnativehelper",
],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
}

View File

@@ -1,18 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
com_android_commands_hid_Device.cpp
LOCAL_C_INCLUDES := \
$(JNI_H_INCLUDE)
LOCAL_LDLIBS += -landroid -llog -lnativehelper
LOCAL_MODULE := libhidcommand_jni
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -Wall -Wextra -Werror
include $(BUILD_SHARED_LIBRARY)