Dongwon Kang | 1fb1d31 | 2017-12-19 11:48:15 +0900 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2017 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 | |
Dongwon Kang | 12bab67 | 2018-09-26 10:40:26 -0700 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | ifneq ($(TARGET_BUILD_PDK),true) # Build MediaComponents only if this is not a PDK build. MediaComponents won't |
| 19 | # build in PDK builds because frameworks/base/core/java is not available but |
| 20 | # IMediaSession2.aidl and IMediaController2.aidl are using classes from |
| 21 | # frameworks/base/core/java. |
| 22 | |
| 23 | include $(CLEAR_VARS) |
| 24 | |
| 25 | LOCAL_PACKAGE_NAME := MediaComponents |
| 26 | LOCAL_MODULE_OWNER := google |
| 27 | |
| 28 | # TODO: create a separate key for this package. |
| 29 | LOCAL_CERTIFICATE := platform |
| 30 | |
| 31 | # TODO: Use System SDK once public APIs are approved |
| 32 | # LOCAL_SDK_VERSION := system_current |
| 33 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 34 | |
| 35 | LOCAL_SRC_FILES := \ |
| 36 | $(call all-java-files-under, src) \ |
| 37 | $(call all-Iaidl-files-under, src) |
| 38 | |
| 39 | LOCAL_PROGUARD_FLAG_FILES := proguard.cfg |
| 40 | |
| 41 | LOCAL_MULTILIB := first |
| 42 | |
| 43 | LOCAL_JAVA_LIBRARIES += androidx.annotation_annotation |
| 44 | |
| 45 | # To embed native libraries in package, uncomment the lines below. |
| 46 | #LOCAL_MODULE_TAGS := samples |
| 47 | #LOCAL_JNI_SHARED_LIBRARIES := \ |
| 48 | # libaacextractor \ |
| 49 | # libamrextractor \ |
| 50 | # libflacextractor \ |
| 51 | # libmidiextractor \ |
| 52 | # libmkvextractor \ |
| 53 | # libmp3extractor \ |
| 54 | # libmp4extractor \ |
| 55 | # libmpeg2extractor \ |
| 56 | # liboggextractor \ |
| 57 | # libwavextractor \ |
| 58 | |
| 59 | # TODO: Remove dependency with other support libraries. |
| 60 | LOCAL_STATIC_ANDROID_LIBRARIES += \ |
| 61 | androidx.legacy_legacy-support-v4 \ |
| 62 | androidx.appcompat_appcompat \ |
| 63 | androidx.palette_palette |
| 64 | LOCAL_USE_AAPT2 := true |
| 65 | |
| 66 | include $(BUILD_PACKAGE) |
| 67 | |
| 68 | endif # ifneq ($(TARGET_BUILD_PDK),true) |
| 69 | |
| 70 | include $(call all-makefiles-under,$(LOCAL_PATH)) |