forked from bilibili/ijkplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0003-arm64-enable-debugging-with-LLDB.patch
139 lines (132 loc) · 5.25 KB
/
0003-arm64-enable-debugging-with-LLDB.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
From 8f72e4cdcc3c3ef2d5290be4a755943b972d7239 Mon Sep 17 00:00:00 2001
From: ctiao <[email protected]>
Date: Mon, 29 Aug 2016 17:06:00 +0800
Subject: [PATCH] arm64: enable debugging with LLDB
---
android/ijkplayer/ijkplayer-arm64/build.gradle | 20 ++++++++++++---
.../ijkplayer-arm64/src/main/jni/Android.mk | 29 +++++++++++++++++++++-
android/ijkplayer/ijkplayer-example/build.gradle | 16 ++++++------
android/ijkplayer/settings.gradle | 6 ++---
4 files changed, 56 insertions(+), 15 deletions(-)
mode change 120000 => 100644 android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk
diff --git a/android/ijkplayer/ijkplayer-arm64/build.gradle b/android/ijkplayer/ijkplayer-arm64/build.gradle
index a8cbe0c..ccd04e0 100644
--- a/android/ijkplayer/ijkplayer-arm64/build.gradle
+++ b/android/ijkplayer/ijkplayer-arm64/build.gradle
@@ -10,16 +10,30 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
+ externalNativeBuild {
+ ndkBuild {
+ arguments "NDK_APPLICATION_MK:=src/main/jni/Application.mk"
+ abiFilters "arm64-v8a"
+ }
+ }
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
+ debug {
+ debuggable true
+ jniDebuggable true
+ ndk {
+ debuggable true
+ }
+ }
}
- sourceSets.main {
- jniLibs.srcDirs 'src/main/libs'
- jni.srcDirs = [] // This prevents the auto generation of Android.mk
+ externalNativeBuild {
+ ndkBuild {
+ path 'src/main/jni/Android.mk'
+ }
}
}
diff --git a/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk b/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk
deleted file mode 120000
index fb30867..0000000
--- a/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk
+++ /dev/null
@@ -1 +0,0 @@
-../../../../ijkplayer-armv7a/src/main/jni/Android.mk
\ No newline at end of file
diff --git a/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk b/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk
new file mode 100644
index 0000000..6b53c1f
--- /dev/null
+++ b/android/ijkplayer/ijkplayer-arm64/src/main/jni/Android.mk
@@ -0,0 +1,28 @@
+# copyright (c) 2013 Zhang Rui <[email protected]>
+#
+# This file is part of ijkPlayer.
+#
+# ijkPlayer is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# ijkPlayer is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with ijkPlayer; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+LOCAL_PATH := $(call my-dir)
+
+MY_APP_JNI_ROOT := $(realpath $(LOCAL_PATH))
+MY_APP_PRJ_ROOT := $(realpath $(MY_APP_JNI_ROOT)/..)
+MY_APP_ANDROID_ROOT := $(realpath $(MY_APP_PRJ_ROOT)/../../../..)
+
+MY_APP_FFMPEG_OUTPUT_PATH := $(realpath $(MY_APP_ANDROID_ROOT)/contrib/build/ffmpeg-arm64/output)
+MY_APP_FFMPEG_INCLUDE_PATH := $(realpath $(MY_APP_FFMPEG_OUTPUT_PATH)/include)
+
+include $(call all-subdir-makefiles)
diff --git a/android/ijkplayer/ijkplayer-example/build.gradle b/android/ijkplayer/ijkplayer-example/build.gradle
index 9afe650..77df829 100644
--- a/android/ijkplayer/ijkplayer-example/build.gradle
+++ b/android/ijkplayer/ijkplayer-example/build.gradle
@@ -44,15 +44,15 @@ dependencies {
compile project(':ijkplayer-java')
compile project(':ijkplayer-exo')
- all32Compile project(':ijkplayer-armv5')
- all32Compile project(':ijkplayer-armv7a')
- all32Compile project(':ijkplayer-x86')
-
- all64Compile project(':ijkplayer-armv5')
- all64Compile project(':ijkplayer-armv7a')
+// all32Compile project(':ijkplayer-armv5')
+// all32Compile project(':ijkplayer-armv7a')
+// all32Compile project(':ijkplayer-x86')
+//
+// all64Compile project(':ijkplayer-armv5')
+// all64Compile project(':ijkplayer-armv7a')
all64Compile project(':ijkplayer-arm64')
- all64Compile project(':ijkplayer-x86')
- all64Compile project(':ijkplayer-x86_64')
+// all64Compile project(':ijkplayer-x86')
+// all64Compile project(':ijkplayer-x86_64')
// armv5Compile project(':player-armv5')
// armv7aCompile project(':player-armv7a')
diff --git a/android/ijkplayer/settings.gradle b/android/ijkplayer/settings.gradle
index 758234a..c9e72d9 100644
--- a/android/ijkplayer/settings.gradle
+++ b/android/ijkplayer/settings.gradle
@@ -1,7 +1,7 @@
-include ':ijkplayer-armv5', ':ijkplayer-x86_64'
-include ':ijkplayer-armv7a'
+//include ':ijkplayer-armv5', ':ijkplayer-x86_64'
+//include ':ijkplayer-armv7a'
include ':ijkplayer-arm64'
-include ':ijkplayer-x86'
+//include ':ijkplayer-x86'
include ':ijkplayer-java'
include ':ijkplayer-exo'
--
2.7.4 (Apple Git-66)