1# Copyright (C) 2021 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) 16include $(CLEAR_VARS) 17 18soc_ver := $(TARGET_BOARD_PLATFORM) 19LOCAL_MODULE := android.hardware.composer.hwc3-service.pixel 20 21LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 22LOCAL_LICENSE_CONDITIONS := notice 23LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE 24 25LOCAL_MODULE_TAGS := optional 26LOCAL_MODULE_RELATIVE_PATH := hw 27LOCAL_PROPRIETARY_MODULE := true 28 29LOCAL_CFLAGS += \ 30 -DSOC_VERSION=$(soc_ver) \ 31 -DLOG_TAG=\"hwc3\" 32 33# hwc3 re-uses hwc2.2 ComposerResource and libexynosdisplay 34LOCAL_SHARED_LIBRARIES := android.hardware.graphics.composer3-V1-ndk \ 35 android.hardware.graphics.composer@2.1-resources \ 36 android.hardware.graphics.composer@2.2-resources \ 37 android.hardware.graphics.composer@2.4 \ 38 com.google.hardware.pixel.display-V7-ndk \ 39 libbase \ 40 libbinder \ 41 libbinder_ndk \ 42 libcutils \ 43 libexynosdisplay \ 44 libfmq \ 45 libhardware \ 46 libhardware_legacy \ 47 liblog \ 48 libsync \ 49 libutils 50 51LOCAL_STATIC_LIBRARIES := libaidlcommonsupport 52 53LOCAL_HEADER_LIBRARIES := \ 54 android.hardware.graphics.composer3-command-buffer \ 55 google_hal_headers \ 56 libgralloc_headers 57 58LOCAL_C_INCLUDES := \ 59 $(TOP)/hardware/google/graphics/common/include \ 60 $(TOP)/hardware/google/graphics/common/libhwc2.1 \ 61 $(TOP)/hardware/google/graphics/common/libhwc2.1/libdevice \ 62 $(TOP)/hardware/google/graphics/common/libhwc2.1/libdisplayinterface \ 63 $(TOP)/hardware/google/graphics/common/libhwc2.1/libdrmresource/include \ 64 $(TOP)/hardware/google/graphics/common/libhwc2.1/libhwchelper \ 65 $(TOP)/hardware/google/graphics/common/libhwc2.1/libhwcService \ 66 $(TOP)/hardware/google/graphics/common/libhwc2.1/libresource \ 67 $(TOP)/hardware/google/graphics/$(soc_ver)/include \ 68 $(TOP)/hardware/google/graphics/$(soc_ver)/libhwc2.1 \ 69 $(TOP)/hardware/google/graphics/$(soc_ver)/libhwc2.1/libdevice \ 70 $(TOP)/hardware/google/graphics/$(soc_ver)/libhwc2.1/libmaindisplay \ 71 $(TOP)/hardware/google/graphics/$(soc_ver)/libhwc2.1/libresource 72 73LOCAL_SRC_FILES := \ 74 Composer.cpp \ 75 ComposerClient.cpp \ 76 ComposerCommandEngine.cpp \ 77 impl/HalImpl.cpp \ 78 impl/ResourceManager.cpp \ 79 service.cpp 80 81ifeq ($(BOARD_USES_HWC_SERVICES),true) 82LOCAL_CFLAGS += -DUSES_HWC_SERVICES 83LOCAL_SHARED_LIBRARIES += libExynosHWCService 84LOCAL_HEADER_LIBRARIES += libbinder_headers 85endif 86 87LOCAL_VINTF_FRAGMENTS = hwc3-default.xml 88LOCAL_INIT_RC := hwc3-pixel.rc 89 90include $(BUILD_EXECUTABLE) 91