1# Copyright (c) 2023 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 14import("//build/ohos.gni") 15 16ohos_shared_library("liblow_power_player_factory_service_1.0") { 17 include_dirs = [ 18 "include", 19 "vdi", 20 ] 21 sources = [ 22 "src/low_power_player_factory.cpp", 23 "src/lpp_sync_manager_adapter.cpp" 24 ] 25 26 external_deps = [ 27 "c_utils:utils", 28 "hdf_core:libhdf_host", 29 "hdf_core:libhdf_ipc_adapter", 30 "hdf_core:libhdf_utils", 31 "hdf_core:libhdi", 32 "hilog:libhilog", 33 "hitrace:hitrace_meter", 34 "ipc:ipc_single", 35 "drivers_interface_lpplayer:liblow_power_player_proxy_1.0", 36 ] 37 38 innerapi_tags = [ "passthrough" ] 39 install_images = [ chipset_base_dir ] 40 subsystem_name = "hdf" 41 part_name = "drivers_peripheral_lpplayer" 42} 43 44ohos_shared_library("liblpp_driver") { 45 include_dirs = [ 46 "include", 47 ] 48 49 sources = [ "src/lpp_component_driver.cpp" ] 50 51 if (is_standard_system) { 52 external_deps = [ 53 "c_utils:utils", 54 "hdf_core:libhdf_host", 55 "hdf_core:libhdf_ipc_adapter", 56 "hdf_core:libhdf_utils", 57 "hdf_core:libhdi", 58 "hilog:libhilog", 59 "ipc:ipc_single", 60 "drivers_interface_lpplayer:liblow_power_player_stub_1.0", 61 ] 62 } else { 63 external_deps = [ 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 ] 67 } 68 install_images = [ chipset_base_dir ] 69 subsystem_name = "hdf" 70 part_name = "drivers_peripheral_lpplayer" 71 shlib_type = "hdi" 72} 73 74group("lpp_idl_service") { 75 deps = [ 76 ":liblow_power_player_factory_service_1.0", 77 ":liblpp_driver", 78 ] 79}