• 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")
15
16config("media_engine_gst_factory_config") {
17  visibility = [ ":*" ]
18
19  cflags = [
20    "-std=c++17",
21    "-fno-rtti",
22    "-fno-exceptions",
23    "-Wall",
24    "-fno-common",
25    "-fstack-protector-strong",
26    "-FPIC",
27    "-FS",
28    "-O2",
29    "-D_FORTIFY_SOURCE=2",
30    "-fvisibility=hidden",
31    "-Wformat=2",
32    "-Wfloat-equal",
33    "-Wdate-time",
34  ]
35
36  include_dirs = [
37    "//utils/native/base/include",
38    "//foundation/multimedia/media_standard/services/include",
39    "//foundation/multimedia/media_standard/services/services/engine_intf",
40    "//foundation/multimedia/media_standard/services/engine/gstreamer/player",
41    "//foundation/multimedia/media_standard/services/engine/gstreamer/recorder",
42    "//foundation/multimedia/media_standard/services/engine/gstreamer/avmetadatahelper",
43    "//foundation/multimedia/media_standard/services/engine/gstreamer/avcodec",
44    "//foundation/multimedia/media_standard/services/engine/gstreamer/avcodeclist",
45    "//foundation/multimedia/media_standard/services/engine/gstreamer/loader",
46    "//foundation/multimedia/media_standard/services/engine/gstreamer/common/playbin_adapter",
47    "//foundation/multimedia/media_standard/services/engine/gstreamer/common/message",
48    "//foundation/multimedia/media_standard/services/engine/gstreamer/common/metadata",
49    "//foundation/multimedia/media_standard/services/engine/gstreamer/common/utils",
50    "//foundation/multimedia/media_standard/services/utils/include",
51    "//foundation/multimedia/media_standard/interfaces/innerkits/native/media/include",
52    "//foundation/multimedia/image_standard/interfaces/innerkits/include",
53    "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include",
54    "//third_party/glib/glib",
55    "//third_party/glib",
56    "//third_party/gstreamer/gstreamer",
57    "//third_party/gstreamer/gstreamer/libs",
58    "//third_party/gstreamer/gstplugins_base/gst-libs",
59    "//third_party/gstreamer/gstplugins_bad/gst-libs",
60  ]
61}
62
63ohos_static_library("media_engine_gst_factory") {
64  sources = [ "engine_factory.cpp" ]
65
66  configs = [
67    ":media_engine_gst_factory_config",
68    "//foundation/graphic/standard/frameworks/surface:surface_public_config",
69  ]
70
71  deps = [
72    "//foundation/graphic/standard/frameworks/surface:surface",
73    "//utils/native/base:utils",
74  ]
75
76  external_deps = [
77    "hiviewdfx_hilog_native:libhilog",
78    "ipc:ipc_core",
79  ]
80
81  subsystem_name = "multimedia"
82  part_name = "multimedia_media_standard"
83}
84