summaryrefslogtreecommitdiff
path: root/hwc2/Android.mk (plain)
blob: 9304362e7fd128084bb8beaa40233adefe629ed1
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)
20
21include $(CLEAR_VARS)
22
23ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
24LOCAL_PROPRIETARY_MODULE := true
25endif
26
27LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS)
28LOCAL_CFLAGS := $(HWC_C_FLAGS)
29LOCAL_SHARED_LIBRARIES := $(HWC_SHARED_LIBS)
30
31# hwc 2.2 interface enable
32ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
33LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT
34endif
35
36ifeq ($(HWC_SUPPORT_MODES_LIST), true)
37LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST
38endif
39
40LOCAL_SRC_FILES := \
41 Hwc2Base.cpp \
42 Hwc2Display.cpp \
43 Hwc2Layer.cpp \
44 MesonHwc2.cpp
45
46LOCAL_C_INCLUDES := \
47 hardware/libhardware/include \
48 $(LOCAL_PATH)/include
49
50# !!! static lib sequence is serious, donot change it.
51LOCAL_STATIC_LIBRARIES := \
52 hwc.common_static \
53 hwc.composition_static \
54 hwc.postprocessor_static \
55 hwc.display_static \
56 hwc.base_static \
57 hwc.utils_static \
58 hwc.debug_static \
59 libomxutil
60
61LOCAL_MODULE_TAGS := optional
62LOCAL_MODULE := hwc.composer_static
63
64LOCAL_EXPORT_C_INCLUDE_DIRS := \
65 $(LOCAL_PATH)
66
67include $(BUILD_STATIC_LIBRARY)
68
69
70include $(CLEAR_VARS)
71
72ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
73LOCAL_PROPRIETARY_MODULE := true
74endif
75
76LOCAL_MODULE_RELATIVE_PATH := hw
77
78LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS)
79LOCAL_CFLAGS := $(HWC_C_FLAGS)
80LOCAL_SHARED_LIBRARIES := \
81 $(HWC_SHARED_LIBS) \
82 vendor.amlogic.display.meson_display_ipc@1.0 \
83 libmeson_display_service
84
85# hwc 2.2 interface enable
86ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK)
87LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT
88endif
89
90ifeq ($(HWC_SUPPORT_MODES_LIST), true)
91LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST
92endif
93
94LOCAL_SRC_FILES := \
95 Hwc2Module.cpp
96
97LOCAL_C_INCLUDES := \
98 hardware/libhardware/include \
99 $(LOCAL_PATH)/include
100
101# !!! static lib sequence is serious, donot change it.
102LOCAL_STATIC_LIBRARIES := \
103 libmeson_display_adapter_local \
104 hwc.composer_static \
105 hwc.common_static \
106 hwc.composition_static \
107 hwc.postprocessor_static \
108 hwc.display_static \
109 hwc.base_static \
110 hwc.utils_static \
111 hwc.debug_static \
112 libomxutil
113
114LOCAL_MODULE_TAGS := optional
115LOCAL_MODULE := hwcomposer.amlogic
116
117include $(BUILD_SHARED_LIBRARY)
118
119endif
120