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 14if (defined(ohos_lite)) { 15 import("//build/lite/config/component/lite_component.gni") 16 if (ohos_kernel_type == "liteos_m") { 17 lite_component("device_manager") { 18 features = [ "interfaces/inner_kits/native_cpp:devicemanagersdk" ] 19 } 20 lite_component("device_manager_fwk") { 21 features = [] 22 } 23 group("device_manager_test") { 24 testonly = true 25 deps = [] 26 } 27 } else { 28 lite_component("device_manager") { 29 features = [ 30 "utils:devicemanagerutils", 31 "services/service:devicemanagerservice", 32 "services/implementation:devicemanagerserviceimpl", 33 "interfaces/inner_kits/native_cpp:devicemanagersdk", 34 "test/smallunittest:lite_devicemanager_test", 35 "services/softbuscache:dmdevicecache", 36 ] 37 } 38 lite_component("device_manager_fwk") { 39 features = [ "interfaces/inner_kits/native_cpp:devicemanagersdk" ] 40 } 41 group("device_manager_test") { 42 testonly = true 43 deps = [] 44 } 45 } 46} else { 47 if (defined(harmony_industry_project) && 48 harmony_industry_project == "MINE_HARMONY") { 49 } 50 group("device_manager") { 51 deps = [ 52 "ext:ext_modules", 53 "sa_profile:dm_sa_profile", 54 "services/etc:ohos.para.dac", 55 "services/implementation:devicemanagerserviceimpl", 56 "services/service:devicemanagerservice", 57 "services/softbuscache:dmdevicecache", 58 ] 59 if (product_name != "qemu-arm-linux-min") { 60 deps += [ "display/entry:DeviceManager_UI" ] 61 } 62 } 63 group("device_manager_fwk") { 64 deps = [ 65 "interfaces/cj:cj_distributed_device_manager_ffi_group", 66 "interfaces/inner_kits/native_cpp:devicemanagersdk", 67 "interfaces/kits:devicemanager_native_js", 68 "interfaces/mini_tools_kits/native_cpp:devicemanagerminisdk", 69 ] 70 } 71 group("device_manager_test") { 72 testonly = true 73 deps = [ "test:test" ] 74 } 75} 76