# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//foundation/multimedia/player_framework/config.gni") group("media_engine_gst_package") { deps = [ ":media_engine_gst", "plugins:media_engine_gst_plugins", ] } ohos_shared_library("media_engine_gst") { sanitize = { cfi = true cfi_cross_dso = true debug = false } deps = [ "common:media_engine_gst_common", "factory:media_engine_gst_factory", "loader:media_engine_gst_loader", "plugins:media_engine_gst_plugins_common", "//third_party/glib:glib_packages", "//third_party/gstreamer/gst_libav:gst_libav_packages", "//third_party/gstreamer/gstplugins_bad:gstplugins_bad_packages", "//third_party/gstreamer/gstplugins_base:gstplugins_base_packages", "//third_party/gstreamer/gstplugins_good:gstplugins_good_packages", "//third_party/gstreamer/gstreamer:gstreamer_packages", ] external_deps = [ "hilog:libhilog" ] if (multimedia_player_framework_support_player) { deps += [ "player:media_engine_gst_player" ] } if (multimedia_player_framework_support_recorder) { deps += [ "recorder:media_engine_gst_recorder" ] } if (multimedia_player_framework_support_codec) { deps += [ "avcodec:media_engine_gst_avcodec" ] } if (multimedia_player_framework_support_metadata) { deps += [ "avmetadatahelper:media_engine_gst_avmeta" ] } relative_install_dir = "media" subsystem_name = "multimedia" part_name = "player_framework" }