1# 2# Copyright (C) 2019 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16#################################################################### 17# Car Ui test mapping target to check resources. # 18#################################################################### 19LOCAL_PATH := $(call my-dir) 20include $(CLEAR_VARS) 21 22intermediates := $(call intermediates-dir-for, PACKAGING, Android,,COMMON) 23car-ui-stamp := $(intermediates)/car-ui-stamp 24script := $(LOCAL_PATH)/auto-generate-resources.py 25 26$(car-ui-stamp): PRIVATE_SCRIPT := $(script) 27$(car-ui-stamp) : $(script) 28 python $(PRIVATE_SCRIPT) -f=updated-resources.xml -c 29 $(hide) mkdir -p $(dir $@) && touch $@ 30 31.PHONY: generate-resources 32LOCAL_COMPATIBILITY_SUITE := device-tests 33 34generate-resources : $(car-ui-stamp) 35