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    "etc:media_service.cfg",
23    "services:media_service",
24  ]
25  if (player_framework_support_seccomp) {
26    deps += [ "seccomp_policy:media_seccomp_filter" ]
27  }
28  if (player_framework_support_screen_capture_controller) {
29    deps += [
30      "etc:screen_capture_capsule_image",
31      "etc:screen_capture_capsule_stop_image",
32      "etc:screen_capture_mic_image",
33      "etc:screen_capture_mic_off_image",
34      "etc:screen_capture_notification_image",
35      "etc:screen_capture_stop_dark_image",
36      "etc:screen_capture_stop_image",
37    ]
38  }
39  if (player_framework_support_screen_capture) {
40    deps += [
41      "etc:screencapture_config",
42      "etc:screencapture_config_dac",
43    ]
44  }
45}
46
47ohos_prebuilt_etc("codec_caps") {
48  source = "etc/codec_caps.xml"
49
50  subsystem_name = "multimedia"
51  module_install_dir = "etc/codec"
52  part_name = "player_framework"
53}
54ohos_prebuilt_etc("recorder_configs") {
55  source = "etc/recorder_configs.xml"
56
57  subsystem_name = "multimedia"
58  module_install_dir = "etc/recorder"
59  part_name = "player_framework"
60}
61