Home | History | Annotate | Download | only in clearkey
      1 #
      2 # Copyright (C) 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 LOCAL_PATH:= $(call my-dir)
     17 include $(CLEAR_VARS)
     18 
     19 LOCAL_SRC_FILES:= \
     20     ClearKeyCasPlugin.cpp \
     21     ClearKeyFetcher.cpp \
     22     ClearKeyLicenseFetcher.cpp \
     23     ClearKeySessionLibrary.cpp \
     24     ecm.cpp \
     25     ecm_generator.cpp \
     26     JsonAssetLoader.cpp \
     27     protos/license_protos.proto \
     28 
     29 LOCAL_MODULE := libclearkeycasplugin
     30 
     31 #TODO: move this back to /vendor/lib after conversion to treble
     32 #LOCAL_PROPRIETARY_MODULE := true
     33 LOCAL_MODULE_RELATIVE_PATH := mediacas
     34 
     35 LOCAL_SHARED_LIBRARIES := \
     36     libutils \
     37     liblog \
     38     libcrypto \
     39     libstagefright_foundation \
     40     libprotobuf-cpp-lite \
     41 
     42 LOCAL_STATIC_LIBRARIES := \
     43     libjsmn \
     44 
     45 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     46 
     47 LOCAL_PROTOC_OPTIMIZE_TYPE := full
     48 
     49 define proto_includes
     50 $(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
     51 endef
     52 
     53 LOCAL_C_INCLUDES += \
     54     external/jsmn \
     55     frameworks/av/include \
     56     frameworks/native/include/media \
     57     $(call proto_includes)
     58 
     59 LOCAL_EXPORT_C_INCLUDE_DIRS := \
     60     $(call proto_includes)
     61 
     62 LOCAL_MODULE_TAGS := optional
     63 
     64 include $(BUILD_SHARED_LIBRARY)
     65 
     66 #########################################################################
     67 # Build unit tests
     68 
     69 include $(LOCAL_PATH)/tests/Android.mk
     70