mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 03:28:09 +08:00
API目录支持安卓编译,输出libmk_api.a (#1854)
* API目录支持安卓编译,输出libmk_api.a * API目录支持安卓编译,输出libmk_api.a[参考 wasphin大佬的指导改进了一些地方] * update ndk version Co-authored-by: 夏楚 <771730766@qq.com>
This commit is contained in:
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
ndkVersion "21.4.7075529"
|
||||
ndkVersion "25.0.8775105"
|
||||
defaultConfig {
|
||||
applicationId "com.zlmediakit.demo"
|
||||
minSdkVersion 15
|
||||
@@ -14,7 +14,7 @@ android {
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
cppFlags "-std=c++11 -frtti -fexceptions"
|
||||
arguments "-DENABLE_API=off", "-DENABLE_TESTS=off", "-DENABLE_PLAYER=off", "-DENABLE_SERVER_LIB=on"
|
||||
arguments "-DENABLE_API=on", "-DENABLE_API_STATIC_LIB=on", "-DENABLE_TESTS=off", "-DENABLE_PLAYER=off", "-DENABLE_SERVER_LIB=on"
|
||||
}
|
||||
}
|
||||
ndk {
|
||||
|
||||
Reference in New Issue
Block a user