版權申明: 本文原創首發於以下網站,您可以自由轉載,但必須加入完整的版權聲明 博客園MogooStudio: csdn博客MogooStudio: 路徑 MY_LOCAL_PATH := $(call my dir) LOCAL_PATH := $(MY_LOCAL_PATH) MY_SOURCE_ ...
版權申明:
本文原創首發於以下網站,您可以自由轉載,但必須加入完整的版權聲明
博客園MogooStudio:https://www.cnblogs.com/MogooStudio/
csdn博客MogooStudio:https://blog.csdn.net/nmjkl001/
路徑
- MY_LOCAL_PATH := $(call my-dir)
- LOCAL_PATH := $(MY_LOCAL_PATH)
- MY_SOURCE_PATH := $((LOCAL_PATH)../../../code/source)
靜態庫
- include $(CLEAR_VARS)
- LOCAL_MODULE := liblive2d
- LOCAL_SRC_FILES := ../../../hero_external/Live2d/android/$(TARGET_ARCH_ABI)/liblive2d.a
- include $(PREBUILT_STATIC_LIBRARY)
c 預編譯巨集
- LOCAL_CFLAGS := -I$(LOCAL_PATH)/boost/include/boost-1_53
cpp 預編譯巨集
- LOCAL_CPPFLAGS := -DL2D_TARGET_ANDROID_ES2
動態庫 --start
- include $(CLEAR_VARS)
- LOCAL_MODULE := game_shared
- LOCAL_MODULE_FILENAME := libgame
導入cpp源文件
- LOCAL_SRC_FILES := ./MianProj/main.cpp
頭文件路徑包含
- LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../hero_external/Live2d/include
導入靜態庫
- LOCAL_STATIC_LIBRARIES := curl_static_prebuilt
- LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
導入動態庫
- LOCAL_SHADED_LIBRARIES := libYvImSdk
動態庫 --end
- include $(BUILD_SHARED_LIBRARY)
我的聯繫方式:
QQ:2161044579
郵箱:[email protected]
Github:https://github.com/MogooStudio