Files
device_google_shusky/Android.mk
Chirayu Desai 9502bfa5ba shusky: Set up proprietary files extraction
* The proprietary files lists are generated by comparing stock partition
  contents with AOSP generated partitions.

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: I17b78ccf212d8364070c40fe3c7d06d4048e3fe4
2023-12-16 00:02:42 +02:00

49 lines
1.9 KiB
Makefile

#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# WARNING: Everything listed here will be built on ALL platforms,
# including x86, the universal, and the SDK. Modules must be uniquely
# named (liblights.panda), and must build everywhere, or limit themselves
# to only building on ARM if they include assembly. Individual makefiles
# are responsible for having their own logic, for fine-grained control.
LOCAL_PATH := $(call my-dir)
# if some modules are built directly from this directory (not subdirectories),
# their rules should be written here.
ifneq (,$(filter $(TARGET_DEVICE),ripcurrent husky shiba))
include $(call all-makefiles-under,$(LOCAL_PATH))
DM_LIBS := libdmengine.so libdmjavaplugin.so
DM_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm64/,$(notdir $(DM_LIBS)))
$(DM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "DMService lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /product/lib64/$(notdir $@) $@
DISPLAY_LIBS := libpixeldisplaymanager_jni.so
DISPLAY_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT)/priv-app/PixelDisplayService/lib/arm64/,$(notdir $(DISPLAY_LIBS)))
$(DISPLAY_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "PixelDisplayService lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(DM_SYMLINKS) $(DISPLAY_SYMLINKS)
endif