• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# This makefile performs build time validation of framework keymap files.
16
17LOCAL_PATH := $(call my-dir)
18
19include $(LOCAL_PATH)/common.mk
20
21# Validate all key maps.
22include $(CLEAR_VARS)
23
24validatekeymaps := $(HOST_OUT_EXECUTABLES)/validatekeymaps$(HOST_EXECUTABLE_SUFFIX)
25files := \
26    $(foreach file,$(keylayouts),frameworks/base/data/keyboards/$(file)) \
27    $(foreach file,$(keycharmaps),frameworks/base/data/keyboards/$(file)) \
28    $(foreach file,$(keyconfigs),frameworks/base/data/keyboards/$(file))
29
30LOCAL_MODULE := validate_framework_keymaps
31LOCAL_MODULE_TAGS := optional
32LOCAL_REQUIRED_MODULES := validatekeymaps
33
34validate_framework_keymaps: $(files)
35	$(hide) $(validatekeymaps) $(files)
36
37include $(BUILD_PHONY_PACKAGE)
38