-
Notifications
You must be signed in to change notification settings - Fork 0
/
VivoxCore.Build.cs
76 lines (63 loc) · 2.14 KB
/
VivoxCore.Build.cs
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
65
66
67
68
69
70
71
72
73
74
75
76
/* Copyright (c) 2014-2018 by Mercer Road Corp
*
* Permission to use, copy, modify or distribute this software in binary or source form
* for any purpose is allowed only under explicit prior consent in writing from Mercer Road Corp
*
* THE SOFTWARE IS PROVIDED "AS IS" AND MERCER ROAD CORP DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL MERCER ROAD CORP
* BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
using UnrealBuildTool;
public class VivoxCore : ModuleRules
{
public VivoxCore(ReadOnlyTargetRules Target) : base(Target)
{
PublicIncludePaths.AddRange(
new string[] {
string.Format("{0}/Public", ModuleDirectory),
}
);
PrivateIncludePaths.AddRange(
new string[] {
string.Format("{0}/Private", ModuleDirectory),
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
"VivoxCoreLibrary",
"Projects",
"Engine",
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
// ... add private dependencies that you statically link with here ...
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
}
);
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string vivoxSdkDll = string.Format("{0}\\..\\ThirdParty\\VivoxCoreLibrary\\Windows\\Release\\x64\\vivoxsdk.dll", ModuleDirectory);
if (!System.IO.File.Exists(vivoxSdkDll))
{
System.Diagnostics.Debug.WriteLine(string.Format("Warning: {0} does not exist", vivoxSdkDll));
}
RuntimeDependencies.Add(vivoxSdkDll);
}
// Build
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
}
}