summaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-01-18 12:47:49 -0800
committerMathieu Chartier <mathieuc@google.com>2019-01-18 13:54:56 -0800
commit2ccb53d2855a2ecf1dc3e5fb3a4248a51589ae98 (patch)
tree27ccd25b5953a1c6a56745d0571c8208ed06d758 /Android.bp
parent08cf9ea353f2cd440891eaed7daca47f23afbf33 (diff)
downloadplatform_system_iorap-2ccb53d2855a2ecf1dc3e5fb3a4248a51589ae98.tar.gz
platform_system_iorap-2ccb53d2855a2ecf1dc3e5fb3a4248a51589ae98.tar.bz2
platform_system_iorap-2ccb53d2855a2ecf1dc3e5fb3a4248a51589ae98.zip
Revert "Revert "iorap: Add iorap.inode2filename command line binary""
Removed WaitForDebugger call. Test: atest iorapd-tests # and also manual Bug: 72170747 Bug: 123052350 This reverts commit 08cf9ea353f2cd440891eaed7daca47f23afbf33. Change-Id: I721afb1c71a271b5a74817572c23261e244d3ba7
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp44
1 files changed, 44 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index c81e41c..5209683 100644
--- a/Android.bp
+++ b/Android.bp
@@ -63,8 +63,11 @@ cc_defaults {
"libutils",
"libcutils", // tracing.
+ "libfruit", // dependency injection.
// TODO: remove these annoying dependencies by hiding them in the main library code.
],
+
+ header_libs: ["librxcpp"],
}
cc_library_shared {
@@ -117,9 +120,48 @@ cc_binary {
],
}
+cc_library_static {
+ name: "libiorap-inode2filename",
+ defaults: [
+ "iorap-default-flags",
+ "iorap-default-dependencies",
+ ],
+
+ srcs: [
+ "src/inode2filename/**/*.cc",
+ ],
+}
+
+cc_binary {
+ name: "iorap.inode2filename",
+ defaults: [
+ "iorap-default-flags",
+ "iorap-default-dependencies",
+ ],
+ srcs: [
+ "src/inode2filename/**/*.cc",
+ ],
+ // Easier debugging. TODO: make a separate debug config.
+ // XX: Using -O0 seems to completely hide some errors.
+ cflags: ["-O2", "-UNDEBUG", "-DIORAP_INODE2FILENAME_MAIN=1"],
+ sanitize: {
+ undefined: true,
+ all_undefined: true,
+ // Pretty print when ubsan detects a problem.
+ // Otherwise it just calls abort().
+
+/*
+ diag: {
+ undefined: true,
+ },
+ */ // don't use the diag when you want it to crash.
+ },
+}
+
cc_test {
name: "iorapd-tests",
test_suites: ["device-tests"],
+ gtest: false, // we use gtest *and* gmock.
defaults: [
"iorap-default-flags",
"iorap-default-dependencies",
@@ -127,4 +169,6 @@ cc_test {
srcs: [
"tests/src/**/*.cc",
],
+ cflags: ["-O2", "-UNDEBUG"],
+ static_libs: ["libgmock_main", "libgmock", "libgtest", "libiorap-inode2filename"],
}