1 # 2 # Include this make file to build your application with car friendly UI. 3 # 4 # Make sure to include it after you've set all your desired LOCAL variables. 5 # Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file. 6 # 7 # For example: 8 # 9 # LOCAL_RESOURCE_DIR := \ 10 # $(LOCAL_PATH)/res 11 # 12 # include packages/services/Car/car-support-lib/car-support.mk 13 # 14 15 # Check that LOCAL_RESOURCE_DIR is defined 16 ifeq (,$(LOCAL_RESOURCE_DIR)) 17 $(error LOCAL_RESOURCE_DIR must be defined) 18 endif 19 20 # Add --auto-add-overlay flag if not present 21 ifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS))) 22 LOCAL_AAPT_FLAGS += --auto-add-overlay 23 endif 24 25 # Include car support library, if not already included 26 ifeq (,$(findstring android.support.car, $(LOCAL_STATIC_JAVA_LIBRARIES))) 27 LOCAL_STATIC_JAVA_LIBRARIES += android.support.car 28 endif 29 30 LOCAL_JAVA_LIBRARIES += android.car 31