Fix PDK build
This commit disables "perfetto", "perfetto_integrationtests", and
"perfetto_unittests" in PDK builds because they depend on "libandroid"
or "libservices" which are not in PDK builds as well.
Test: Build a target (described in http://b/72961456) with
`platform.zip` built from master FSK source tree.
Bug: 72961456
Change-Id: Id754c322fefa75d37c5acc55ef52b0efeb4f6e8a
diff --git a/Android.bp b/Android.bp
index 902f142..e4e538a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -156,6 +156,11 @@
"-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
"-DPERFETTO_BUILD_WITH_ANDROID",
],
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
}
cc_defaults {
@@ -256,6 +261,11 @@
"-DGOOGLE_PROTOBUF_NO_RTTI",
"-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
],
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
}
// GN target: //protos/perfetto/config:config_gen
@@ -1890,6 +1900,11 @@
"-DGOOGLE_PROTOBUF_NO_RTTI",
"-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
],
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
}
// GN target: //:traced