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 ClientComposer.cpp \ 62 Common.cpp \ 63 Device.cpp \ 64 Display.cpp \ 65 DisplayConfig.cpp \ 66 DisplayFinder.cpp \ 67 Drm.cpp \ 68 DrmPresenter.cpp \ 69 Gralloc.cpp \ 70 GuestComposer.cpp \ 71 HostComposer.cpp \ 72 HostUtils.cpp \ 73 Layer.cpp \ 74 NoOpComposer.cpp \ 75 VsyncThread.cpp \ 76 77include $(CLEAR_VARS) 78 79LOCAL_VENDOR_MODULE := true 80LOCAL_STATIC_LIBRARIES := libyuv_static 81LOCAL_SHARED_LIBRARIES := $(emulator_hwcomposer_shared_libraries) 82LOCAL_SHARED_LIBRARIES += libOpenglSystemCommon lib_renderControl_enc 83LOCAL_SHARED_LIBRARIES += libui 84LOCAL_SRC_FILES := $(emulator_hwcomposer2_src_files) 85LOCAL_C_INCLUDES := $(emulator_hwcomposer_c_includes) 86LOCAL_C_INCLUDES += external/minigbm/cros_gralloc 87LOCAL_MODULE_RELATIVE_PATH := $(emulator_hwcomposer_relative_path) 88 89LOCAL_MODULE := hwcomposer.ranchu 90LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 91LOCAL_LICENSE_CONDITIONS := notice 92LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.composer@2.4.xml 93LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 94LOCAL_MODULE_TAGS := optional 95 96include $(BUILD_SHARED_LIBRARY) 97 98include $(CLEAR_VARS) 99LOCAL_VENDOR_MODULE := true 100LOCAL_SRC_FILES := drmTest.cpp 101LOCAL_SHARED_LIBRARIES := $(emulator_hwcomposer_shared_libraries) 102LOCAL_SHARED_LIBRARIES += libOpenglSystemCommon lib_renderControl_enc 103LOCAL_SHARED_LIBRARIES += libui 104LOCAL_SHARED_LIBRARIES += libdrm 105LOCAL_C_INCLUDES := $(emulator_hwcomposer_c_includes) 106LOCAL_C_INCLUDES += external/libdrm 107LOCAL_C_INCLUDES += external/minigbm/cros_gralloc 108LOCAL_MODULE := emulatorDrmTest 109LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 110LOCAL_LICENSE_CONDITIONS := notice 111LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 112include $(BUILD_EXECUTABLE) 113