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 ] 36 } 37 lite_component("device_manager_fwk") { 38 features = [ "interfaces/inner_kits/native_cpp:devicemanagersdk" ] 39 } 40 group("device_manager_test") { 41 testonly = true 42 deps = [] 43 } 44 } 45} else { 46 if (defined(harmony_industry_project) && 47 harmony_industry_project == "MINE_HARMONY") { 48 } 49 group("device_manager") { 50 deps = [ 51 "ext:ext_modules", 52 "sa_profile:dm_sa_profile", 53 "services/etc:ohos.para.dac", 54 "services/implementation:devicemanagerserviceimpl", 55 "services/service:devicemanagerservice", 56 ] 57 } 58 group("device_manager_fwk") { 59 deps = [ 60 "interfaces/inner_kits/native_cpp:devicemanagersdk", 61 "interfaces/kits:devicemanager_native_js", 62 ] 63 } 64 group("device_manager_test") { 65 testonly = true 66 deps = [ "test:test" ] 67 } 68} 69