• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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############# Build legacy drm service ############
18
19LOCAL_PATH := $(call my-dir)
20
21include $(CLEAR_VARS)
22LOCAL_MODULE := android.hardware.drm@1.0-service
23LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc
24LOCAL_PROPRIETARY_MODULE := true
25LOCAL_MODULE_RELATIVE_PATH := hw
26LOCAL_SRC_FILES := \
27  service.cpp \
28
29LOCAL_SHARED_LIBRARIES := \
30  android.hardware.drm@1.0 \
31  android.hidl.memory@1.0 \
32  libhidlbase \
33  libhidltransport \
34  libhardware \
35  liblog \
36  libutils \
37  libbinder \
38
39LOCAL_STATIC_LIBRARIES := \
40  android.hardware.drm@1.0-helper \
41
42LOCAL_C_INCLUDES := \
43  hardware/interfaces/drm
44
45LOCAL_HEADER_LIBRARIES := \
46  media_plugin_headers
47
48# TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be
49# migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit,
50# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
51# 64-bit.
52ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
53LOCAL_32_BIT_ONLY := true
54endif
55
56include $(BUILD_EXECUTABLE)
57
58############# Build legacy drm impl library ############
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := android.hardware.drm@1.0-impl
62LOCAL_PROPRIETARY_MODULE := true
63LOCAL_MODULE_RELATIVE_PATH := hw
64LOCAL_SRC_FILES := \
65    DrmFactory.cpp \
66    DrmPlugin.cpp \
67    CryptoFactory.cpp \
68    CryptoPlugin.cpp \
69    LegacyPluginPath.cpp \
70    TypeConvert.cpp \
71
72LOCAL_SHARED_LIBRARIES := \
73    android.hardware.drm@1.0 \
74    android.hidl.memory@1.0 \
75    libcutils \
76    libhidlbase \
77    libhidlmemory \
78    libhidltransport \
79    liblog \
80    libstagefright_foundation \
81    libutils \
82
83LOCAL_STATIC_LIBRARIES := \
84    android.hardware.drm@1.0-helper \
85
86LOCAL_C_INCLUDES := \
87    frameworks/native/include \
88    frameworks/av/include
89
90# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
91# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
92# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as
93# 64-bit.
94ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
95LOCAL_32_BIT_ONLY := true
96endif
97
98include $(BUILD_SHARED_LIBRARY)
99