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 | |
15 | ifeq ($(USE_HWC2), true) |
16 | |
17 | $(info "Build HWC 2.0") |
18 | |
19 | LOCAL_PATH := $(call my-dir) |
20 | |
21 | include $(CLEAR_VARS) |
22 | |
23 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
24 | LOCAL_PROPRIETARY_MODULE := true |
25 | endif |
26 | |
27 | LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS) |
28 | LOCAL_CFLAGS := $(HWC_C_FLAGS) |
29 | LOCAL_SHARED_LIBRARIES := $(HWC_SHARED_LIBS) |
30 | |
31 | # hwc 2.2 interface enable |
32 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
33 | LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT |
34 | endif |
35 | |
36 | ifeq ($(HWC_SUPPORT_MODES_LIST), true) |
37 | LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST |
38 | endif |
39 | |
40 | LOCAL_SRC_FILES := \ |
41 | Hwc2Base.cpp \ |
42 | Hwc2Display.cpp \ |
43 | Hwc2Layer.cpp \ |
44 | MesonHwc2.cpp |
45 | |
46 | LOCAL_C_INCLUDES := \ |
47 | hardware/libhardware/include \ |
48 | $(LOCAL_PATH)/include |
49 | |
50 | # !!! static lib sequence is serious, donot change it. |
51 | LOCAL_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 | |
61 | LOCAL_MODULE_TAGS := optional |
62 | LOCAL_MODULE := hwc.composer_static |
63 | |
64 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
65 | $(LOCAL_PATH) |
66 | |
67 | include $(BUILD_STATIC_LIBRARY) |
68 | |
69 | |
70 | include $(CLEAR_VARS) |
71 | |
72 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
73 | LOCAL_PROPRIETARY_MODULE := true |
74 | endif |
75 | |
76 | LOCAL_MODULE_RELATIVE_PATH := hw |
77 | |
78 | LOCAL_CPPFLAGS := $(HWC_CPP_FLAGS) |
79 | LOCAL_CFLAGS := $(HWC_C_FLAGS) |
80 | LOCAL_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 |
86 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28 && echo OK),OK) |
87 | LOCAL_CFLAGS += -DHWC_HDR_METADATA_SUPPORT |
88 | endif |
89 | |
90 | ifeq ($(HWC_SUPPORT_MODES_LIST), true) |
91 | LOCAL_CFLAGS += -DHWC_SUPPORT_MODES_LIST |
92 | endif |
93 | |
94 | LOCAL_SRC_FILES := \ |
95 | Hwc2Module.cpp |
96 | |
97 | LOCAL_C_INCLUDES := \ |
98 | hardware/libhardware/include \ |
99 | $(LOCAL_PATH)/include |
100 | |
101 | # !!! static lib sequence is serious, donot change it. |
102 | LOCAL_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 | |
114 | LOCAL_MODULE_TAGS := optional |
115 | LOCAL_MODULE := hwcomposer.amlogic |
116 | |
117 | include $(BUILD_SHARED_LIBRARY) |
118 | |
119 | endif |
120 |