这是我的Android.mk文件的外观。等效的CMakeLists.txt是什么?我正在努力在CMake中找到libhardware。有什么想法吗?
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libtestLed
LOCAL_SRC_FILES := testled.cpp
LOCAL_C_INCLUDES := $(call include-path-for, libhardware)/hardware
LOCAL_SHARED_LIBRARIES += \
libandroid_runtime \
libcutils \
liblog \
libhardware \
LOCAL_MODULE_TAGS := optional
LOCAL_VENDOR_MODULE := true
include $(BUILD_SHARED_LIBRARY)
答案 0 :(得分:0)
您提到的那行是 target_link_libraries(已测试硬件)