Use the test version of the aconfig flagging library in libinput
This means we can avoid adding the flagging library as a separate shared
dependency of libinput wherever libinput is used.
Bug: 304574138
Test: build, atest inputflinger_tests
Change-Id: I1b14554c410baf0f8d020ddf314f1b38365e3b16
diff --git a/libs/input/Android.bp b/libs/input/Android.bp
index ab4af1a..69a4f0a 100644
--- a/libs/input/Android.bp
+++ b/libs/input/Android.bp
@@ -46,6 +46,14 @@
name: "aconfig_input_flags_c_lib",
aconfig_declarations: "aconfig_input_flags",
host_supported: true,
+ // Use the test version of the aconfig flag library by default to allow tests to set local
+ // overrides for flags, without having to link against a separate version of libinput or of this
+ // library. Bundling this library directly into libinput prevents us from having to add this
+ // library as a shared lib dependency everywhere where libinput is used.
+ test: true,
+ shared: {
+ enabled: false,
+ },
}
aidl_interface {