summaryrefslogtreecommitdiff
path: root/hwc2/Android.mk (plain)
blob: 5d43f102753a424a17b1c25107e6f2d6eb3121db
1# Copyright (C) 2008 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
15ifeq ($(USE_HWC2), true)
16
17$(info "Build HWC 2.0")
18
19LOCAL_PATH := $(call my-dir)
20include $(CLEAR_VARS)
21
22ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
23LOCAL_PROPRIETARY_MODULE := true
24endif
25
26LOCAL_MODULE_RELATIVE_PATH := hw
27
28LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS)
29LOCAL_CFLAGS := $(HWC_C_FLAGS)
30LOCAL_SHARED_LIBRARIES := $(HWC_SHARED_LIBS)
31
32# hwc 2.2 interface enable
33ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
34LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT
35endif
36
37ifeq ($(HWC_SUPPORT_MODES_LIST), true)
38LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST
39endif
40
41LOCAL_SRC_FILES := \
42 Hwc2Base.cpp \
43 Hwc2Display.cpp \
44 Hwc2Layer.cpp \
45 Hwc2Module.cpp \
46 HwcModeMgr.cpp \
47 FixedSizeModeMgr.cpp \
48 VariableModeMgr.cpp \
49 ActiveModeMgr.cpp \
50 RealModeMgr.cpp \
51 MesonHwc2.cpp
52
53LOCAL_C_INCLUDES := \
54 hardware/libhardware/include \
55 $(LOCAL_PATH)/include
56
57# !!! static lib sequence is serious, donot change it.
58LOCAL_STATIC_LIBRARIES := \
59 hwc.common_static \
60 hwc.composition_static \
61 hwc.postprocessor_static \
62 hwc.display_static \
63 hwc.base_static \
64 hwc.utils_static \
65 hwc.debug_static \
66 libomxutil
67
68LOCAL_MODULE_TAGS := optional
69LOCAL_MODULE := hwcomposer.amlogic
70
71include $(BUILD_SHARED_LIBRARY)
72
73endif
74