Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> Android.mk各種文件編譯匯總

Android.mk各種文件編譯匯總

編輯:關於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)





  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved