• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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("//foundation/multimedia/player_framework/config.gni")
16
17group("media_services_package") {
18  deps = [
19    ":codec_caps",
20    ":recorder_configs",
21    "engine:media_engine_package",
22    "services:media_service",
23  ]
24  if (player_framework_support_seccomp) {
25    deps += [ "seccomp_policy:media_seccomp_filter" ]
26  }
27  if (player_framework_support_screen_capture_controller) {
28    deps += [
29      "etc:screen_capture_capsule_image",
30      "etc:screen_capture_capsule_stop_image",
31      "etc:screen_capture_mic_image",
32      "etc:screen_capture_mic_off_image",
33      "etc:screen_capture_notification_image",
34      "etc:screen_capture_stop_dark_image",
35      "etc:screen_capture_stop_image",
36    ]
37  }
38  if (player_framework_support_screen_capture) {
39    deps += [
40      "etc:screencapture_config",
41      "etc:screencapture_config_dac",
42    ]
43  }
44}
45
46ohos_prebuilt_etc("codec_caps") {
47  source = "etc/codec_caps.xml"
48
49  subsystem_name = "multimedia"
50  module_install_dir = "etc/codec"
51  part_name = "player_framework"
52}
53ohos_prebuilt_etc("recorder_configs") {
54  source = "etc/recorder_configs.xml"
55
56  subsystem_name = "multimedia"
57  module_install_dir = "etc/recorder"
58  part_name = "player_framework"
59}
60