• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-2025 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/test.gni")
15import("//foundation/multimedia/player_framework/config.gni")
16
17ohos_executable("audio_haptic_test") {
18  install_enable = false
19  sources = [
20    "audio_haptic_test.cpp",
21    "./../unittest/common/src/audio_haptic_test_common.cpp",
22  ]
23
24  cflags = [
25    "-std=c++17",
26    "-Wall",
27    "-Werror",
28    "-fno-access-control",
29  ]
30
31  sanitize = {
32    cfi = true
33    cfi_cross_dso = true
34  }
35
36  deps = [
37    "./../../frameworks/native/audio_haptic:audio_haptic",
38    "./../../frameworks/native/soundpool:soundpool_client",
39    "./../../interfaces/inner_api/native:media_client",
40  ]
41
42  include_dirs = [
43    "./../../frameworks/native/audio_haptic",
44    "./../../interfaces/inner_api/native",
45    "./../unittest/common/include",
46  ]
47
48  external_deps = [
49    "access_token:libaccesstoken_sdk",
50    "access_token:libnativetoken_shared",
51    "access_token:libtokensetproc_shared",
52    "audio_framework:audio_client",
53    "bounds_checking_function:libsec_shared",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "ipc:ipc_single",
57  ]
58
59  subsystem_name = "multimedia"
60  part_name = "player_framework"
61}