Files
2026-08-24 10:03:24 +08:00

71 lines
1.8 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 := libam_cas
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_cas.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES += liblog\
libcutils \
libutils
LOCAL_CFLAGS += -O0 -Werror
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -eq 29 && echo OK),OK)
LOCAL_PRODUCT_MODULE := true
else
LOCAL_VENDOR_MODULE := true
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libam_cas_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 := both
#LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES := \
src/am_cas.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES += liblog\
libcutils \
libutils
LOCAL_CFLAGS += -O0 -Werror -DLOADSYSBIN
include $(BUILD_STATIC_LIBRARY)