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 | |
15 | ifeq ($(USE_HWC2), true) |
16 | |
17 | $(info "Build HWC 2.0") |
18 | |
19 | LOCAL_PATH := $(call my-dir) |
20 | include $(CLEAR_VARS) |
21 | |
22 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
23 | LOCAL_PROPRIETARY_MODULE := true |
24 | endif |
25 | |
26 | LOCAL_MODULE_RELATIVE_PATH := hw |
27 | |
28 | LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS) |
29 | LOCAL_CFLAGS := $(HWC_C_FLAGS) |
30 | LOCAL_SHARED_LIBRARIES := $(HWC_SHARED_LIBS) |
31 | |
32 | # hwc 2.2 interface enable |
33 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
34 | LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT |
35 | endif |
36 | |
37 | ifeq ($(HWC_SUPPORT_MODES_LIST), true) |
38 | LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST |
39 | endif |
40 | |
41 | LOCAL_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 | |
53 | LOCAL_C_INCLUDES := \ |
54 | hardware/libhardware/include \ |
55 | $(LOCAL_PATH)/include |
56 | |
57 | # !!! static lib sequence is serious, donot change it. |
58 | LOCAL_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 | |
68 | LOCAL_MODULE_TAGS := optional |
69 | LOCAL_MODULE := hwcomposer.amlogic |
70 | |
71 | include $(BUILD_SHARED_LIBRARY) |
72 | |
73 | endif |
74 |