From c338b752315c2836ff23c0a69694c1e8d1ed9988 Mon Sep 17 00:00:00 2001 From: Roman Stratiienko Date: Wed, 15 Feb 2023 13:54:13 +0200 Subject: [PATCH] Add rs-hwcomposer project Signed-off-by: Roman Stratiienko --- Android.mk | 1 + cargo_rshwcomposer.mk | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 cargo_rshwcomposer.mk diff --git a/Android.mk b/Android.mk index f367251..881f1c9 100644 --- a/Android.mk +++ b/Android.mk @@ -7,6 +7,7 @@ LOCAL_PATH := $(call my-dir) include $(LOCAL_PATH)/cargo_mmradio.mk +include $(LOCAL_PATH)/cargo_rshwcomposer.mk include $(LOCAL_PATH)/meson_dbus.mk include $(LOCAL_PATH)/meson_glib.mk diff --git a/cargo_rshwcomposer.mk b/cargo_rshwcomposer.mk new file mode 100644 index 0000000..19a8a5a --- /dev/null +++ b/cargo_rshwcomposer.mk @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# AOSPEXT project (https://github.com/GloDroid/aospext) +# +# Copyright (C) 2021 GlobalLogic Ukraine +# Copyright (C) 2021-2023 Roman Stratiienko (r.stratiienko@gmail.com) + +AOSPEXT_PROJECT_NAME := RSHWCOMPOSER + +ifneq ($(filter true, $(BOARD_BUILD_AOSPEXT_RSHWCOMPOSER)),) + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SHARED_LIBRARIES := libbinder libbinder_ndk liblog + +# Format: TYPE:REL_PATH_TO_INSTALL_ARTIFACT:VENDOR_SUBDIR:MODULE_NAME:SYMLINK_SUFFIX +# TYPE one of: lib, bin, etc +AOSPEXT_GEN_TARGETS := \ + bin:hw/android.hardware.composer.hwc3-service.rs:hw:android.hardware.composer.hwc3-service.rs: \ + etc:init/android.hardware.composer.hwc3-rs.rc:init:android.hardware.composer.hwc3-rs.rc: \ + etc:vintf/manifest/android.hardware.composer.hwc3-rs.xml:vintf/manifest:android.hardware.composer.hwc3-rs.xml: \ + +# Build first ARCH only +LOCAL_MULTILIB := first +include $(LOCAL_PATH)/cargo_cross.mk +AOSPEXT_TARGETS_DEP:=$(CARGO_GEN_FILES_TARGET) +AOSPEXT_PROJECT_INSTALL_DIR:=$(dir $(AOSPEXT_TARGETS_DEP))/install +AOSPEXT_PROJECT_OUT_INCLUDE_DIR:= +include $(LOCAL_PATH)/aospext_gen_targets.mk + +#------------------------------------------------------------------------------- + +endif # BOARD_BUILD_AOSPEXT_RSHWCOMPOSER