Merge "tombstoned: Add a shared library version of libtombstoned_client..."

am: 0f185bb148

Change-Id: I484e4f8ffc384ba56e49fac968fbbe9440abb876
This commit is contained in:
Narayan Kamath 2017-05-23 13:27:29 +00:00 committed by android-build-merger
commit ad9cb6678d
14 changed files with 54 additions and 31 deletions

View file

@ -11,12 +11,32 @@ cc_defaults {
local_include_dirs: ["include"],
}
// Utility library to tombstoned and get an output fd.
cc_library_static {
cc_library_shared {
name: "libtombstoned_client",
defaults: ["debuggerd_defaults"],
srcs: [
"tombstoned_client.cpp",
"tombstoned/tombstoned_client.cpp",
"util.cpp",
],
static_libs: [
"libasync_safe"
],
shared_libs: [
"libcutils",
"libbase",
],
export_include_dirs: ["tombstoned/include"]
}
// Utility library to tombstoned and get an output fd.
cc_library_static {
name: "libtombstoned_client_static",
defaults: ["debuggerd_defaults"],
srcs: [
"tombstoned/tombstoned_client.cpp",
"util.cpp",
],
@ -25,6 +45,8 @@ cc_library_static {
"libcutils",
"libbase",
],
export_include_dirs: ["tombstoned/include"]
}
// Core implementation, linked into libdebuggerd_handler and the dynamic linker.
@ -64,7 +86,7 @@ cc_library_static {
whole_static_libs: [
"libdebuggerd_handler_core",
"libtombstoned_client",
"libtombstoned_client_static",
"libasync_safe",
"libbase",
"libdebuggerd",
@ -159,10 +181,8 @@ cc_test {
srcs: [
"client/debuggerd_client_test.cpp",
"debuggerd_test.cpp",
"tombstoned_client.cpp",
"util.cpp"
],
static_libs: ["libasync_safe"],
static_libs: ["libasync_safe", "libtombstoned_client_static"],
},
},
@ -171,6 +191,7 @@ cc_test {
"libbase",
"libcutils",
"libdebuggerd_client",
"liblog"
],
static_libs: [
@ -211,7 +232,7 @@ cc_binary {
},
static_libs: [
"libtombstoned_client",
"libtombstoned_client_static",
"libdebuggerd",
"libcutils",
],

View file

@ -31,9 +31,10 @@
#include <android-base/stringprintf.h>
#include <android-base/unique_fd.h>
#include <cutils/sockets.h>
#include <debuggerd/handler.h>
#include <debuggerd/protocol.h>
#include <debuggerd/util.h>
#include "debuggerd/handler.h"
#include "protocol.h"
#include "util.h"
using namespace std::chrono_literals;

View file

@ -31,7 +31,7 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <debuggerd/util.h>
#include "util.h"
using namespace std::chrono_literals;
using android::base::unique_fd;

View file

@ -48,9 +48,9 @@
#include "utility.h"
#include "debuggerd/handler.h"
#include "debuggerd/protocol.h"
#include "debuggerd/tombstoned.h"
#include "debuggerd/util.h"
#include "protocol.h"
#include "tombstoned/tombstoned.h"
#include "util.h"
using android::base::unique_fd;
using android::base::ReadFileToString;

View file

@ -27,8 +27,8 @@
#include <android-base/parseint.h>
#include <android-base/unique_fd.h>
#include <debuggerd/client.h>
#include <debuggerd/util.h>
#include <selinux/selinux.h>
#include "util.h"
using android::base::unique_fd;

View file

@ -35,12 +35,13 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <cutils/sockets.h>
#include <debuggerd/handler.h>
#include <debuggerd/protocol.h>
#include <debuggerd/tombstoned.h>
#include <debuggerd/util.h>
#include <gtest/gtest.h>
#include "debuggerd/handler.h"
#include "protocol.h"
#include "tombstoned/tombstoned.h"
#include "util.h"
using namespace std::chrono_literals;
using android::base::unique_fd;

View file

@ -42,8 +42,8 @@
#include <async_safe/log.h>
#include "debuggerd/handler.h"
#include "debuggerd/tombstoned.h"
#include "debuggerd/util.h"
#include "tombstoned/tombstoned.h"
#include "util.h"
#include "backtrace.h"
#include "tombstone.h"

View file

@ -28,8 +28,8 @@
#include <android-base/unique_fd.h>
#include <cutils/sockets.h>
#include "debuggerd/protocol.h"
#include "debuggerd/util.h"
#include "protocol.h"
#include "util.h"
using android::base::unique_fd;

View file

@ -35,8 +35,8 @@
#include <cutils/sockets.h>
#include "debuggerd/handler.h"
#include "debuggerd/protocol.h"
#include "debuggerd/util.h"
#include "protocol.h"
#include "util.h"
#include "intercept_manager.h"

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "debuggerd/tombstoned.h"
#include "tombstoned/tombstoned.h"
#include <fcntl.h>
#include <unistd.h>
@ -25,8 +25,8 @@
#include <async_safe/log.h>
#include <cutils/sockets.h>
#include "debuggerd/protocol.h"
#include "debuggerd/util.h"
#include "protocol.h"
#include "util.h"
using android::base::unique_fd;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "debuggerd/util.h"
#include "util.h"
#include <sys/socket.h>
@ -22,7 +22,7 @@
#include <android-base/unique_fd.h>
#include <cutils/sockets.h>
#include <debuggerd/protocol.h>
#include "protocol.h"
using android::base::unique_fd;