• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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/ohos.gni")
15import("//build/ohos/ace/ace.gni")
16import("//foundation/multimedia/player_framework/config.gni")
17
18config("public_ffi_config") {
19  include_dirs = [ "include" ]
20}
21
22ohos_shared_library("cj_audiohaptic_ffi") {
23  public_configs = [ ":public_ffi_config" ]
24
25  stack_protector_ret = true
26  sanitize = {
27    integer_overflow = true
28    ubsan = true
29    boundary_sanitize = true
30    cfi = true
31    cfi_cross_dso = true
32    debug = false
33  }
34
35  include_dirs = [
36    "./include",
37    "./include/audio_haptic_player",
38    "./../../native/audio_haptic",
39    "./../../../interfaces/inner_api/native",
40    "./../../../interfaces/inner_api/native/audio_haptic/include",
41    "./../../../services/utils/include",
42  ]
43
44  sources = [
45    "./src/cj_audio_haptic_ffi.cpp",
46    "./src/cj_audio_haptic_manager.cpp",
47    "./src/cj_audio_haptic_player.cpp",
48  ]
49
50  deps = [ "./../../native/audio_haptic:audio_haptic" ]
51
52  external_deps = [
53    "audio_framework:audio_client",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "ipc:ipc_single",
57    "media_foundation:media_foundation",
58    "napi:cj_bind_ffi",
59    "napi:cj_bind_native",
60  ]
61
62  innerapi_tags = [ "platformsdk" ]
63  part_name = "player_framework"
64  subsystem_name = "multimedia"
65}
66