1# 2# Include this make file to build your application with car ui. 3# This only applied to app which is not CarActivity based but wants to use car-ui. 4# 5# Make sure to include it after you've set all your desired LOCAL variables. 6# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file. 7# 8# For example: 9# 10# LOCAL_RESOURCE_DIR := \ 11# $(LOCAL_PATH)/res 12# 13# In your .mk file, include the items in the following order, to ensure the prebuilt 14# static libraries are included in the correct order. 15# 16# include vendor/auto/embedded/prebuilts/android-car-lib/car-lib.mk 17# include $(BUILD_PACKAGE) 18# include vendor/auto/embedded/prebuilts/android-car-lib/Android.mk 19 20# Check that LOCAL_RESOURCE_DIR is defined 21ifeq (,$(LOCAL_RESOURCE_DIR)) 22$(error LOCAL_RESOURCE_DIR must be defined) 23endif 24 25LOCAL_STATIC_JAVA_AAR_LIBRARIES += android-car 26 27# Work around limitations of AAR prebuilts 28LOCAL_RESOURCE_DIR += packages/apps/Car/libs/android-car-lib/res 29 30# Include support-v7-appcompat, if not already included 31ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES))) 32LOCAL_STATIC_ANDROID_LIBRARIES += android-support-v7-appcompat 33endif 34 35# Include support-v7-recyclerview, if not already included 36ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES))) 37LOCAL_STATIC_ANDROID_LIBRARIES += android-support-v7-recyclerview 38endif 39 40# Include support-v7-cardview, if not already included 41ifeq (,$(findstring android-support-v7-cardview,$(LOCAL_STATIC_JAVA_LIBRARIES))) 42LOCAL_STATIC_ANDROID_LIBRARIES += android-support-v7-cardview 43endif 44 45# Include support-design, if not already included 46ifeq (,$(findstring android-support-design,$(LOCAL_STATIC_JAVA_LIBRARIES))) 47LOCAL_STATIC_ANDROID_LIBRARIES += android-support-design 48endif 49 50# Include support-v4, if not already included 51ifeq (,$(findstring android-support-v4,$(LOCAL_STATIC_JAVA_LIBRARIES))) 52LOCAL_STATIC_ANDROID_LIBRARIES += android-support-v4 53endif 54