• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/ohos.gni")
15
16if (defined(ohos_lite)) {
17  ohos_executable("audio_mixer") {
18    include_dirs = [
19      "../../../supportlibs/adm_adapter/include",
20      "//third_party/bounds_checking_function/include",
21    ]
22
23    sources = [
24      "audio_mixer.c",
25      "audio_mixer_main.c",
26    ]
27
28    deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
29    external_deps = [ "hdf_core:libhdf_utils" ]
30    install_enable = false
31    subsystem_name = "hdf"
32    part_name = "drivers_peripheral_audio"
33  }
34} else {
35  ohos_executable("audio_mixer") {
36    include_dirs = [
37      "../../../supportlibs/adm_adapter/include",
38      "//third_party/bounds_checking_function/include",
39    ]
40
41    sources = [
42      "audio_mixer.c",
43      "audio_mixer_main.c",
44    ]
45
46    defines = []
47
48    deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
49    if (is_standard_system) {
50      external_deps = [
51        "c_utils:utils",
52        "hdf_core:libhdf_utils",
53      ]
54    } else {
55      external_deps = [ "hilog:libhilog" ]
56    }
57
58    install_enable = false
59    install_images = [ chipset_base_dir ]
60    subsystem_name = "hdf"
61    part_name = "drivers_peripheral_audio"
62  }
63}
64