Skip to content
Snippets Groups Projects
Commit fa892b02 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Convert validate_framework_keymaps to Android.bp" into main

parents eed91d4f bedfe383
No related branches found
No related tags found
No related merge requests found
// Copyright 2010 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
genrule {
name: "validate_framework_keymaps",
srcs: [
"*.kl",
"*.kcm",
"*.idc",
],
tools: ["validatekeymaps"],
out: ["stamp"],
cmd: "$(location validatekeymaps) -q $(in) " +
"&& touch $(out)",
dist: {
targets: ["droidcore"],
},
}
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This makefile performs build time validation of framework keymap files.
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/common.mk
# Validate all key maps.
include $(CLEAR_VARS)
LOCAL_MODULE := validate_framework_keymaps
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../NOTICE
intermediates := $(call intermediates-dir-for,ETC,$(LOCAL_MODULE),,COMMON)
LOCAL_BUILT_MODULE := $(intermediates)/stamp
validatekeymaps := $(HOST_OUT_EXECUTABLES)/validatekeymaps$(HOST_EXECUTABLE_SUFFIX)
$(LOCAL_BUILT_MODULE): PRIVATE_VALIDATEKEYMAPS := $(validatekeymaps)
$(LOCAL_BUILT_MODULE) : $(framework_keylayouts) $(framework_keycharmaps) $(framework_keyconfigs) | $(validatekeymaps)
$(hide) $(PRIVATE_VALIDATEKEYMAPS) -q $^
$(hide) mkdir -p $(dir $@) && touch $@
# Run validatekeymaps uncondionally for platform build.
droidcore : $(LOCAL_BUILT_MODULE)
# Reset temp vars.
validatekeymaps :=
framework_keylayouts :=
framework_keycharmaps :=
framework_keyconfigs :=
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This is the list of framework provided keylayouts and key character maps to include.
# Used by Android.mk and keyboards.mk.
framework_keylayouts := $(wildcard $(LOCAL_PATH)/*.kl)
framework_keycharmaps := $(wildcard $(LOCAL_PATH)/*.kcm)
framework_keyconfigs := $(wildcard $(LOCAL_PATH)/*.idc)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment