• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//build/ohos/ndk/ndk.gni")
16ohos_ndk_headers("os_account_ndk_header") {
17  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
18  sources = [
19    "./os_account.h",
20    "./os_account_common.h",
21  ]
22}
23
24ohos_ndk_library("libos_account_ndk") {
25  output_name = "os_account_ndk"
26  output_extension = "so"
27  system_capability = "SystemCapability.Account.OsAccount"
28  ndk_description_file = "./libos_account.ndk.json"
29  min_compact_version = "12"
30  system_capability_headers = [
31    "BasicServicesKit/os_account.h",
32    "BasicServicesKit/os_account_common.h",
33  ]
34}
35
36ohos_ndk_headers("ohprint_header") {
37  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
38  sources = [ "./ohprint.h" ]
39}
40
41ohos_ndk_library("libohprint_ndk") {
42  output_name = "ohprint"
43  output_extension = "so"
44  ndk_description_file = "./ohprint.ndk.json"
45  min_compact_version = "12"
46  system_capability = "SystemCapability.Print.PrintFramework"
47  system_capability_headers = [ "BasicServicesKit/ohprint.h" ]
48}
49
50ohos_ndk_headers("ohscan_header") {
51  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
52  sources = [ "./ohscan.h" ]
53}
54
55ohos_ndk_library("libohscan_ndk") {
56  output_name = "ohscan"
57  output_extension = "so"
58  ndk_description_file = "./ohscan.ndk.json"
59  min_compact_version = "12"
60  system_capability = "SystemCapability.Print.PrintFramework"
61  system_capability_headers = [ "BasicServicesKit/ohscan.h" ]
62}
63
64ohos_ndk_headers("time_service_ndk_header") {
65  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
66  sources = [ "./time_service.h" ]
67}
68
69ohos_ndk_library("libtime_service_ndk") {
70  output_name = "time_service_ndk"
71  output_extension = "so"
72  ndk_description_file = "./libtime_service.ndk.json"
73  min_compact_version = "12"
74  system_capability = "SystemCapability.MiscServices.Time"
75  system_capability_headers = [ "BasicServicesKit/time_service.h" ]
76}
77
78ohos_ndk_headers("ohcommonevent_header") {
79  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
80  sources = [
81    "./commonevent/oh_commonevent.h",
82    "./commonevent/oh_commonevent_support.h",
83  ]
84}
85
86ohos_ndk_library("libcommonevent_ndk") {
87  output_name = "ohcommonevent"
88  output_extension = "so"
89  ndk_description_file = "./commonevent/libcommonevent.ndk.json"
90  min_compact_version = "12"
91  system_capability = "SystemCapability.Notification.CommonEvent"
92  system_capability_headers = [
93    "BasicServicesKit/commonevent/oh_commonevent.h",
94    "BasicServicesKit/commonevent/oh_commonevent_support.h",
95  ]
96}
97
98ohos_ndk_headers("ohbattery_info_header") {
99  dest_dir = "$ndk_headers_out_dir/BasicServicesKit/"
100  sources = [ "./ohbattery_info.h" ]
101}
102
103ohos_ndk_library("libohbattery_info_ndk") {
104  output_name = "ohbattery_info"
105  output_extension = "so"
106  ndk_description_file = "./ohbattery_info.ndk.json"
107  min_compact_version = "13"
108  system_capability = "SystemCapability.PowerManager.BatteryManager.Core"
109  system_capability_headers = [ "BasicServicesKit/ohbattery_info.h" ]
110}
111