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("//test/xts/tools/build/suite.gni")
15
16AUDIO_ROOT_DIR = "//foundation/multimedia/audio_framework/"
17
18ohos_moduletest_suite("ActsOhaudioNdkTest") {
19  module_out_path = "acts/ActsOhaudioNdkTest"
20  sources = [ "ActsOhaudioNdkTest.cpp" ]
21
22  include_dirs = [
23    "$AUDIO_ROOT_DIR/interfaces/kits/c/",
24    "$AUDIO_ROOT_DIR/interfaces/kits/c/common/",
25    "$AUDIO_ROOT_DIR/interfaces/kits/c/audio_renderer/",
26    "$AUDIO_ROOT_DIR/interfaces/kits/c/audio_capturer/",
27  ]
28
29  cflags = [
30    "-Werror",
31    "-fno-rtti",
32    "-fno-exceptions",
33    "-Wall",
34    "-fno-common",
35    "-fstack-protector-strong",
36    "-Wshadow",
37    "-FPIC",
38    "-FS",
39    "-O2",
40    "-D_FORTIFY_SOURCE=2",
41    "-fvisibility=hidden",
42    "-Wformat=2",
43    "-Wdate-time",
44  ]
45
46  deps = [ "$AUDIO_ROOT_DIR/frameworks/native/ohaudio:ohaudio" ]
47  external_deps = [
48    "c_utils:utils",
49    "hilog:libhilog",
50  ]
51
52  part_name = "audio_framework"
53  subsystem_name = "multimedia"
54}
55