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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Logan Chien | 887adab | 2018-02-13 18:30:25 +0800 | [diff] [blame] | 19 | ifneq ($(TARGET_BUILD_PDK),true) |
| 20 | # Build MediaComponents only if this is not a PDK build. MediaComponents won't |
| 21 | # build in PDK builds because frameworks/base/core/java is not available but |
| 22 | # IMediaSession2.aidl and IMediaSession2Callback.aidl are using classes from |
| 23 | # frameworks/base/core/java. |
| 24 | |
Dongwon Kang | 1fb1d31 | 2017-12-19 11:48:15 +0900 | [diff] [blame] | 25 | include $(CLEAR_VARS) |
| 26 | |
Marco Nelissen | 73a2b25 | 2018-01-17 12:43:45 -0800 | [diff] [blame] | 27 | LOCAL_PACKAGE_NAME := MediaComponents |
Dongwon Kang | 1fb1d31 | 2017-12-19 11:48:15 +0900 | [diff] [blame] | 28 | LOCAL_MODULE_OWNER := google |
Dongwon Kang | 1fb1d31 | 2017-12-19 11:48:15 +0900 | [diff] [blame] | 29 | |
| 30 | # TODO: create a separate key for this package. |
| 31 | LOCAL_CERTIFICATE := platform |
| 32 | |
Christofer Ã…kersten | cae4334 | 2017-12-20 17:59:35 +0900 | [diff] [blame] | 33 | # TODO: Use System SDK once public APIs are approved |
| 34 | # LOCAL_SDK_VERSION := system_current |
| 35 | |
Jaewan Kim | c63d006 | 2018-01-29 21:40:32 +0900 | [diff] [blame] | 36 | LOCAL_SRC_FILES := \ |
| 37 | $(call all-java-files-under, src) \ |
| 38 | $(call all-Iaidl-files-under, src) |
| 39 | |
Christofer Ã…kersten | cae4334 | 2017-12-20 17:59:35 +0900 | [diff] [blame] | 40 | LOCAL_PROGUARD_FLAG_FILES := proguard.cfg |
| 41 | |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame] | 42 | LOCAL_MULTILIB := first |
| 43 | |
Insun Kang | 080b934 | 2018-01-17 23:03:48 +0900 | [diff] [blame] | 44 | LOCAL_JAVA_LIBRARIES += android-support-annotations |
| 45 | |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame] | 46 | # To embed native libraries in package, uncomment the lines below. |
Dongwon Kang | 767456d | 2018-01-19 16:26:19 -0800 | [diff] [blame] | 47 | #LOCAL_MODULE_TAGS := samples |
| 48 | #LOCAL_JNI_SHARED_LIBRARIES := \ |
| 49 | # libaacextractor \ |
| 50 | # libamrextractor \ |
| 51 | # libflacextractor \ |
| 52 | # libmidiextractor \ |
| 53 | # libmkvextractor \ |
| 54 | # libmp3extractor \ |
| 55 | # libmp4extractor \ |
| 56 | # libmpeg2extractor \ |
| 57 | # liboggextractor \ |
| 58 | # libwavextractor \ |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame] | 59 | |
Sungsoo Lim | 692a547 | 2018-01-17 15:11:07 +0900 | [diff] [blame] | 60 | # TODO: Remove dependency with other support libraries. |
| 61 | LOCAL_STATIC_ANDROID_LIBRARIES += \ |
| 62 | android-support-v4 \ |
| 63 | android-support-v7-appcompat \ |
| 64 | android-support-v7-palette |
| 65 | LOCAL_USE_AAPT2 := true |
| 66 | |
Dongwon Kang | 1fb1d31 | 2017-12-19 11:48:15 +0900 | [diff] [blame] | 67 | include $(BUILD_PACKAGE) |
Jaewan Kim | 35a6aa3 | 2018-01-21 20:54:43 +0900 | [diff] [blame] | 68 | |
Logan Chien | 887adab | 2018-02-13 18:30:25 +0800 | [diff] [blame] | 69 | endif # ifneq ($(TARGET_BUILD_PDK),true) |
| 70 | |
Jaewan Kim | 35a6aa3 | 2018-01-21 20:54:43 +0900 | [diff] [blame] | 71 | include $(call all-makefiles-under,$(LOCAL_PATH)) |