• 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_engine_gst_package") {
18  deps = [
19    ":media_engine_gst",
20    "plugins:media_engine_gst_plugins",
21  ]
22}
23
24ohos_shared_library("media_engine_gst") {
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29  }
30
31  deps = [
32    "common:media_engine_gst_common",
33    "factory:media_engine_gst_factory",
34    "loader:media_engine_gst_loader",
35    "plugins:media_engine_gst_plugins_common",
36    "//third_party/glib:glib_packages",
37    "//third_party/gstreamer/gst_libav:gst_libav_packages",
38    "//third_party/gstreamer/gstplugins_bad:gstplugins_bad_packages",
39    "//third_party/gstreamer/gstplugins_base:gstplugins_base_packages",
40    "//third_party/gstreamer/gstplugins_good:gstplugins_good_packages",
41    "//third_party/gstreamer/gstreamer:gstreamer_packages",
42  ]
43
44  external_deps = [ "hilog:libhilog" ]
45
46  if (multimedia_player_framework_support_player) {
47    deps += [ "player:media_engine_gst_player" ]
48  }
49
50  if (multimedia_player_framework_support_recorder) {
51    deps += [ "recorder:media_engine_gst_recorder" ]
52  }
53
54  if (multimedia_player_framework_support_codec) {
55    deps += [ "avcodec:media_engine_gst_avcodec" ]
56  }
57
58  if (multimedia_player_framework_support_metadata) {
59    deps += [ "avmetadatahelper:media_engine_gst_avmeta" ]
60  }
61
62  relative_install_dir = "media"
63  subsystem_name = "multimedia"
64  part_name = "player_framework"
65}
66