Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
189e3b6e
Commit
189e3b6e
authored
Apr 07, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: keep debug info in a seperate .so.dbg file for release
*.so.dbg files are saved in .dbg/<apk_version> directory
parent
5c549403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
.gitignore
.gitignore
+2
-0
compile-libvlc.sh
compile-libvlc.sh
+18
-0
No files found.
.gitignore
View file @
189e3b6e
...
...
@@ -7,6 +7,8 @@
# tmp dir used by gdb.sh
.gdb
# debug symbols
.dbg
# Local configuration
local.properties
...
...
compile-libvlc.sh
View file @
189e3b6e
...
...
@@ -633,3 +633,21 @@ $ANDROID_NDK/ndk-build -C libvlc \
HAVE_64
=
${
HAVE_64
}
\
NDK_PROJECT_PATH
=
jni
\
NDK_DEBUG
=
${
NDK_DEBUG
}
checkfail
"ndk-build failed"
if
[
"
$RELEASE
"
=
1
]
;
then
DBG_LIB_DIR
=
libvlc/jni/obj/local/
${
ANDROID_ABI
}
OUT_LIB_DIR
=
libvlc/jni/libs/
${
ANDROID_ABI
}
VERSION
=
$(
grep
"android:versionName"
vlc-android/AndroidManifest.xml|cut
-d
\"
-f
2
)
OUT_DBG_DIR
=
.dbg/
${
ANDROID_ABI
}
/
$VERSION
mkdir
-p
$OUT_DBG_DIR
for
lib
in
${
DBG_LIB_DIR
}
/
*
.so
;
do
${
CROSS_COMPILE
}
objcopy
--only-keep-debug
"
$lib
"
"
$OUT_DBG_DIR
/
`
basename
$lib
.dbg
`
"
;
\
done
for
lib
in
${
OUT_LIB_DIR
}
/
*
.so
;
do
${
CROSS_COMPILE
}
objcopy
--add-gnu-debuglink
=
"
$OUT_DBG_DIR
/
`
basename
$lib
.dbg
`
"
"
$lib
"
;
\
done
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment