Android.mk语法说明
版权申明:
本文原创首发于以下网站,您可以自由转载,但必须加入完整的版权声明
博客园:https://www.cnblogs.com/MogooStudio/
csdn博客:https://blog.csdn.net/nmjkl001/
知乎:https://www.zhihu.com/people/MogooStudio/
简书:https://www.jianshu.com/u/9547c81ca54e
segmentfault:https://segmentfault.com/u/mogoostudio
路径
- 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
邮箱:mogoostudio@outlook.com
Github:https://github.com/MogooStudio
欢迎关注我的博客
email:mogoostudio@outlook.com
github:https://github.com/MogooStudio