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/histreamer/config.gni") 15if (!hst_is_lite_sys) { 16 ohos_kernel_type = "" 17} 18 19group("plugin_wav_demuxer") { 20 if (ohos_kernel_type == "liteos_m") { 21 deps = [ ":histreamer_plugin_wav_static" ] 22 } else { 23 deps = [] 24 deps += [ ":histreamer_plugin_WavDemuxer" ] 25 } 26} 27 28source_set("wavdemuxer") { 29 sources = [ "wav_demuxer_plugin.cpp" ] 30 public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ] 31 public_deps = [ 32 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 33 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 34 ] 35} 36 37if (hst_is_lite_sys) { 38 static_library("histreamer_plugin_wav_static") { 39 deps = [ ":wavdemuxer" ] 40 } 41} else { 42 import("//build/ohos.gni") 43 ohos_shared_library("histreamer_plugin_WavDemuxer") { 44 deps = [ ":wavdemuxer" ] 45 relative_install_dir = "media/histreamer_plugins" 46 subsystem_name = "multimedia" 47 part_name = "multimedia_histreamer" 48 sanitize = { 49 cfi = true 50 debug = false 51 } 52 } 53} 54