1a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# Copyright 2014 The Android Open Source Project
2a69729dc76b97c44387088d351480d5d0701517eJeff Tinker#
3a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# Licensed under the Apache License, Version 2.0 (the "License");
4a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# you may not use this file except in compliance with the License.
5a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# You may obtain a copy of the License at
6a69729dc76b97c44387088d351480d5d0701517eJeff Tinker#
7a69729dc76b97c44387088d351480d5d0701517eJeff Tinker#      http://www.apache.org/licenses/LICENSE-2.0
8a69729dc76b97c44387088d351480d5d0701517eJeff Tinker#
9a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# Unless required by applicable law or agreed to in writing, software
10a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# distributed under the License is distributed on an "AS IS" BASIS,
11a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# See the License for the specific language governing permissions and
13a69729dc76b97c44387088d351480d5d0701517eJeff Tinker# limitations under the License.
14a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
15a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_PATH:= $(call my-dir)
16a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
17a69729dc76b97c44387088d351480d5d0701517eJeff Tinkerinclude $(CLEAR_VARS)
18a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
19a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_SRC_FILES:= \
20a69729dc76b97c44387088d351480d5d0701517eJeff Tinker    MediaDrmService.cpp \
21a69729dc76b97c44387088d351480d5d0701517eJeff Tinker    main_mediadrmserver.cpp
22a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
23a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_SHARED_LIBRARIES:= \
24a69729dc76b97c44387088d351480d5d0701517eJeff Tinker    libbinder \
253003807fcfa96c9cbfea18d643f47108aa116cd5Jeff Tinker    liblog \
263003807fcfa96c9cbfea18d643f47108aa116cd5Jeff Tinker    libmediadrm \
2799a5aba027cca8d3e69e333b56168a223e053d82Jeff Tinker    libutils \
28a53d6553fce1818bdf87833f93633c93ad1b5915Jeff Tinker    libhidlbase \
29a53d6553fce1818bdf87833f93633c93ad1b5915Jeff Tinker    libhidlmemory \
305e732cdddf1efd2f78f24b16463c17235103226eSteven Moreland    libhidltransport \
316d998b67be330843f633a563c23c606593060165Jeff Tinker    android.hardware.drm@1.0 \
326d998b67be330843f633a563c23c606593060165Jeff Tinker    android.hardware.drm@1.1
33a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
34c903684e9a8af5450bab61b0883fc81c5a466844Aurimas LiutikasLOCAL_CFLAGS += -Wall -Wextra -Werror
35c903684e9a8af5450bab61b0883fc81c5a466844Aurimas Liutikas
36a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_MODULE:= mediadrmserver
37e9fec5451704893412c8e707940483a6bdb5f238John W. Bruce
38e9fec5451704893412c8e707940483a6bdb5f238John W. Bruce# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
39e9fec5451704893412c8e707940483a6bdb5f238John W. Bruce# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
406527a56de00c47887e28eee03bbdd28b2472ef2eJohn W. Bruce# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
416527a56de00c47887e28eee03bbdd28b2472ef2eJohn W. Bruce# 64-bit.
426527a56de00c47887e28eee03bbdd28b2472ef2eJohn W. Bruceifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
43a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_32_BIT_ONLY := true
44e9fec5451704893412c8e707940483a6bdb5f238John W. Bruceendif
45a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
46a69729dc76b97c44387088d351480d5d0701517eJeff TinkerLOCAL_INIT_RC := mediadrmserver.rc
47a69729dc76b97c44387088d351480d5d0701517eJeff Tinker
48a69729dc76b97c44387088d351480d5d0701517eJeff Tinkerinclude $(BUILD_EXECUTABLE)
49