blob: 7feba678f50408a6070a144586eab7cddf54adce [file] [log] [blame]
#
# Include this make file to build your application with car friendly UI.
#
# Make sure to include it after you've set all your desired LOCAL variables.
# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file.
#
# For example:
#
# LOCAL_RESOURCE_DIR := \
# $(LOCAL_PATH)/res
#
# include packages/services/Car/car-support-lib/car-support.mk
#
# Check that LOCAL_RESOURCE_DIR is defined
ifeq (,$(LOCAL_RESOURCE_DIR))
$(error LOCAL_RESOURCE_DIR must be defined)
endif
# Add --auto-add-overlay flag if not present
ifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS)))
LOCAL_AAPT_FLAGS += --auto-add-overlay
endif
# Include car support library, if not already included
ifeq (,$(findstring android.support.car, $(LOCAL_STATIC_JAVA_LIBRARIES)))
LOCAL_STATIC_JAVA_LIBRARIES += android.support.car
endif
LOCAL_JAVA_LIBRARIES += android.car