sapphire: fastcharge: Migrate to blueprint

Change-Id: I200fd6c685183c98f0815b207adae5aa75a37238
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
This commit is contained in:
Davide Garberi
2023-05-30 18:47:24 +02:00
committed by kibria5
parent 1e26aab05f
commit c0aa443540
2 changed files with 19 additions and 40 deletions

19
fastcharge/Android.bp Normal file
View File

@@ -0,0 +1,19 @@
cc_binary {
name: "vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225",
relative_install_path: "hw",
init_rc: ["vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225.rc"],
vintf_fragments: ["vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225.xml"],
vendor: true,
shared_libs: [
"libbase",
"libbinder",
"libcutils",
"libhidlbase",
"libutils",
"vendor.lineage.fastcharge@1.0",
],
srcs: [
"FastCharge.cpp",
"service.cpp",
],
}

View File

@@ -1,40 +0,0 @@
#
# Copyright (C) 2023 The LineageOS 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.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
FastCharge.cpp \
service.cpp
LOCAL_SHARED_LIBRARIES := \
libbase \
libbinder \
libcutils \
libhidlbase \
libutils \
vendor.lineage.fastcharge@1.0
LOCAL_MODULE := vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225
LOCAL_INIT_RC := vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225.rc
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_VINTF_FRAGMENTS := vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_EXECUTABLE)