Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rs-hwcomposer project #7

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions cargo_rshwcomposer.mk
Original file line number Diff line number Diff line change
@@ -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 ([email protected])

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