1# Copyright (c) 2022-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#------------------------device manager------------------------------# 15devicemanager_path = "//foundation/distributedhardware/device_manager" 16common_path = "${devicemanager_path}/common" 17utils_path = "${devicemanager_path}/utils" 18services_path = "${devicemanager_path}/services/service" 19servicesimpl_path = "${devicemanager_path}/services/implementation" 20softbuscache_parh = "${devicemanager_path}/services/softbuscache" 21innerkits_path = "${devicemanager_path}/interfaces/inner_kits" 22mini_tools_kits_path = "${devicemanager_path}/interfaces/mini_tools_kits" 23hilog_path = "//base/hiviewdfx/hilog_lite/frameworks/featured" 24third_path = "//third_party/bounds_checking_function" 25dsoftbussdk_path = "//foundation/communication/dsoftbus/sdk" 26ext_path = "${devicemanager_path}/ext" 27os_account_path = "//base/account/os_account" 28samgr_lite_path = "//foundation/systemabilitymgr/samgr_lite/interfaces" 29interfaces_path = "//foundation/communication/ipc/interfaces/innerkits" 30utils_lite_path = "//commonlibrary/utils_lite" 31c_utils_path = "//commonlibrary/c_utils/base/" 32fuzz_test_output_path = "device_manager/device_manager" 33json_path = "${devicemanager_path}/json" 34 35#----------------------compilation options--------------------------# 36dm_ldflags = [ "-lpthread" ] 37declare_args() { 38 device_manager_no_interaction_auth = false 39 device_manager_feature_product = "default" 40 use_nlohmann_json = true 41 42 if (defined(global_parts_info) && 43 defined(global_parts_info.account_os_account)) { 44 os_account_part_exists = true 45 } else { 46 os_account_part_exists = false 47 } 48 49 if (defined(global_parts_info) && 50 defined(global_parts_info.communication_bluetooth)) { 51 support_bluetooth = true 52 } else { 53 support_bluetooth = false 54 } 55 56 if (defined(global_parts_info) && 57 defined(global_parts_info.communication_wifi)) { 58 support_wifi = true 59 } else { 60 support_wifi = false 61 } 62 63 if (defined(global_parts_info) && 64 defined(global_parts_info.powermgr_power_manager)) { 65 support_power_manager = true 66 } else { 67 support_power_manager = false 68 } 69 70 if (defined(global_parts_info) && 71 defined(global_parts_info.theme_screenlock_mgr)) { 72 support_screenlock = true 73 } else { 74 support_screenlock = false 75 } 76 77 if (defined(global_parts_info) && 78 defined(global_parts_info.resourceschedule_memmgr_override)) { 79 support_memmgr = true 80 } else { 81 support_memmgr = false 82 } 83 84 if (defined(global_parts_info) && 85 defined( 86 global_parts_info.distributedhardware_distributed_hardware_adapter)) { 87 device_manager_common = false 88 } else { 89 device_manager_common = true 90 } 91 92 if (defined(global_parts_info) && 93 defined(global_parts_info.msdp_spatial_awareness)) { 94 support_msdp = true 95 } else { 96 support_msdp = false 97 } 98} 99