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 liblog \ 23 libutils \ 24 libcutils \ 25 libEGL \ 26 libutils \ 27 libhardware \ 28 libsync \ 29 libui \ 30 android.hardware.graphics.mapper@2.0 \ 31 32emulator_hwcomposer_cflags += \ 33 -DLOG_TAG=\"hwc2\" \ 34 -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \ 35 -DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION 36 37emulator_hwcomposer_c_includes += \ 38 system/core/libsync \ 39 system/core/libsync/include \ 40 device/generic/goldfish-opengl/system/include \ 41 device/generic/goldfish-opengl/system/OpenglSystemCommon \ 42 device/generic/goldfish-opengl/host/include/libOpenglRender \ 43 device/generic/goldfish-opengl/shared/OpenglCodecCommon \ 44 device/generic/goldfish-opengl/system/renderControl_enc 45 46emulator_hwcomposer_relative_path := hw 47 48emulator_hwcomposer2_src_files := \ 49 EmuHWC2.cpp 50 51include $(CLEAR_VARS) 52 53LOCAL_VENDOR_MODULE := true 54LOCAL_SHARED_LIBRARIES := $(emulator_hwcomposer_shared_libraries) 55LOCAL_SHARED_LIBRARIES += libOpenglSystemCommon lib_renderControl_enc 56LOCAL_SHARED_LIBRARIES += libui 57LOCAL_SRC_FILES := $(emulator_hwcomposer2_src_files) 58LOCAL_C_INCLUDES := $(emulator_hwcomposer_c_includes) 59LOCAL_MODULE_RELATIVE_PATH := $(emulator_hwcomposer_relative_path) 60 61LOCAL_MODULE := hwcomposer.ranchu 62LOCAL_MODULE_TAGS := optional 63 64include $(BUILD_SHARED_LIBRARY) 65