-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.gn
64 lines (54 loc) · 1.8 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
#
# Agora Real Time Engagement
# Created by Wei Hu in 2022-11.
# Copyright (c) 2024 Agora IO. All rights reserved.
#
#
import("//.gnfiles/build/feature/base_options.gni")
import("//.gnfiles/build/feature/ten_package.gni")
ten_package("azure_tts") {
package_kind = "extension"
enable_build = true
resources = [
"manifest.json",
"property.json",
]
sources = [
"src/main.cc",
"src/tts.cc"
]
include_dirs = [
"include",
# The build flags for in-app building
"//ten_packages/system/nlohmann_json/include",
"//ten_packages/system/ten_runtime/include",
"//ten_packages/system/azure_speech_sdk/include/microsoft/c_api",
"//ten_packages/system/azure_speech_sdk/include/microsoft/cxx_api",
# The build flags for standalone building.
".ten/app/ten_packages/system/nlohmann_json/include",
".ten/app/ten_packages/system/ten_runtime/include",
".ten/app/ten_packages/system/azure_speech_sdk/include/microsoft/c_api",
".ten/app/ten_packages/system/azure_speech_sdk/include/microsoft/cxx_api",
]
lib_dirs = [
"lib",
# The build flags for in-app building
"//ten_packages/system/ten_runtime/lib",
"//ten_packages/system/azure_speech_sdk/lib",
# The build flags for standalone building.
".ten/app/ten_packages/system/ten_runtime/lib",
".ten/app/ten_packages/system/azure_speech_sdk/lib",
]
libs = [
"ten_runtime",
"ten_utils",
"Microsoft.CognitiveServices.Speech.core",
"Microsoft.CognitiveServices.Speech.extension.audio.sys",
"Microsoft.CognitiveServices.Speech.extension.codec",
"Microsoft.CognitiveServices.Speech.extension.kws.ort",
"Microsoft.CognitiveServices.Speech.extension.kws",
"Microsoft.CognitiveServices.Speech.extension.lu",
"Microsoft.CognitiveServices.Speech.extension.mas"
]
}