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 deps = [ 26 "common:media_engine_gst_common", 27 "factory:media_engine_gst_factory", 28 "loader:media_engine_gst_loader", 29 "plugins:media_engine_gst_plugins_common", 30 "//third_party/glib:glib_packages", 31 "//third_party/gstreamer/gst_libav:gst_libav_packages", 32 "//third_party/gstreamer/gstplugins_bad:gstplugins_bad_packages", 33 "//third_party/gstreamer/gstplugins_base:gstplugins_base_packages", 34 "//third_party/gstreamer/gstplugins_good:gstplugins_good_packages", 35 "//third_party/gstreamer/gstreamer:gstreamer_packages", 36 "//third_party/libffi:ffi", 37 ] 38 39 if (multimedia_player_framework_support_player) { 40 deps += [ "player:media_engine_gst_player" ] 41 } 42 43 if (multimedia_player_framework_support_recorder) { 44 deps += [ "recorder:media_engine_gst_recorder" ] 45 } 46 47 if (multimedia_player_framework_support_codec) { 48 deps += [ "avcodec:media_engine_gst_avcodec" ] 49 } 50 51 if (multimedia_player_framework_support_metadata) { 52 deps += [ "avmetadatahelper:media_engine_gst_avmeta" ] 53 } 54 55 if (multimedia_player_framework_support_muxer) { 56 deps += [ "avmuxer:media_engine_gst_avmuxer" ] 57 } 58 59 relative_install_dir = "media" 60 subsystem_name = "multimedia" 61 part_name = "multimedia_player_framework" 62} 63