1# 2# Copyright 2015 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 17LOCAL_PATH:= $(call my-dir) 18 19include $(CLEAR_VARS) 20LOCAL_VENDOR_MODULE := true 21emulator_hwcomposer_shared_libraries := \ 22 android.hardware.graphics.mapper@2.0 \ 23 android.hardware.graphics.mapper@4.0 \ 24 libbase \ 25 libEGL \ 26 libcutils \ 27 libcuttlefish_device_config \ 28 libcuttlefish_device_config_proto \ 29 libcuttlefish_utils \ 30 libcuttlefish_fs \ 31 libdrm \ 32 libgralloctypes \ 33 libhardware \ 34 libhidlbase \ 35 libjpeg \ 36 liblog \ 37 libsync \ 38 libui \ 39 libutils \ 40 libutils \ 41 42emulator_hwcomposer_cflags += \ 43 -DLOG_TAG=\"hwc2\" \ 44 -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \ 45 -DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION 46 47emulator_hwcomposer_c_includes += \ 48 device/generic/goldfish-opengl/host/include/libOpenglRender \ 49 device/generic/goldfish-opengl/android-emu \ 50 device/generic/goldfish-opengl/shared/OpenglCodecCommon \ 51 device/generic/goldfish-opengl/system/OpenglSystemCommon \ 52 device/generic/goldfish-opengl/system/include \ 53 device/generic/goldfish-opengl/system/renderControl_enc \ 54 external/libdrm \ 55 system/core/libsync \ 56 system/core/libsync/include \ 57 58emulator_hwcomposer_relative_path := hw 59 60emulator_hwcomposer2_src_files := \ 61 Device.cpp \ 62 Display.cpp \ 63 Drm.cpp \ 64 DrmPresenter.cpp \ 65 Gralloc.cpp \ 66 GuestComposer.cpp \ 67 HostComposer.cpp \ 68 Layer.cpp \ 69 70include $(CLEAR_VARS) 71 72LOCAL_VENDOR_MODULE := true 73LOCAL_STATIC_LIBRARIES := libyuv_static 74LOCAL_SHARED_LIBRARIES := $(emulator_hwcomposer_shared_libraries) 75LOCAL_SHARED_LIBRARIES += libOpenglSystemCommon lib_renderControl_enc 76LOCAL_SHARED_LIBRARIES += libui 77LOCAL_SRC_FILES := $(emulator_hwcomposer2_src_files) 78LOCAL_C_INCLUDES := $(emulator_hwcomposer_c_includes) 79LOCAL_C_INCLUDES += external/drm_hwcomposer 80LOCAL_C_INCLUDES += external/minigbm/cros_gralloc 81LOCAL_MODULE_RELATIVE_PATH := $(emulator_hwcomposer_relative_path) 82 83LOCAL_MODULE := hwcomposer.ranchu 84LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 85LOCAL_LICENSE_CONDITIONS := notice 86LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 87LOCAL_MODULE_TAGS := optional 88 89include $(BUILD_SHARED_LIBRARY) 90 91include $(CLEAR_VARS) 92LOCAL_VENDOR_MODULE := true 93LOCAL_SRC_FILES := drmTest.cpp 94LOCAL_SHARED_LIBRARIES := $(emulator_hwcomposer_shared_libraries) 95LOCAL_SHARED_LIBRARIES += libOpenglSystemCommon lib_renderControl_enc 96LOCAL_SHARED_LIBRARIES += libui 97LOCAL_SHARED_LIBRARIES += libdrm 98LOCAL_C_INCLUDES := $(emulator_hwcomposer_c_includes) 99LOCAL_C_INCLUDES += external/libdrm 100LOCAL_C_INCLUDES += external/drm_hwcomposer 101LOCAL_C_INCLUDES += external/minigbm/cros_gralloc 102LOCAL_MODULE := emulatorDrmTest 103LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 104LOCAL_LICENSE_CONDITIONS := notice 105LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 106include $(BUILD_EXECUTABLE) 107