首页 > 代码库 > Android.mk各种文件编译汇总
Android.mk各种文件编译汇总
一、源码编译
1.1 so预编译
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libAppArea LOCAL_SRC_FILES :=libAppArea.so LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := SHARED_LIBRARIES LOCAL_MODULE_SUFFIX:=$(HOST_JNILIB_SUFFIX) LOCAL_CERTIFICATE:=platform LOCAL_PRELINK_MODULE := false include $(BUILD_PREBUILT)
1.2 share lib编译
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional #LDFLAGS += -ldl LOCAL_LDLIBS := -ldl -lm -llog -llibc LOCAL_MODULE := libnandFlashReadPage_jni LOCAL_SRC_FILES := nandFlashReadPage_jni.cpp LOCAL_SHARED_LIBRARIES := libdl liblog libpre_NandRecognition libpre_AppArea libc libstdc++ LOCAL_LDLIBS := -llog include $(BUILD_SHARED_LIBRARY)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。