• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15import("//build/ohos/sa_profile/sa_profile.gni")
16import("//foundation/multimedia/av_codec/config.gni")
17
18etc_file = {
19  if (av_codec_enable_start_stop_on_demand) {
20    process_cfg = "./on_demand/process.cfg"
21    sa_profile_json = "./on_demand/sa_profile.json"
22  } else {
23    process_cfg = "./process.cfg"
24    sa_profile_json = "./sa_profile.json"
25  }
26}
27
28print("av_codec_enable_start_stop_on_demand =",
29      av_codec_enable_start_stop_on_demand)
30
31ohos_prebuilt_etc("av_codec_service_cfg") {
32  source = etc_file.process_cfg
33  relative_install_dir = "init"
34  part_name = "av_codec"
35  subsystem_name = "multimedia"
36}
37
38ohos_sa_profile("av_codec_service_profile") {
39  sources = [ etc_file.sa_profile_json ]
40  part_name = "av_codec"
41}
42
43group("av_codec_service_etc") {
44  deps = [
45    ":av_codec_service_cfg",
46    ":av_codec_service_profile",
47  ]
48}
49