1# Copyright (c) 2022-2022 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("//foundation/multimedia/media_foundation/config.gni") 15 16group("plugin_wav_demuxer") { 17 if (hst_is_mini_sys) { 18 deps = [ ":histreamer_plugin_wav_static" ] 19 } else { 20 deps = [ ":histreamer_plugin_WavDemuxer" ] 21 } 22} 23 24ohos_source_set("wavdemuxer") { 25 subsystem_name = "multimedia" 26 part_name = "media_foundation" 27 include_dirs = [ "//foundation/multimedia/media_foundation/engine/include" ] 28 sources = [ "wav_demuxer_plugin.cpp" ] 29 public_configs = 30 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 31 public_deps = [ 32 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 33 "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base", 34 ] 35 if (!hst_is_lite_sys) { 36 external_deps = [ "hilog:libhilog" ] 37 } 38} 39 40if (hst_is_lite_sys) { 41 static_library("histreamer_plugin_wav_static") { 42 deps = [ ":wavdemuxer" ] 43 } 44} else { 45 import("//build/ohos.gni") 46 ohos_shared_library("histreamer_plugin_WavDemuxer") { 47 subsystem_name = "multimedia" 48 part_name = "media_foundation" 49 deps = [ ":wavdemuxer" ] 50 external_deps = [ "hilog:libhilog" ] 51 relative_install_dir = "media/histreamer_plugins" 52 sanitize = { 53 cfi = true 54 cfi_cross_dso = true 55 debug = false 56 integer_overflow = true 57 } 58 } 59} 60