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" 22hilog_path = "//base/hiviewdfx/hilog_lite/frameworks/featured" 23third_path = "//third_party/bounds_checking_function" 24dsoftbussdk_path = "//foundation/communication/dsoftbus/sdk" 25ext_path = "${devicemanager_path}/ext" 26os_account_path = "//base/account/os_account" 27samgr_lite_path = "//foundation/systemabilitymgr/samgr_lite/interfaces" 28interfaces_path = "//foundation/communication/ipc/interfaces/innerkits" 29utils_lite_path = "//commonlibrary/utils_lite" 30c_utils_path = "//commonlibrary/c_utils/base/" 31fuzz_test_output_path = "device_manager/device_manager" 32 33#----------------------compilation options--------------------------# 34dm_ldflags = [ "-lpthread" ] 35declare_args() { 36 device_manager_no_interaction_auth = false 37 device_manager_feature_product = "default" 38 39 if (defined(global_parts_info) && 40 defined(global_parts_info.account_os_account)) { 41 os_account_part_exists = true 42 } else { 43 os_account_part_exists = false 44 } 45 46 if (defined(global_parts_info) && 47 defined(global_parts_info.communication_bluetooth)) { 48 support_bluetooth = true 49 } else { 50 support_bluetooth = false 51 } 52 53 if (defined(global_parts_info) && 54 defined(global_parts_info.communication_wifi)) { 55 support_wifi = true 56 } else { 57 support_wifi = false 58 } 59 60 if (defined(global_parts_info) && 61 defined(global_parts_info.powermgr_power_manager)) { 62 support_power_manager = true 63 } else { 64 support_power_manager = false 65 } 66 67 if (defined(global_parts_info) && 68 defined(global_parts_info.theme_screenlock_mgr)) { 69 support_screenlock = true 70 } else { 71 support_screenlock = false 72 } 73 74 if (defined(global_parts_info) && 75 defined(global_parts_info.resourceschedule_memmgr_override)) { 76 support_memmgr = true 77 } else { 78 support_memmgr = false 79 } 80} 81