1*e01b6f76SAndroid Build Coastguard Workerpackage { 2*e01b6f76SAndroid Build Coastguard Worker // See: http://go/android-license-faq 3*e01b6f76SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 4*e01b6f76SAndroid Build Coastguard Worker // all of the 'license_kinds' from "hardware_libhardware_license" 5*e01b6f76SAndroid Build Coastguard Worker // to get the below license kinds: 6*e01b6f76SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 7*e01b6f76SAndroid Build Coastguard Worker default_applicable_licenses: ["hardware_libhardware_license"], 8*e01b6f76SAndroid Build Coastguard Worker} 9*e01b6f76SAndroid Build Coastguard Worker 10*e01b6f76SAndroid Build Coastguard Workercc_test { 11*e01b6f76SAndroid Build Coastguard Worker name: "libinput_evdevtests", 12*e01b6f76SAndroid Build Coastguard Worker 13*e01b6f76SAndroid Build Coastguard Worker srcs: [ 14*e01b6f76SAndroid Build Coastguard Worker "BitUtils_test.cpp", 15*e01b6f76SAndroid Build Coastguard Worker "InputDevice_test.cpp", 16*e01b6f76SAndroid Build Coastguard Worker "InputHub_test.cpp", 17*e01b6f76SAndroid Build Coastguard Worker "InputMocks.cpp", 18*e01b6f76SAndroid Build Coastguard Worker "MouseInputMapper_test.cpp", 19*e01b6f76SAndroid Build Coastguard Worker "SwitchInputMapper_test.cpp", 20*e01b6f76SAndroid Build Coastguard Worker "TestHelpers.cpp", 21*e01b6f76SAndroid Build Coastguard Worker ], 22*e01b6f76SAndroid Build Coastguard Worker 23*e01b6f76SAndroid Build Coastguard Worker static_libs: ["libgmock"], 24*e01b6f76SAndroid Build Coastguard Worker 25*e01b6f76SAndroid Build Coastguard Worker shared_libs: [ 26*e01b6f76SAndroid Build Coastguard Worker "libinput_evdev", 27*e01b6f76SAndroid Build Coastguard Worker "liblog", 28*e01b6f76SAndroid Build Coastguard Worker "libutils", 29*e01b6f76SAndroid Build Coastguard Worker ], 30*e01b6f76SAndroid Build Coastguard Worker 31*e01b6f76SAndroid Build Coastguard Worker cflags: [ 32*e01b6f76SAndroid Build Coastguard Worker "-Wall", 33*e01b6f76SAndroid Build Coastguard Worker "-Wextra", 34*e01b6f76SAndroid Build Coastguard Worker "-Werror", 35*e01b6f76SAndroid Build Coastguard Worker "-Wno-unused-parameter", 36*e01b6f76SAndroid Build Coastguard Worker 37*e01b6f76SAndroid Build Coastguard Worker // TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much 38*e01b6f76SAndroid Build Coastguard Worker // here (e.g., use mkdtemp first). At least races will lead to an early failure, as 39*e01b6f76SAndroid Build Coastguard Worker // mkfifo fails on existing files. 40*e01b6f76SAndroid Build Coastguard Worker "-Wno-deprecated-declarations", 41*e01b6f76SAndroid Build Coastguard Worker ], 42*e01b6f76SAndroid Build Coastguard Worker} 43