码迷,mamicode.com
首页 > 移动开发 > 详细

Android.mk各种文件编译汇总

时间:2014-07-18 11:21:37      阅读:319      评论:0      收藏:0      [点我收藏+]

标签:android

一、源码编译

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各种文件编译汇总,布布扣,bubuko.com

Android.mk各种文件编译汇总

标签:android

原文地址:http://blog.csdn.net/longtian635241/article/details/37918981

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!