summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wei Li <weiwli@google.com> 2025-03-19 23:26:32 -0700
committer Wei Li <weiwli@google.com> 2025-03-19 23:28:23 -0700
commit2415c43a8bf5e683555fcaa48d1dad522db62229 (patch)
tree6eaa91c51e00cbbff31d4514b85793415e83f03c
parenteeeecde99be520fc03c9186b4099cf0a1a11fa5d (diff)
Convert PRODUCT_COPY_FILES for keyboards data to Android.bp
Bug: 401370820 Test: presubmits Change-Id: Ibaaf34b8116a746fd2262d53fd4fc6fbc5b012ec
-rw-r--r--data/keyboards/Android.bp11
-rw-r--r--data/keyboards/keyboards.mk10
2 files changed, 10 insertions, 11 deletions
diff --git a/data/keyboards/Android.bp b/data/keyboards/Android.bp
index 423b55bd85db..69b29bd5c7d3 100644
--- a/data/keyboards/Android.bp
+++ b/data/keyboards/Android.bp
@@ -12,12 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
genrule {
name: "validate_framework_keymaps",
srcs: [
- "*.kl",
- "*.kcm",
"*.idc",
+ "*.kcm",
+ "*.kl",
],
tools: ["validatekeymaps"],
out: ["stamp"],
@@ -33,7 +37,6 @@ prebuilt_usr_keylayout {
srcs: [
"*.kl",
],
- no_full_install: true,
}
prebuilt_usr_keychars {
@@ -41,7 +44,6 @@ prebuilt_usr_keychars {
srcs: [
"*.kcm",
],
- no_full_install: true,
}
prebuilt_usr_idc {
@@ -49,5 +51,4 @@ prebuilt_usr_idc {
srcs: [
"*.idc",
],
- no_full_install: true,
}
diff --git a/data/keyboards/keyboards.mk b/data/keyboards/keyboards.mk
index c7ce8cd6693a..47bc63268754 100644
--- a/data/keyboards/keyboards.mk
+++ b/data/keyboards/keyboards.mk
@@ -14,9 +14,7 @@
# Warning: this is actually a product definition, to be inherited from
-PRODUCT_COPY_FILES := \
- $(call find-copy-subdir-files,*.kl,$(LOCAL_PATH),system/usr/keylayout) \
- $(call find-copy-subdir-files,*.kcm,$(LOCAL_PATH),system/usr/keychars) \
- $(call find-copy-subdir-files,*.idc,$(LOCAL_PATH),system/usr/idc)
-
-
+PRODUCT_PACKAGES += \
+ keylayout_data \
+ keychars_data \
+ idc_data