1 # 2 # Copyright (C) 2016 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 ifneq ($(TARGET_BUILD_PDK), true) 18 19 LOCAL_PATH := $(call my-dir) 20 CAR_BROADCASTRADIO_SUPPORTLIB_PATH := packages/apps/Car/libs/car-broadcastradio-support 21 22 include $(CLEAR_VARS) 23 24 LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-Iaidl-files-under, src) 25 LOCAL_AIDL_INCLUDES := \ 26 $(LOCAL_PATH)/src \ 27 $(CAR_BROADCASTRADIO_SUPPORTLIB_PATH)/src 28 29 LOCAL_PACKAGE_NAME := CarRadioApp 30 LOCAL_PRIVATE_PLATFORM_APIS := true 31 32 LOCAL_CERTIFICATE := platform 33 34 LOCAL_MODULE_TAGS := optional 35 36 LOCAL_PRIVILEGED_MODULE := true 37 38 LOCAL_USE_AAPT2 := true 39 40 LOCAL_JAVA_LIBRARIES += android.car 41 42 LOCAL_STATIC_ANDROID_LIBRARIES += \ 43 android-support-car \ 44 android-support-constraint-layout \ 45 car-apps-common \ 46 car-broadcastradio-support \ 47 car-stream-ui-lib 48 49 LOCAL_STATIC_JAVA_LIBRARIES := \ 50 android-arch-lifecycle-livedata \ 51 android-arch-persistence-db-framework \ 52 android-arch-persistence-db \ 53 android-support-constraint-layout-solver \ 54 bcradio-android-arch-room-common-nodeps \ 55 bcradio-android-arch-room-runtime-nodeps 56 57 LOCAL_ANNOTATION_PROCESSORS := \ 58 bcradio-android-arch-room-common-nodeps \ 59 bcradio-android-arch-room-compiler-nodeps \ 60 bcradio-android-arch-room-migration-nodeps \ 61 bcradio-android-support-annotations-nodeps \ 62 bcradio-antlr4-nodeps \ 63 bcradio-apache-commons-codec-nodeps \ 64 bcradio-auto-common-nodeps \ 65 bcradio-javapoet-nodeps \ 66 bcradio-kotlin-metadata-nodeps \ 67 bcradio-sqlite-jdbc-nodeps \ 68 guava-21.0 \ 69 kotlin-stdlib 70 71 LOCAL_ANNOTATION_PROCESSOR_CLASSES := \ 72 android.arch.persistence.room.RoomProcessor 73 74 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 75 76 LOCAL_PROGUARD_ENABLED := disabled 77 78 LOCAL_DEX_PREOPT := false 79 80 include $(BUILD_PACKAGE) 81 82 include $(CLEAR_VARS) 83 84 LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ 85 bcradio-android-arch-room-runtime-nodeps:libs/android-arch/room/runtime-1.1.0-beta3.aar \ 86 bcradio-android-arch-room-common-nodeps:libs/android-arch/room/common-1.1.0-beta3.jar 87 88 include $(BUILD_MULTI_PREBUILT) 89 90 include $(CLEAR_VARS) 91 92 COMMON_LIBS_PATH := ../../../../prebuilts/tools/common/m2/repository 93 MAVEN_LIBS_PATH := ../../../../prebuilts/maven_repo/android 94 95 LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ 96 bcradio-android-arch-room-common-nodeps:libs/android-arch/room/common-1.1.0-beta3.jar \ 97 bcradio-android-arch-room-compiler-nodeps:libs/android-arch/room/compiler-1.1.0-beta3.jar \ 98 bcradio-android-arch-room-migration-nodeps:libs/android-arch/room/migration-1.1.0-beta3.jar \ 99 bcradio-android-support-annotations-nodeps:$(MAVEN_LIBS_PATH)/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar \ 100 bcradio-antlr4-nodeps:$(COMMON_LIBS_PATH)/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar \ 101 bcradio-apache-commons-codec-nodeps:$(COMMON_LIBS_PATH)/org/eclipse/tycho/tycho-bundles-external/0.18.1/eclipse/plugins/org.apache.commons.codec_1.4.0.v201209201156.jar \ 102 bcradio-auto-common-nodeps:$(COMMON_LIBS_PATH)/com/google/auto/auto-common/0.9/auto-common-0.9.jar \ 103 bcradio-javapoet-nodeps:$(COMMON_LIBS_PATH)/com/squareup/javapoet/1.8.0/javapoet-1.8.0.jar \ 104 bcradio-kotlin-metadata-nodeps:$(COMMON_LIBS_PATH)/me/eugeniomarletti/kotlin-metadata/1.2.1/kotlin-metadata-1.2.1.jar \ 105 bcradio-sqlite-jdbc-nodeps:$(COMMON_LIBS_PATH)/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar 106 107 include $(BUILD_HOST_PREBUILT) 108 109 endif 110