1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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
16config("loop_back_demo_config") {
17  include_dirs = [
18    "./include",
19    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
20    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include",
21    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include",
22  ]
23
24  cflags = [
25    "-Wall",
26    "-Werror",
27    "-Wno-implicit-function-declaration",
28    "-DHAVE_CONFIG_H",
29    "-D_GNU_SOURCE",
30  ]
31}
32
33ohos_executable("loop_back_demo") {
34  sanitize = {
35    cfi = true
36    cfi_cross_dso = true
37    debug = false
38  }
39
40  configs = [ ":loop_back_demo_config" ]
41
42  sources = [ "src/loop_back_demo.cpp" ]
43
44  external_deps = [
45    "access_token:libaccesstoken_sdk",
46    "access_token:libnativetoken",
47    "access_token:libtoken_setproc",
48    "audio_framework:audio_capturer",
49    "audio_framework:audio_client",
50    "audio_framework:audio_renderer",
51    "hilog:libhilog",
52  ]
53
54  subsystem_name = "castplus"
55  part_name = "sharing_framework"
56}
57