Files
BPI-CM9-Linux/aml-comp/multimedia/cas-hal/liblinuxdvb_port/Android.mk
T
2026-08-24 10:03:24 +08:00

80 lines
2.1 KiB
Makefile

# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Copyright The Android Open Source Project
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := liblinuxdvb_port
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 32&& echo OK),OK)
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
endif
LOCAL_MULTILIB := both
#LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES := \
src/am_dmx.c \
src/am_smc.c \
src/aml.c \
src/am_key.c \
src/am_ca.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../libamcas/include
LOCAL_SHARED_LIBRARIES += liblog \
libcutils \
libutils
LOCAL_CFLAGS += -O0 -Werror
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 30&& echo OK),OK)
LOCAL_PROPRIETARY_MODULE := true
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liblinuxdvb_port_sys
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 32&& echo OK),OK)
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
endif
LOCAL_MULTILIB := 32
LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES := \
src/am_dmx.c \
src/am_smc.c \
src/aml.c \
src/am_key.c \
src/am_ca.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../libamcas/include
LOCAL_SHARED_LIBRARIES += liblog \
libcutils \
libutils
LOCAL_CFLAGS += -O0 -Werror
include $(BUILD_STATIC_LIBRARY)