• 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
14# Softbus defines features that depend on external components.When adding an external component,
15# you need to add the feature definition of the external component.
16
17declare_args() {
18  dsoftbus_feature_deps_ability_base = true
19  dsoftbus_feature_deps_ability_runtime = true
20  dsoftbus_feature_deps_access_token = true
21  dsoftbus_feature_deps_bluetooth = true
22  dsoftbus_feature_deps_sle = true
23  dsoftbus_feature_deps_bounds_checking_function = true
24  dsoftbus_feature_deps_bundle_framework = true
25  dsoftbus_feature_deps_common_event_service = true
26  dsoftbus_feature_deps_cJSON = true
27  dsoftbus_feature_deps_data_share = true
28  dsoftbus_feature_deps_kv_store = true
29  dsoftbus_feature_deps_device_auth = true
30  dsoftbus_feature_deps_device_info_manager = true
31  dsoftbus_feature_deps_device_certificate_manager = true
32  dsoftbus_feature_deps_drivers_interface_wlan = true
33  dsoftbus_feature_deps_json = true
34  dsoftbus_feature_deps_hicollie = true
35  dsoftbus_feature_deps_hisysevent = true
36  dsoftbus_feature_deps_hitrace = true
37  dsoftbus_feature_deps_hilog = true
38  dsoftbus_feature_deps_huks = true
39  dsoftbus_feature_deps_init = true
40  dsoftbus_feature_deps_ipc = true
41  dsoftbus_feature_deps_openssl = true
42  dsoftbus_feature_deps_os_account = true
43  dsoftbus_feature_deps_relational_store = true
44  dsoftbus_feature_deps_c_utils = true
45  dsoftbus_feature_deps_safwk = true
46  dsoftbus_feature_deps_samgr = true
47  dsoftbus_feature_deps_sqlite = true
48  dsoftbus_feature_deps_wifi = true
49  dsoftbus_feature_deps_wifi_enhance = true
50  dsoftbus_feature_deps_netmanager_base = true
51  dsoftbus_feature_deps_mbedtls = true
52  dsoftbus_feature_deps_libcoap = true
53  dsoftbus_feature_deps_zlib = true
54  dsoftbus_feature_deps_libnl = true
55  dsoftbus_feature_deps_power_manager = true
56  dsoftbus_feature_deps_ffrt = true
57  dsoftbus_feature_deps_usb_manager = true
58  dsoftbus_feature_deps_datamgr_service = true
59  dsoftbus_feature_deps_remoteP2p_service = true
60}
61
62if (defined(global_parts_info) &&
63    !defined(global_parts_info.ability_ability_base)) {
64  dsoftbus_feature_deps_ability_base = false
65}
66if (defined(global_parts_info) &&
67    !defined(global_parts_info.ability_ability_runtime)) {
68  dsoftbus_feature_deps_ability_runtime = false
69}
70if (defined(global_parts_info) &&
71    !defined(global_parts_info.security_access_token)) {
72  dsoftbus_feature_deps_access_token = false
73}
74if (defined(global_parts_info) &&
75    !defined(global_parts_info.communication_bluetooth)) {
76  dsoftbus_feature_deps_bluetooth = false
77}
78if (defined(global_parts_info) &&
79    !defined(global_parts_info.communication_nearlink_service)) {
80  dsoftbus_feature_deps_sle = false
81}
82
83if (defined(global_parts_info) &&
84    !defined(global_parts_info.thirdparty_bounds_checking_function)) {
85  dsoftbus_feature_deps_bounds_checking_function = false
86}
87if (defined(global_parts_info) &&
88    !defined(global_parts_info.bundlemanager_bundle_framework)) {
89  dsoftbus_feature_deps_bundle_framework = false
90}
91if (defined(global_parts_info) &&
92    !defined(global_parts_info.notification_common_event_service)) {
93  dsoftbus_feature_deps_common_event_service = false
94}
95if (defined(global_parts_info) &&
96    !defined(global_parts_info.thirdparty_cJSON)) {
97  dsoftbus_feature_deps_cJSON = false
98}
99if (defined(global_parts_info) &&
100    !defined(global_parts_info.distributeddatamgr_data_share)) {
101  dsoftbus_feature_deps_data_share = false
102}
103if (defined(global_parts_info) &&
104    !defined(global_parts_info.distributeddatamgr_kv_store)) {
105  dsoftbus_feature_deps_kv_store = false
106}
107if (defined(global_parts_info) &&
108    !defined(global_parts_info.security_device_auth)) {
109  dsoftbus_feature_deps_device_auth = false
110}
111if (defined(global_parts_info) &&
112    !defined(global_parts_info.deviceprofile_device_info_manager)) {
113  dsoftbus_feature_deps_device_info_manager = false
114}
115if (defined(global_parts_info) &&
116    !defined(global_parts_info.security_device_certificate_manager)) {
117  dsoftbus_feature_deps_device_certificate_manager = false
118}
119if (defined(global_parts_info) &&
120    !defined(global_parts_info.hdf_drivers_interface_wlan)) {
121  dsoftbus_feature_deps_drivers_interface_wlan = false
122}
123if (defined(global_parts_info) && !defined(global_parts_info.thirdparty_json)) {
124  dsoftbus_feature_deps_json = false
125}
126if (defined(global_parts_info) &&
127    !defined(global_parts_info.hiviewdfx_hicollie)) {
128  dsoftbus_feature_deps_hicollie = false
129}
130if (defined(global_parts_info) &&
131    !defined(global_parts_info.hiviewdfx_hisysevent)) {
132  dsoftbus_feature_deps_hisysevent = false
133}
134if (defined(global_parts_info) &&
135    !defined(global_parts_info.hiviewdfx_hitrace)) {
136  dsoftbus_feature_deps_hitrace = false
137}
138if (defined(global_parts_info) && !defined(global_parts_info.hiviewdfx_hilog)) {
139  dsoftbus_feature_deps_hilog = false
140}
141if (defined(global_parts_info) && !defined(global_parts_info.security_huks)) {
142  dsoftbus_feature_deps_huks = false
143}
144if (defined(global_parts_info) && !defined(global_parts_info.startup_init)) {
145  dsoftbus_feature_deps_init = false
146}
147if (defined(global_parts_info) &&
148    !defined(global_parts_info.communication_ipc)) {
149  dsoftbus_feature_deps_ipc = false
150}
151if (defined(global_parts_info) &&
152    !defined(global_parts_info.thirdparty_openssl)) {
153  dsoftbus_feature_deps_openssl = false
154}
155if (defined(global_parts_info) &&
156    !defined(global_parts_info.account_os_account)) {
157  dsoftbus_feature_deps_os_account = false
158}
159if (defined(global_parts_info) &&
160    !defined(global_parts_info.distributeddatamgr_relational_store)) {
161  dsoftbus_feature_deps_relational_store = false
162}
163if (defined(global_parts_info) &&
164    !defined(global_parts_info.commonlibrary_c_utils)) {
165  dsoftbus_feature_deps_c_utils = false
166}
167if (defined(global_parts_info) &&
168    !defined(global_parts_info.systemabilitymgr_safwk)) {
169  dsoftbus_feature_deps_safwk = false
170}
171if (defined(global_parts_info) &&
172    !defined(global_parts_info.systemabilitymgr_samgr)) {
173  dsoftbus_feature_deps_samgr = false
174}
175if (defined(global_parts_info) &&
176    !defined(global_parts_info.thirdparty_sqlite)) {
177  dsoftbus_feature_deps_sqlite = false
178}
179if (defined(global_parts_info) &&
180    !defined(global_parts_info.communication_wifi)) {
181  dsoftbus_feature_deps_wifi = false
182}
183if (defined(global_parts_info) &&
184    !defined(global_parts_info.communication_wifi_enhance)) {
185  dsoftbus_feature_deps_wifi_enhance = false
186}
187if (defined(global_parts_info) &&
188    !defined(global_parts_info.communication_netmanager_base)) {
189  dsoftbus_feature_deps_netmanager_base = false
190}
191if (defined(global_parts_info) &&
192    !defined(global_parts_info.thirdparty_mbedtls)) {
193  dsoftbus_feature_deps_mbedtls = false
194}
195if (defined(global_parts_info) &&
196    !defined(global_parts_info.thirdparty_libcoap)) {
197  dsoftbus_feature_deps_libcoap = false
198}
199if (defined(global_parts_info) && !defined(global_parts_info.thirdparty_zlib)) {
200  dsoftbus_feature_deps_zlib = false
201}
202if (defined(global_parts_info) &&
203    !defined(global_parts_info.thirdparty_libnl)) {
204  dsoftbus_feature_deps_libnl = false
205}
206if (defined(global_parts_info) &&
207    !defined(global_parts_info.powermgr_power_manager)) {
208  dsoftbus_feature_deps_power_manager = false
209}
210if (defined(global_parts_info) &&
211    !defined(global_parts_info.resourceschedule_ffrt)) {
212  dsoftbus_feature_deps_ffrt = false
213}
214if (defined(global_parts_info) && !defined(global_parts_info.usb_usb_manager)) {
215  dsoftbus_feature_deps_usb_manager = false
216}
217if (defined(global_parts_info) &&
218    !defined(global_parts_info.distributeddatamgr_datamgr_service)) {
219  dsoftbus_feature_deps_datamgr_service = false
220}
221if (defined(global_parts_info) &&
222  !defined(global_parts_info.communication_RemoteP2PService)) {
223  dsoftbus_feature_deps_remoteP2p_service = false
224}
225