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
15group("plugin_aac_demuxer") {
16  deps = [ ":histreamer_plugin_AACDemuxer" ]
17}
18config("plugin_aac_demuxer_adapter_config") {
19  include_dirs = [
20    "aac_demuxer",
21    "//device/bestechnic/bes2600w/sdk_liteos/bsp/services/multimedia/audio/codec/fdkaac_codec/libAACdec/include",
22    "//device/bestechnic/bes2600w/sdk_liteos/bsp/services/multimedia/audio/codec/fdkaac_codec/libSYS/include",
23    "//foundation/multimedia/media_foundation/engine/include",
24  ]
25}
26
27if (hst_is_mini_sys) {
28  static_library("histreamer_plugin_AACDemuxer") {
29    sources = [ "aac_demuxer_plugin.cpp" ]
30    public_configs = [
31      ":plugin_aac_demuxer_adapter_config",
32      "//foundation/multimedia/media_foundation:histreamer_presets",
33    ]
34    public_deps = [
35      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
36      "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base",
37    ]
38  }
39} else {
40  shared_library("histreamer_plugin_AACDemuxer") {
41    sources = [ "aac_demuxer_plugin.cpp" ]
42    public_configs = [
43      ":plugin_aac_demuxer_adapter_config",
44      "//foundation/multimedia/media_foundation:histreamer_presets",
45    ]
46    public_deps = [
47      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
48      "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_intf",
49    ]
50  }
51}
52