1# Copyright (c) 2021-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# 14 15# build plugin interface 16config("histreamer_pipeline_config") { 17 include_dirs = [ 18 "//foundation/multimedia/histreamer/engine", 19 "//foundation/multimedia/histreamer/engine/pipeline", 20 "//foundation/multimedia/histreamer/engine/pipeline/filters", 21 "//foundation/multimedia/histreamer/engine/pipeline/core", 22 ] 23} 24 25source_set("histreamer_pipeline") { 26 sources = [ 27 "core/clock_manager.cpp", 28 "core/compatible_check.cpp", 29 "core/filter_base.cpp", 30 "core/pipeline_core.cpp", 31 "core/port.cpp", 32 "factory/filter_factory.cpp", 33 "filters/codec/audio_decoder/audio_decoder_filter.cpp", 34 "filters/codec/codec_filter_base.cpp", 35 "filters/common/plugin_settings.cpp", 36 "filters/common/plugin_utils.cpp", 37 "filters/demux/data_packer.cpp", 38 "filters/demux/demuxer_filter.cpp", 39 "filters/demux/type_finder.cpp", 40 "filters/sink/audio_sink/audio_sink_filter.cpp", 41 "filters/source/media_source/media_source_filter.cpp", 42 ] 43 public_configs = [ ":histreamer_pipeline_config" ] 44 public_deps = [ 45 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 46 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_core", 47 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 48 "//foundation/multimedia/histreamer/engine/utils:histreamer_utils", 49 ] 50 if (!defined(ohos_lite)) { 51 configs -= [ 52 "//build/config/compiler:no_rtti", 53 "//build/config/compiler:no_exceptions", 54 ] 55 } 56 cflags = [ 57 "-fPIC", 58 "-Wall", 59 ] 60 61 if (!defined(ohos_lite)) { 62 cflags += [ 63 "-frtti", 64 "-fexceptions", 65 ] 66 } 67 cflags_cc = cflags 68 defines = [ "MEDIA_OHOS" ] 69} 70