Skip to content

Commit 09e406e

Browse files
committed
Add acl_ndk20 build module.
1 parent cb3d8e7 commit 09e406e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1317
-4
lines changed

android/acl_c++_shared/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
apply plugin: 'com.android.library'
2+
3+
/*
24
buildscript {
5+
plugins {
6+
id 'com.android.library'
7+
}
8+
39
repositories {
410
google()
511
jcenter()
@@ -11,6 +17,7 @@ buildscript {
1117
}
1218
//implementation {}
1319
}
20+
*/
1421

1522
android {
1623
compileSdkVersion 28

android/acl_c++_shared/gradlew

100644100755
File mode changed.

android/acl_c++_shared/local.properties

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Location of the SDK. This is only used by Gradle.
55
# For customization when using a Version Control System, please read the
66
# header note.
7-
#Thu Oct 17 17:02:59 CST 2019
8-
#ndk.dir=/Users/shuxinzheng/Library/Android/sdk/ndk-bundle
9-
ndk.dir=/Users/shuxinzheng/Library/Android/ndk
10-
sdk.dir=/Users/shuxinzheng/Library/Android/sdk
7+
#Thu Nov 20 11:45:02 CST 2025
8+
ndk.dir=/opt/soft/android/ndk
9+
sdk.dir=/opt/soft/android/sdk

android/acl_ndk20/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 36
5+
//buildToolsVersion "28.0.3"
6+
7+
defaultConfig {
8+
minSdkVersion 14
9+
targetSdkVersion 36
10+
11+
externalNativeBuild {
12+
cmake {
13+
arguments "-DANDROID_STL=c++_shared"
14+
arguments "-DHAS_ATOMIC=YES"
15+
arguments "-DCMAKE_BUILD_TYPE=RELEASE"
16+
arguments "-DCMAKE_CXX_FLAGS_RELEASE=-O3"
17+
arguments "-DCMAKE_C_FLAGS_RELEASE=-O3"
18+
arguments "-DACL_CLIENT_ONLY=YES"
19+
arguments "-DHAS_MBEDTLS=YES"
20+
arguments "-DACL_BUILD_SHARED=YES"
21+
arguments "-Wl,-z,max-page-size=16384"
22+
arguments "-Wl,-z,common-page-size=16384"
23+
24+
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86'
25+
targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static', 'acl_shared', 'protocol_shared', 'acl_cpp_shared', 'fiber_shared', 'fiber_cpp_shared' // for ndk20 or above
26+
}
27+
}
28+
}
29+
30+
buildTypes {
31+
release {
32+
minifyEnabled true
33+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
34+
}
35+
36+
debug {
37+
jniDebuggable true
38+
debuggable true
39+
minifyEnabled false
40+
}
41+
}
42+
43+
externalNativeBuild {
44+
cmake {
45+
path '../../../CMakeLists.txt'
46+
//version "3.6.0"
47+
}
48+
}
49+
}
50+
51+
dependencies {
52+
implementation fileTree(include: ['*.jar'], dir: 'libs')
53+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.acl_dev.acl">
2+
3+
<application android:allowBackup="true" android:label="@string/app_name"
4+
android:supportsRtl="true">
5+
6+
</application>
7+
8+
</manifest>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">Acl</string>
3+
</resources>

android/acl_ndk20/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
jcenter()
5+
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:4.0.2'
8+
}
9+
}
10+
11+
allprojects {
12+
repositories {
13+
google()
14+
jcenter()
15+
}
16+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx1536m
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. More details, visit
12+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13+
# org.gradle.parallel=true
14+
# AndroidX package structure to make it clearer which packages are bundled with the
15+
# Android operating system, and which are packaged with your app's APK
16+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
17+
android.useAndroidX=true
18+
# Automatically convert third-party libraries to use AndroidX
19+
android.enableJetifier=true
20+
52.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)