mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
android: name crashpad_handler like a loadable module
There is not any normal way to package native executables in an Android APK (that I've found). It is normal to package native code as loadable modules, but Android's APK installer will ignore files not named like shared objects. Bug: crashpad:30 Change-Id: I45ea3e4b6dbfaf92d3d174e96aafe377928b9294 Reviewed-on: https://chromium-review.googlesource.com/1026157 Commit-Queue: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org>
This commit is contained in:
parent
7274c9823f
commit
d051e00cd8
@ -159,6 +159,26 @@ crashpad_executable("crashpad_handler") {
|
||||
}
|
||||
}
|
||||
|
||||
# There is not any normal way to package native executables in an Android APK.
|
||||
# It is normal to package native code as a loadable module but Android's APK
|
||||
# installer will ignore files not named like a shared object, so give the
|
||||
# handler executable an acceptable name.
|
||||
if (crashpad_is_android) {
|
||||
copy("crashpad_handler_module") {
|
||||
deps = [
|
||||
":crashpad_handler",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$root_out_dir/crashpad_handler",
|
||||
]
|
||||
|
||||
outputs = [
|
||||
"$root_out_dir/libcrashpad_handler.so",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
crashpad_executable("crashpad_handler_test_extended_handler") {
|
||||
testonly = true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user