• 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
17config("media_engine_gst_player_config") {
18  visibility = [ ":*" ]
19
20  cflags = [
21    "-std=c++17",
22    "-fno-rtti",
23    "-fno-exceptions",
24    "-Wall",
25    "-fno-common",
26    "-fstack-protector-strong",
27    "-FPIC",
28    "-FS",
29    "-O2",
30    "-D_FORTIFY_SOURCE=2",
31    "-fvisibility=hidden",
32    "-Wformat=2",
33    "-Wfloat-equal",
34    "-Wdate-time",
35    "-DOHOS_EXT_FUNC",
36    "-DOHOS_OPT_COMPAT",
37    "-Werror",
38    "-Wextra",
39    "-Wimplicit-fallthrough",
40    "-Wsign-compare",
41    "-Wunused-parameter",
42    "-Wno-deprecated-declarations",
43  ]
44
45  include_dirs = [
46    "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins/sink/memsink",
47    "//foundation/multimedia/player_framework/services/utils/include",
48    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
49    "//foundation/multimedia/player_framework/services/services/engine_intf",
50    "//foundation/multimedia/player_framework/services/common",
51    "//foundation/multimedia/player_framework/services/engine/gstreamer/common/playbin_adapter",
52    "//foundation/multimedia/player_framework/services/engine/gstreamer/common/appsrc_wrap",
53    "//foundation/multimedia/player_framework/services/engine/gstreamer/common/metadata",
54    "//foundation/multimedia/player_framework/services/engine/gstreamer/common/utils",
55    "//foundation/multimedia/audio_framework/frameworks/innerkitsimpl/common/include",
56    "//foundation/multimedia/audio_framework/interfaces/innerkits/native/audiocommon/include",
57    "//foundation/multimedia/audio_framework/interfaces/innerkits/native/audiomanager/include",
58    "//foundation/graphic/graphic_2d/frameworks/surface/include",
59    "//foundation/graphic/graphic_2d/utils/sync_fence/export",
60    "//drivers/peripheral/audio/interfaces/include",
61    "//drivers/peripheral/display/interfaces/include",
62    "//third_party/gstreamer/gstreamer",
63    "//third_party/gstreamer/gstreamer/libs",
64    "//third_party/gstreamer/gstplugins_base/gst",
65    "//third_party/gstreamer/gstplugins_base/gst-libs",
66    "//third_party/gstreamer/gstplugins_base/gst-libs/gst/video",
67    "//third_party/gstreamer/gstplugins_bad/gst-libs",
68    "//third_party/glib/glib",
69    "//third_party/glib",
70    "//third_party/glib/gmodule",
71    "//commonlibrary/c_utils/base/include",
72  ]
73  defines = []
74  defines += player_framework_defines
75}
76
77ohos_static_library("media_engine_gst_player") {
78  sources = [
79    "player_codec_ctrl.cpp",
80    "player_engine_gst_impl.cpp",
81    "player_sinkprovider.cpp",
82    "player_track_parse.cpp",
83  ]
84
85  configs = [
86    ":media_engine_gst_player_config",
87    "//foundation/graphic/graphic_2d/frameworks/surface:surface_public_config",
88    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config",
89    "//foundation/multimedia/player_framework/services/utils:media_service_utils_public_config",
90  ]
91
92  deps = [
93    "//foundation/graphic/graphic_2d/frameworks/surface:surface",
94    "//foundation/graphic/graphic_2d/utils:sync_fence",
95    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx",
96    "//foundation/multimedia/player_framework/services/utils:media_service_utils",
97    "//third_party/glib:glib",
98    "//third_party/glib:gobject",
99    "//third_party/gstreamer/gstplugins_base:gstvideo",
100    "//third_party/gstreamer/gstreamer:gstreamer",
101  ]
102
103  external_deps = [
104    "hiviewdfx_hilog_native:libhilog",
105    "init:libbegetutil",
106    "multimedia_audio_framework:audio_client",
107  ]
108
109  subsystem_name = "multimedia"
110  part_name = "multimedia_player_framework"
111}
112