Home | History | Annotate | Download | only in LocalMediaPlayer
      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 
     21 # Proto dependencies
     22 include $(CLEAR_VARS)
     23 
     24 LOCAL_SRC_FILES := $(call all-proto-files-under, proto)
     25 LOCAL_MODULE := LocalMediaPlayer-proto
     26 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
     27 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/proto
     28 
     29 include $(BUILD_STATIC_JAVA_LIBRARY)
     30 
     31 
     32 # Actual Package
     33 
     34 include $(CLEAR_VARS)
     35 
     36 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     37 
     38 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
     39 
     40 LOCAL_PACKAGE_NAME := LocalMediaPlayer
     41 
     42 LOCAL_CERTIFICATE := platform
     43 
     44 LOCAL_MODULE_TAGS := optional
     45 
     46 LOCAL_PRIVILEGED_MODULE := true
     47 
     48 include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk
     49 
     50 LOCAL_STATIC_JAVA_LIBRARIES += \
     51         car-stream-lib \
     52         LocalMediaPlayer-proto
     53 
     54 LOCAL_STATIC_ANDROID_LIBRARIES := \
     55         android-support-v4 \
     56         android-support-design
     57 
     58 LOCAL_USE_AAPT2 := true
     59 
     60 # Include support-v7-appcompat, if not already included
     61 ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
     62 LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
     63 LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
     64 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
     65 endif
     66 
     67 LOCAL_PROGUARD_ENABLED := disabled
     68 
     69 LOCAL_DEX_PREOPT := false
     70 
     71 include packages/services/Car/car-support-lib/car-support.mk
     72 
     73 include $(BUILD_PACKAGE)
     74 
     75 endif
     76