# Copyright (c) 2024 Huawei Device Co., Ltd. # 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. import("//build/ohos.gni") import("//build/ohos/ndk/ndk.gni") ohos_ndk_headers("os_account_ndk_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./os_account.h", "./os_account_common.h", ] } ohos_ndk_library("libos_account_ndk") { output_name = "os_account_ndk" output_extension = "so" system_capability = "SystemCapability.Account.OsAccount" ndk_description_file = "./libos_account.ndk.json" min_compact_version = "12" system_capability_headers = [ "BasicServicesKit/os_account.h", "BasicServicesKit/os_account_common.h", ] } ohos_ndk_headers("ohprint_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./ohprint.h" ] } ohos_ndk_library("libohprint_ndk") { output_name = "ohprint" output_extension = "so" ndk_description_file = "./ohprint.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.Print.PrintFramework" system_capability_headers = [ "BasicServicesKit/ohprint.h" ] } ohos_ndk_headers("ohscan_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./ohscan.h" ] } ohos_ndk_library("libohscan_ndk") { output_name = "ohscan" output_extension = "so" ndk_description_file = "./ohscan.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.Print.PrintFramework" system_capability_headers = [ "BasicServicesKit/ohscan.h" ] } ohos_ndk_headers("time_service_ndk_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./time_service.h" ] } ohos_ndk_library("libtime_service_ndk") { output_name = "time_service_ndk" output_extension = "so" ndk_description_file = "./libtime_service.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.MiscServices.Time" system_capability_headers = [ "BasicServicesKit/time_service.h" ] } ohos_ndk_headers("ohcommonevent_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./commonevent/oh_commonevent.h", "./commonevent/oh_commonevent_support.h", ] } ohos_ndk_library("libcommonevent_ndk") { output_name = "ohcommonevent" output_extension = "so" ndk_description_file = "./commonevent/libcommonevent.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.Notification.CommonEvent" system_capability_headers = [ "BasicServicesKit/commonevent/oh_commonevent.h", "BasicServicesKit/commonevent/oh_commonevent_support.h", ] } ohos_ndk_headers("ohbattery_info_header") { dest_dir = "$ndk_headers_out_dir/BasicServicesKit/" sources = [ "./ohbattery_info.h" ] } ohos_ndk_library("libohbattery_info_ndk") { output_name = "ohbattery_info" output_extension = "so" ndk_description_file = "./ohbattery_info.ndk.json" min_compact_version = "13" system_capability = "SystemCapability.PowerManager.BatteryManager.Core" system_capability_headers = [ "BasicServicesKit/ohbattery_info.h" ] }