• 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("//test/xts/tools/build/suite.gni")
15
16pulseaudio_dir = "//third_party/pulseaudio"
17opensles_dir = "//third_party/openSLES"
18opensles_version = "1.0.1"
19module_output_path = "acts/ActsOpenslesNdkTest"
20AUDIO_ROOT_DIR = "//foundation/multimedia/audio_framework/"
21ohos_moduletest_suite("ActsOpenslesNdkTest") {
22  module_out_path = module_output_path
23  sources = [
24    "openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp",
25    "openslesRecorderNdk/ActsOpenslesRecoderNdkTest.cpp",
26  ]
27
28  include_dirs = [
29    "opensles/include",
30    "$opensles_dir/api/$opensles_version",
31    "$pulseaudio_dir/src",
32    "$pulseaudio_dir/confgure/src",
33    "$AUDIO_ROOT_DIR/frameworks/native/opensles",
34    "$AUDIO_ROOT_DIR/interfaces/inner_api/native/audiocommon/include",
35    "//third_party/openSLES/api/1.0.1",
36  ]
37
38  cflags = [
39    "-Werror",
40    "-fno-rtti",
41    "-fno-exceptions",
42    "-Wall",
43    "-fno-common",
44    "-fstack-protector-strong",
45    "-Wshadow",
46    "-FPIC",
47    "-FS",
48    "-O2",
49    "-D_FORTIFY_SOURCE=2",
50    "-fvisibility=hidden",
51    "-Wformat=2",
52    "-Wdate-time",
53    "",
54  ]
55
56  deps = [
57    "$AUDIO_ROOT_DIR/frameworks/native/opensles",
58    "//third_party/openSLES:libSLES",
59  ]
60  external_deps = [
61    "c_utils:utils",
62    "hilog:libhilog",
63  ]
64
65  part_name = "audio_framework"
66  subsystem_name = "multimedia"
67}
68