1# Copyright (c) 2022 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") 15import("../../config.gni") 16 17etc_file = { 18 if (av_session_enable_start_stop_on_demand) { 19 sa_profile_json = "./on_demand/avsession_service.cfg" 20 } else { 21 sa_profile_json = "avsession_service.cfg" 22 } 23} 24 25ohos_prebuilt_etc("avsession_service.rc") { 26 source = etc_file.sa_profile_json 27 relative_install_dir = "init" 28 part_name = "av_session" 29 subsystem_name = "multimedia" 30} 31 32ohos_prebuilt_etc("ohos.para.dac") { 33 source = "avsession.para.dac" 34 module_install_dir = "etc/param" 35 part_name = "av_session" 36 subsystem_name = "multimedia" 37} 38