Jeff Brown | 061cf75 | 2010-11-18 20:52:43 -0800 | [diff] [blame] | 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(LOCAL_PATH)/common.mk |
Jeff Brown | 6f2fba4 | 2011-02-19 01:08:02 -0800 | [diff] [blame] | 20 | |
| 21 | # Validate all key maps. |
| 22 | include $(CLEAR_VARS) |
| 23 | |
Jeff Brown | 6f2fba4 | 2011-02-19 01:08:02 -0800 | [diff] [blame] | 24 | LOCAL_MODULE := validate_framework_keymaps |
Michael Wright | 18e14c7 | 2013-08-29 14:33:58 -0700 | [diff] [blame] | 25 | intermediates := $(call intermediates-dir-for,ETC,$(LOCAL_MODULE),,COMMON) |
| 26 | LOCAL_BUILT_MODULE := $(intermediates)/stamp |
Jeff Brown | 6f2fba4 | 2011-02-19 01:08:02 -0800 | [diff] [blame] | 27 | |
Michael Wright | 18e14c7 | 2013-08-29 14:33:58 -0700 | [diff] [blame] | 28 | validatekeymaps := $(HOST_OUT_EXECUTABLES)/validatekeymaps$(HOST_EXECUTABLE_SUFFIX) |
| 29 | $(LOCAL_BUILT_MODULE): PRIVATE_VALIDATEKEYMAPS := $(validatekeymaps) |
| 30 | $(LOCAL_BUILT_MODULE) : $(framework_keylayouts) $(framework_keycharmaps) $(framework_keyconfigs) | $(validatekeymaps) |
| 31 | $(hide) $(PRIVATE_VALIDATEKEYMAPS) $^ |
| 32 | $(hide) mkdir -p $(dir $@) && touch $@ |
Jeff Brown | 6f2fba4 | 2011-02-19 01:08:02 -0800 | [diff] [blame] | 33 | |
Michael Wright | 18e14c7 | 2013-08-29 14:33:58 -0700 | [diff] [blame] | 34 | # Run validatekeymaps uncondionally for platform build. |
Ying Wang | 366d6d0 | 2015-05-05 16:12:41 -0700 | [diff] [blame] | 35 | droidcore : $(LOCAL_BUILT_MODULE) |
Michael Wright | 18e14c7 | 2013-08-29 14:33:58 -0700 | [diff] [blame] | 36 | |
| 37 | # Reset temp vars. |
| 38 | validatekeymaps := |
| 39 | framework_keylayouts := |
| 40 | framework_keycharmaps := |
| 41 | framework_keyconfigs := |