blob: fff3a620cb8f6955c479d9df7f755739236c7518 [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
Dongwon Kang12bab672018-09-26 10:40:26 -070017LOCAL_PATH := $(call my-dir)
18ifneq ($(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
23include $(CLEAR_VARS)
24
25LOCAL_PACKAGE_NAME := MediaComponents
26LOCAL_MODULE_OWNER := google
27
28# TODO: create a separate key for this package.
29LOCAL_CERTIFICATE := platform
30
31# TODO: Use System SDK once public APIs are approved
32# LOCAL_SDK_VERSION := system_current
33LOCAL_PRIVATE_PLATFORM_APIS := true
34
35LOCAL_SRC_FILES := \
36 $(call all-java-files-under, src) \
37 $(call all-Iaidl-files-under, src)
38
39LOCAL_PROGUARD_FLAG_FILES := proguard.cfg
40
41LOCAL_MULTILIB := first
42
43LOCAL_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.
60LOCAL_STATIC_ANDROID_LIBRARIES += \
61 androidx.legacy_legacy-support-v4 \
62 androidx.appcompat_appcompat \
63 androidx.palette_palette
64LOCAL_USE_AAPT2 := true
65
66include $(BUILD_PACKAGE)
67
68endif # ifneq ($(TARGET_BUILD_PDK),true)
69
70include $(call all-makefiles-under,$(LOCAL_PATH))