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_bounds_checking_function = true 23 dsoftbus_feature_deps_bundle_framework = true 24 dsoftbus_feature_deps_common_event_service = true 25 dsoftbus_feature_deps_cJSON = true 26 dsoftbus_feature_deps_data_share = true 27 dsoftbus_feature_deps_kv_store = true 28 dsoftbus_feature_deps_device_auth = true 29 dsoftbus_feature_deps_device_info_manager = true 30 dsoftbus_feature_deps_device_certificate_manager = true 31 dsoftbus_feature_deps_drivers_interface_wlan = true 32 dsoftbus_feature_deps_json = true 33 dsoftbus_feature_deps_hicollie = true 34 dsoftbus_feature_deps_hisysevent = true 35 dsoftbus_feature_deps_hitrace = true 36 dsoftbus_feature_deps_hilog = true 37 dsoftbus_feature_deps_huks = true 38 dsoftbus_feature_deps_i18n = 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_datamgr_service = true 58} 59 60if (defined(global_parts_info) && 61 !defined(global_parts_info.ability_ability_base)) { 62 dsoftbus_feature_deps_ability_base = false 63} 64if (defined(global_parts_info) && 65 !defined(global_parts_info.ability_ability_runtime)) { 66 dsoftbus_feature_deps_ability_runtime = false 67} 68if (defined(global_parts_info) && 69 !defined(global_parts_info.security_access_token)) { 70 dsoftbus_feature_deps_access_token = false 71} 72if (defined(global_parts_info) && 73 !defined(global_parts_info.communication_bluetooth)) { 74 dsoftbus_feature_deps_bluetooth = false 75} 76if (defined(global_parts_info) && 77 !defined(global_parts_info.thirdparty_bounds_checking_function)) { 78 dsoftbus_feature_deps_bounds_checking_function = false 79} 80if (defined(global_parts_info) && 81 !defined(global_parts_info.bundlemanager_bundle_framework)) { 82 dsoftbus_feature_deps_bundle_framework = false 83} 84if (defined(global_parts_info) && 85 !defined(global_parts_info.notification_common_event_service)) { 86 dsoftbus_feature_deps_common_event_service = false 87} 88if (defined(global_parts_info) && 89 !defined(global_parts_info.thirdparty_cJSON)) { 90 dsoftbus_feature_deps_cJSON = false 91} 92if (defined(global_parts_info) && 93 !defined(global_parts_info.distributeddatamgr_data_share)) { 94 dsoftbus_feature_deps_data_share = false 95} 96if (defined(global_parts_info) && 97 !defined(global_parts_info.distributeddatamgr_kv_store)) { 98 dsoftbus_feature_deps_kv_store = false 99} 100if (defined(global_parts_info) && 101 !defined(global_parts_info.security_device_auth)) { 102 dsoftbus_feature_deps_device_auth = false 103} 104if (defined(global_parts_info) && 105 !defined(global_parts_info.deviceprofile_device_info_manager)) { 106 dsoftbus_feature_deps_device_info_manager = false 107} 108if (defined(global_parts_info) && 109 !defined(global_parts_info.security_device_certificate_manager)) { 110 dsoftbus_feature_deps_device_certificate_manager = false 111} 112if (defined(global_parts_info) && 113 !defined(global_parts_info.hdf_drivers_interface_wlan)) { 114 dsoftbus_feature_deps_drivers_interface_wlan = false 115} 116if (defined(global_parts_info) && !defined(global_parts_info.thirdparty_json)) { 117 dsoftbus_feature_deps_json = false 118} 119if (defined(global_parts_info) && 120 !defined(global_parts_info.hiviewdfx_hicollie)) { 121 dsoftbus_feature_deps_hicollie = false 122} 123if (defined(global_parts_info) && 124 !defined(global_parts_info.hiviewdfx_hisysevent)) { 125 dsoftbus_feature_deps_hisysevent = false 126} 127if (defined(global_parts_info) && 128 !defined(global_parts_info.hiviewdfx_hitrace)) { 129 dsoftbus_feature_deps_hitrace = false 130} 131if (defined(global_parts_info) && !defined(global_parts_info.hiviewdfx_hilog)) { 132 dsoftbus_feature_deps_hilog = false 133} 134if (defined(global_parts_info) && !defined(global_parts_info.security_huks)) { 135 dsoftbus_feature_deps_huks = false 136} 137if (defined(global_parts_info) && !defined(global_parts_info.global_i18n)) { 138 dsoftbus_feature_deps_i18n = false 139} 140if (defined(global_parts_info) && !defined(global_parts_info.startup_init)) { 141 dsoftbus_feature_deps_init = false 142} 143if (defined(global_parts_info) && 144 !defined(global_parts_info.communication_ipc)) { 145 dsoftbus_feature_deps_ipc = false 146} 147if (defined(global_parts_info) && 148 !defined(global_parts_info.thirdparty_openssl)) { 149 dsoftbus_feature_deps_openssl = false 150} 151if (defined(global_parts_info) && 152 !defined(global_parts_info.account_os_account)) { 153 dsoftbus_feature_deps_os_account = false 154} 155if (defined(global_parts_info) && 156 !defined(global_parts_info.distributeddatamgr_relational_store)) { 157 dsoftbus_feature_deps_relational_store = false 158} 159if (defined(global_parts_info) && 160 !defined(global_parts_info.commonlibrary_c_utils)) { 161 dsoftbus_feature_deps_c_utils = false 162} 163if (defined(global_parts_info) && 164 !defined(global_parts_info.systemabilitymgr_safwk)) { 165 dsoftbus_feature_deps_safwk = false 166} 167if (defined(global_parts_info) && 168 !defined(global_parts_info.systemabilitymgr_samgr)) { 169 dsoftbus_feature_deps_samgr = false 170} 171if (defined(global_parts_info) && 172 !defined(global_parts_info.thirdparty_sqlite)) { 173 dsoftbus_feature_deps_sqlite = false 174} 175if (defined(global_parts_info) && 176 !defined(global_parts_info.communication_wifi)) { 177 dsoftbus_feature_deps_wifi = false 178} 179if (defined(global_parts_info) && 180 !defined(global_parts_info.communication_wifi_enhance)) { 181 dsoftbus_feature_deps_wifi_enhance = false 182} 183if (defined(global_parts_info) && 184 !defined(global_parts_info.communication_netmanager_base)) { 185 dsoftbus_feature_deps_netmanager_base = false 186} 187if (defined(global_parts_info) && 188 !defined(global_parts_info.thirdparty_mbedtls)) { 189 dsoftbus_feature_deps_mbedtls = false 190} 191if (defined(global_parts_info) && 192 !defined(global_parts_info.thirdparty_libcoap)) { 193 dsoftbus_feature_deps_libcoap = false 194} 195if (defined(global_parts_info) && !defined(global_parts_info.thirdparty_zlib)) { 196 dsoftbus_feature_deps_zlib = false 197} 198if (defined(global_parts_info) && 199 !defined(global_parts_info.thirdparty_libnl)) { 200 dsoftbus_feature_deps_libnl = false 201} 202if (defined(global_parts_info) && 203 !defined(global_parts_info.powermgr_power_manager)) { 204 dsoftbus_feature_deps_power_manager = false 205} 206if (defined(global_parts_info) && 207 !defined(global_parts_info.resourceschedule_ffrt)) { 208 dsoftbus_feature_deps_ffrt = false 209} 210if (defined(global_parts_info) && 211 !defined(global_parts_info.distributeddatamgr_datamgr_service)) { 212 dsoftbus_feature_deps_datamgr_service = false 213} 214