Builds CTS sources in standalone build

Minor change to spot refactoring bugs earlier.
Builds the CTS code also in standalone builds, without running it.
Also makes the perfetto_cts_deps target auto-generated, to keep
deps in sync.

Change-Id: I9be6577f8732dd17e8940d1d296891e87459cc62
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index fa689ca..c00e697 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -61,6 +61,7 @@
     '//src/profiling/perf:traced_perf',
     '//src/traced/probes:traced_probes',
     '//src/traced/service:traced',
+    '//test/cts:perfetto_cts_deps',
 ]
 
 # Host targets
@@ -169,8 +170,9 @@
 }
 
 
-def enable_gmock(module):
+def enable_gtest_and_gmock(module):
   module.static_libs.add('libgmock')
+  module.static_libs.add('libgtest')
 
 
 def enable_protobuf_full(module):
@@ -224,7 +226,7 @@
     '//gn:default_deps': lambda x: None,
     '//gn:gtest_main': lambda x: None,
     '//gn:protoc': lambda x: None,
-    '//gn:gtest_and_gmock': enable_gmock,
+    '//gn:gtest_and_gmock': enable_gtest_and_gmock,
     '//gn:libunwind': enable_libunwind,
     '//gn:protobuf_full': enable_protobuf_full,
     '//gn:protobuf_lite': enable_protobuf_lite,