diff options
author | 2021-12-09 17:14:49 -0800 | |
---|---|---|
committer | 2022-01-28 01:10:19 -0800 | |
commit | bb19287fee88ab0437f7c79dbbc792f121db6b91 (patch) | |
tree | 96249d824fe4fa72af038262158ac7f0ec9003e1 | |
parent | e123883bbd92a1fd95c77fa5ea9eb267f8d9878c (diff) |
Link libinput statically for inputflinger_tests
Linking statically makes it easier to debug tests by letting developer
add logs to libinput and have that reflected in the 'atest' runs for
inputflinger_tests without having to resync.
Also in this CL, enable C++20 for libinput, which would allow us to do
things like specify the default comparison operator.
Bug: 167946763
Test: cd services/inputflinger && atest
Change-Id: Iaa3f2e34d79fa000ef42b74237efae6233b44674
-rw-r--r-- | libs/input/Android.bp | 1 | ||||
-rw-r--r-- | services/inputflinger/tests/Android.bp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/input/Android.bp b/libs/input/Android.bp index e73c3b8518..930d8194d5 100644 --- a/libs/input/Android.bp +++ b/libs/input/Android.bp @@ -35,6 +35,7 @@ filegroup { cc_library { name: "libinput", + cpp_std: "c++20", host_supported: true, cflags: [ "-Wall", diff --git a/services/inputflinger/tests/Android.bp b/services/inputflinger/tests/Android.bp index e68692474d..d19dbaf009 100644 --- a/services/inputflinger/tests/Android.bp +++ b/services/inputflinger/tests/Android.bp @@ -57,7 +57,8 @@ cc_test { ], }, static_libs: [ - "libc++fs" + "libc++fs", + "libinput", ], require_root: true, test_suites: ["device-tests"], |