From fc56e0a4ae100692b21b53ec71d56c831073f8e0 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期一, 30 十二月 2019 17:33:23 +0800
Subject: [PATCH] 首次加入ndk
---
lib/build.gradle | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/lib/build.gradle b/lib/build.gradle
index b7ce1a3..fb084b3 100644
--- a/lib/build.gradle
+++ b/lib/build.gradle
@@ -12,6 +12,16 @@
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ externalNativeBuild {
+ cmake {
+ cppFlags ""
+ }
+ }
+ ndk {
+ // Specifies the ABI configurations of your native
+ // libraries Gradle should build and package with your APK.
+ abiFilters 'armeabi-v7a','arm64-v8a'
+ }
}
buildTypes {
@@ -21,6 +31,11 @@
}
}
+ externalNativeBuild {
+ cmake {
+ path "src/main/cpp/CMakeLists.txt"
+ }
+ }
}
dependencies {
--
Gitblit v1.8.0