Android.mk语法说明
程序员文章站
2022-12-22 08:22:36
版权申明: 本文原创首发于以下网站,您可以*转载,但必须加入完整的版权声明 博客园MogooStudio: csdn博客MogooStudio: 路径 MY_LOCAL_PATH := $(call my dir) LOCAL_PATH := $(MY_LOCAL_PATH) MY_SOURCE_ ......
版权申明:
本文原创首发于以下网站,您可以*转载,但必须加入完整的版权声明
博客园mogoostudio:https://www.cnblogs.com/mogoostudio/
csdn博客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