blob: b0d8e7dfb7a6a8ebcd1c837d41d5024206457806 [file] [log] [blame]
Dongwon Kang1fb1d312017-12-19 11:48:15 +09001#
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
17LOCAL_PATH := $(call my-dir)
18
Logan Chien887adab2018-02-13 18:30:25 +080019ifneq ($(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
Sungsoo Lim98f28032018-03-13 09:53:13 +090022# IMediaSession2.aidl and IMediaController2.aidl are using classes from
Logan Chien887adab2018-02-13 18:30:25 +080023# frameworks/base/core/java.
24
Dongwon Kang1fb1d312017-12-19 11:48:15 +090025include $(CLEAR_VARS)
26
Marco Nelissen73a2b252018-01-17 12:43:45 -080027LOCAL_PACKAGE_NAME := MediaComponents
Dongwon Kang1fb1d312017-12-19 11:48:15 +090028LOCAL_MODULE_OWNER := google
Dongwon Kang1fb1d312017-12-19 11:48:15 +090029
30# TODO: create a separate key for this package.
31LOCAL_CERTIFICATE := platform
32
Christofer Åkerstencae43342017-12-20 17:59:35 +090033# TODO: Use System SDK once public APIs are approved
34# LOCAL_SDK_VERSION := system_current
Anton Hansson99e1fcf2018-02-23 17:21:46 +000035LOCAL_PRIVATE_PLATFORM_APIS := true
Christofer Åkerstencae43342017-12-20 17:59:35 +090036
Jaewan Kimc63d0062018-01-29 21:40:32 +090037LOCAL_SRC_FILES := \
38 $(call all-java-files-under, src) \
39 $(call all-Iaidl-files-under, src)
40
Christofer Åkerstencae43342017-12-20 17:59:35 +090041LOCAL_PROGUARD_FLAG_FILES := proguard.cfg
42
Dongwon Kang3e6d2452017-06-29 15:21:53 -070043LOCAL_MULTILIB := first
44
Insun Kang080b9342018-01-17 23:03:48 +090045LOCAL_JAVA_LIBRARIES += android-support-annotations
46
Dongwon Kang3e6d2452017-06-29 15:21:53 -070047# To embed native libraries in package, uncomment the lines below.
Dongwon Kang767456d2018-01-19 16:26:19 -080048#LOCAL_MODULE_TAGS := samples
49#LOCAL_JNI_SHARED_LIBRARIES := \
50# libaacextractor \
51# libamrextractor \
52# libflacextractor \
53# libmidiextractor \
54# libmkvextractor \
55# libmp3extractor \
56# libmp4extractor \
57# libmpeg2extractor \
58# liboggextractor \
59# libwavextractor \
Dongwon Kang3e6d2452017-06-29 15:21:53 -070060
Sungsoo Lim692a5472018-01-17 15:11:07 +090061# TODO: Remove dependency with other support libraries.
62LOCAL_STATIC_ANDROID_LIBRARIES += \
63 android-support-v4 \
64 android-support-v7-appcompat \
65 android-support-v7-palette
66LOCAL_USE_AAPT2 := true
67
Dongwon Kang1fb1d312017-12-19 11:48:15 +090068include $(BUILD_PACKAGE)
Jaewan Kim35a6aa32018-01-21 20:54:43 +090069
Logan Chien887adab2018-02-13 18:30:25 +080070endif # ifneq ($(TARGET_BUILD_PDK),true)
71
Jaewan Kim35a6aa32018-01-21 20:54:43 +090072include $(call all-makefiles-under,$(LOCAL_PATH))