Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2010 The Android Open Source Project |
| 3 | // |
| 4 | // Keymap validation tool. |
| 5 | // |
| 6 | |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 7 | package { |
| 8 | // See: http://go/android-license-faq |
| 9 | // A large-scale-change added 'default_applicable_licenses' to import |
| 10 | // all of the 'license_kinds' from "frameworks_base_license" |
| 11 | // to get the below license kinds: |
| 12 | // SPDX-license-identifier-Apache-2.0 |
| 13 | default_applicable_licenses: ["frameworks_base_license"], |
| 14 | } |
| 15 | |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 16 | cc_binary_host { |
| 17 | name: "validatekeymaps", |
Siarhei Vishniakou | 3d1504f | 2023-04-17 17:05:49 -0700 | [diff] [blame^] | 18 | cpp_std: "c++20", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 19 | srcs: ["Main.cpp"], |
| 20 | |
| 21 | cflags: [ |
| 22 | "-Wall", |
| 23 | "-Werror", |
Siarhei Vishniakou | df6630a | 2022-05-18 13:34:55 -0700 | [diff] [blame] | 24 | "-Wextra", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 25 | ], |
| 26 | |
| 27 | static_libs: [ |
Siarhei Vishniakou | 8027876 | 2018-07-06 11:50:18 +0100 | [diff] [blame] | 28 | "libbase", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 29 | "libinput", |
| 30 | "libutils", |
| 31 | "libcutils", |
| 32 | "liblog", |
chaviw | 929d80f | 2020-07-01 12:01:54 -0700 | [diff] [blame] | 33 | "libui-types", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 34 | ], |
Siarhei Vishniakou | df6630a | 2022-05-18 13:34:55 -0700 | [diff] [blame] | 35 | shared_libs: [ |
| 36 | "libvintf", |
| 37 | ], |
Brett Chabot | 4bfc650 | 2020-11-03 16:04:22 -0800 | [diff] [blame] | 38 | target: { |
Colin Cross | e8f6f0b | 2022-03-08 18:17:43 -0800 | [diff] [blame] | 39 | host_linux: { |
Brett Chabot | 4bfc650 | 2020-11-03 16:04:22 -0800 | [diff] [blame] | 40 | static_libs: [ |
| 41 | // libbinder is only available for linux |
| 42 | "libbinder", |
| 43 | ], |
| 44 | }, |
| 45 | }, |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 46 | |
| 47 | // This tool is prebuilt if we're doing an app-only build. |
| 48 | product_variables: { |
| 49 | unbundled_build: { |
Brett Chabot | 4bfc650 | 2020-11-03 16:04:22 -0800 | [diff] [blame] | 50 | enabled: false, |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 51 | }, |
| 52 | }, |
| 53 | } |