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:
Joshua Peraza 2018-04-24 15:48:14 -07:00 committed by Commit Bot
parent 7274c9823f
commit d051e00cd8

View File

@ -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