-
Notifications
You must be signed in to change notification settings - Fork 7
/
meson_drmhwcomposer.mk
67 lines (51 loc) · 2.26 KB
/
meson_drmhwcomposer.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# SPDX-License-Identifier: Apache-2.0
#
# AOSPEXT project (https://github.com/GloDroid/aospext)
#
# Copyright (C) 2021 GlobalLogic Ukraine
# Copyright (C) 2021-2022 Roman Stratiienko ([email protected])
ifneq ($(filter true, $(BOARD_BUILD_AOSPEXT_DRMHWCOMPOSER)),)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/aospext_cleanup.mk
AOSPEXT_PROJECT_NAME := DRMHWCOMPOSER
AOSPEXT_BUILD_SYSTEM := meson
LOCAL_HEADER_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libbase libcutils libdrm libhardware libhidlbase liblog libsync libui libutils
AOSPEXT_GEN_PKGCONFIGS := base cutils drm hardware hidlbase log sync ui utils
MESON_BUILD_ARGUMENTS := \
# Format: TYPE:REL_PATH_TO_INSTALL_ARTIFACT:VENDOR_SUBDIR:MODULE_NAME:SYMLINK_SUFFIX
# TYPE one of: lib, bin, etc
AOSPEXT_GEN_TARGETS := \
lib:hw/hwcomposer.drm.so:hw:hwcomposer.drm_gd: \
$(BOARD_DRMHWCOMPOSER_EXTRA_TARGETS)
# HWC3
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 33; echo $$?), 0)
LOCAL_HEADER_LIBRARIES += android.hardware.graphics.composer3-command-buffer
LOCAL_SHARED_LIBRARIES += \
libbinder \
libbinder_ndk \
LOCAL_STATIC_LIBRARIES += libaidlcommonsupport
AOSPEXT_GEN_PKGCONFIGS += \
binder binder_ndk aidlcommonsupport \
AOSPEXT_GEN_TARGETS += \
bin:hw/android.hardware.composer.hwc3-service.drm:hw:android.hardware.composer.hwc3-service.drm_aospext: \
etc:init/hwc3-drm.rc:init:hwc3-drm.rc: \
etc:vintf/manifest/hwc3-drm.xml:vintf/manifest:hwc3-drm.xml: \
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -le 33; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += android.hardware.graphics.composer3-V1-ndk
else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -le 34; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += android.hardware.graphics.composer3-V2-ndk
else
LOCAL_SHARED_LIBRARIES += android.hardware.graphics.composer3-V3-ndk
endif
endif
# Build first ARCH only
LOCAL_MULTILIB := first
include $(LOCAL_PATH)/aospext_cross_compile.mk
include $(LOCAL_PATH)/aospext_gen_targets.mk
#-------------------------------------------------------------------------------
endif # BOARD_BUILD_AOSPEXT_DRMHWCOMPOSER