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)





Android.mk各种文件编译汇总,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。