AOSP中的共享库在哪里?

时间:2019-11-22 09:21:18

标签: java android android-source

我需要知道共享库在aosp中的位置,因为在Android.mk文件中,我有libnfc_tf_jni

LOCAL_JNI_SHARED_LIBRARIES := libnfc_tf_jni 

当我使用mm命令时,会引发错误

'out/host/linux-x86/bin/aapt', needed by 'out/target/product/sabresd_6dq/obj/APPS/Nfc_intermediates/package.apk', missing and no known rule to make it

通过添加Android.mk文件进行编辑:

LOCAL_PATH:= $(call my-dir)

########################################
# NCI Configuration
########################################
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_SRC_FILES := \
        $(call all-java-files-under, src)

LOCAL_SRC_FILES += \
        $(call all-java-files-under, tf)

LOCAL_PACKAGE_NAME := Nfc
LOCAL_CERTIFICATE := platform
LOCAL_STATIC_JAVA_LIBRARIES := NfcLogTags

LOCAL_JNI_SHARED_LIBRARIES := libnfc_tf_jni

LOCAL_PROGUARD_ENABLED := disabled

include $(BUILD_PACKAGE)

#####
# static lib for the log tags
#####
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := src/com/android/nfc/EventLogTags.logtags

LOCAL_MODULE:= NfcLogTags

include $(BUILD_STATIC_JAVA_LIBRARY)


include $(call all-makefiles-under,$(LOCAL_PATH))

libnfc-tf / Android.mk ::

 LOCAL_PATH:= $(call my-dir)

# libnfc_tf

include $(CLEAR_VARS)

LOCAL_PRELINK_MODULE := false
LOCAL_ARM_MODE := arm

#phLibNfc
LOCAL_SRC_FILES := src/libnfc_tf.c
LOCAL_SRC_FILES += src/libnfc_tf_if.c
LOCAL_SRC_FILES += src/libnfc_tf_poll.c
LOCAL_SRC_FILES += src/libnfc_tf_hal.c
LOCAL_SRC_FILES += src/libnfc_tf_llcp.c
LOCAL_SRC_FILES += src/libnfc_tf_secure.c

LOCAL_CFLAGS += -DANDROID -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration  -fno-strict-aliasing -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -fno-common -fpic

#debug option
#LOCAL_CFLAGS += -DDEBUG -D_DEBUG -DNFC_TF_DEBUG
#release option
#LOCAL_CFLAGS += -DNDEBUG

#includes
LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc
#LOCAL_CFLAGS += -I$(LOCAL_PATH)/src

LOCAL_C_INCLUDES := external/openssl/include

LOCAL_MODULE:= libnfc_tf
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libcutils libdl liblog libcrypto

include $(BUILD_SHARED_LIBRARY)

0 个答案:

没有答案