1# Copyright (C) 2016 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH:= $(call my-dir) 16 17include $(CLEAR_VARS) 18 19LOCAL_CFLAGS += -DLOG_TAG=\"libacryl\" 20#LOCAL_CFLAGS += -DLIBACRYL_DEBUG 21 22ifdef BOARD_LIBACRYL_DEFAULT_COMPOSITOR 23 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_COMPOSITOR=\"$(BOARD_LIBACRYL_DEFAULT_COMPOSITOR)\" 24else 25 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_COMPOSITOR=\"no_default_compositor\" 26endif 27ifdef BOARD_LIBACRYL_DEFAULT_SCALER 28 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_SCALER=\"$(BOARD_LIBACRYL_DEFAULT_SCALER)\" 29else 30 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_SCALER=\"no_default_scaler\" 31endif 32ifdef BOARD_LIBACRYL_DEFAULT_BLTER 33 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_BLTER=\"$(BOARD_LIBACRYL_DEFAULT_BLTER)\" 34else 35 LOCAL_CFLAGS += -DLIBACRYL_DEFAULT_BLTER=\"no_default_blter\" 36endif 37 38LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libion_google 39ifdef BOARD_LIBACRYL_G2D_HDR_PLUGIN 40 LOCAL_SHARED_LIBRARIES += $(BOARD_LIBACRYL_G2D_HDR_PLUGIN) 41 LOCAL_CFLAGS += -DLIBACRYL_G2D_HDR_PLUGIN 42endif 43 44LOCAL_HEADER_LIBRARIES += google_libacryl_hdrplugin_headers 45LOCAL_HEADER_LIBRARIES += google_hal_headers 46 47LOCAL_C_INCLUDES := $(LOCAL_PATH)/local_include 48LOCAL_C_INCLUDES += $(LOCAL_PATH)/include 49 50LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 51 52LOCAL_SRC_FILES := acrylic.cpp acrylic_g2d.cpp 53LOCAL_SRC_FILES += acrylic_factory.cpp acrylic_layer.cpp acrylic_formats.cpp 54LOCAL_SRC_FILES += acrylic_performance.cpp acrylic_device.cpp 55 56LOCAL_MODULE_TAGS := optional 57LOCAL_MODULE := libacryl 58LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 59LOCAL_LICENSE_CONDITIONS := notice 60LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE 61ifeq ($(BOARD_USES_VENDORIMAGE), true) 62LOCAL_PROPRIETARY_MODULE := true 63endif 64 65include $(BUILD_SHARED_LIBRARY) 66