Add skeleton of traced
Add the build structure for the traced deamon.
Change-Id: I047b6ff62f95e5ea4ef709d57f81eebd0eccf9ae
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index 3b4be0c..eb5e051 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -34,7 +34,7 @@
import sys
# Default targets to translate to the blueprint file.
-default_targets = ['//:perfetto_tests']
+default_targets = ['//:perfetto_tests', '//src/traced:traced']
# Arguments for the GN output directory.
gn_args = 'target_os="android" target_cpu="arm" is_debug=false'
@@ -60,6 +60,10 @@
module.static_libs.append('libgmock')
+def enable_gtest_prod(module):
+ module.static_libs.append('libgtest_prod')
+
+
def enable_gtest(module):
assert module.type == 'cc_test'
@@ -86,6 +90,7 @@
builtin_deps = {
'//buildtools:gmock': enable_gmock,
'//buildtools:gtest': enable_gtest,
+ '//gn:gtest_prod_config': enable_gtest_prod,
'//buildtools:gtest_main': enable_gtest,
'//buildtools:libunwind': enable_libunwind,
'//buildtools:protobuf_full': enable_protobuf_full,