-
Notifications
You must be signed in to change notification settings - Fork 1
/
PremakePlugin.lua
126 lines (114 loc) · 3.21 KB
/
PremakePlugin.lua
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
--[[----------------------------------------------------------------------------
The content of this file includes portions of the AUDIOKINETIC Wwise Technology
released in source code form as part of the SDK installer package.
Commercial License Usage
Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
may use this file in accordance with the end user license agreement provided
with the software or, alternatively, in accordance with the terms contained in a
written agreement between you and Audiokinetic Inc.
Apache License Usage
Alternatively, this file may be used under the Apache License, Version 2.0 (the
"Apache License"); you may not use this file except in compliance with the
Apache License. You may obtain a copy of the Apache License at
http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed
under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
the specific language governing permissions and limitations under the License.
Copyright (c) 2021 Audiokinetic Inc.
------------------------------------------------------------------------------]]
if not _AK_PREMAKE then
error('You must use the custom Premake5 scripts by adding the following parameter: --scripts="Scripts\\Premake"', 1)
end
local Plugin = {}
Plugin.name = "RaveWwise"
Plugin.factoryheader = "../SoundEnginePlugin/RaveWwiseFXFactory.h"
Plugin.sdk = {}
Plugin.sdk.static = {}
Plugin.sdk.shared = {}
Plugin.authoring = {}
-- SDK STATIC PLUGIN SECTION
Plugin.sdk.static.includedirs = -- https://github.com/premake/premake-core/wiki/includedirs
{
"../Libraries/torch/libtorch/include",
"../Libraries/torch/libtorch/include/torch/csrc/api/include",
"../Libraries/onnx/onnxruntime/include",
"../Libraries/bs_thread_pool"
}
Plugin.sdk.static.files = -- https://github.com/premake/premake-core/wiki/files
{
"**.cpp",
"**.h",
"**.hpp",
"**.c",
}
Plugin.sdk.static.excludes = -- https://github.com/premake/premake-core/wiki/removefiles
{
"RaveWwiseFXShared.cpp"
}
Plugin.sdk.static.links = -- https://github.com/premake/premake-core/wiki/links
{
"c10",
"torch",
"torch_cpu",
"onnxruntime",
"onnxruntime_providers_shared"
}
Plugin.sdk.static.libsuffix = "FX"
Plugin.sdk.static.libdirs = -- https://github.com/premake/premake-core/wiki/libdirs
{
"../Libraries/torch/libtorch/lib",
"../Libraries/onnx/onnxruntime/lib"
}
Plugin.sdk.static.defines = -- https://github.com/premake/premake-core/wiki/defines
{
"NOMINMAX"
}
-- SDK SHARED PLUGIN SECTION
Plugin.sdk.shared.includedirs =
{
}
Plugin.sdk.shared.files =
{
"RaveWwiseFXShared.cpp",
"RaveWwiseFXFactory.h",
}
Plugin.sdk.shared.excludes =
{
}
Plugin.sdk.shared.links =
{
}
Plugin.sdk.shared.libdirs =
{
}
Plugin.sdk.shared.defines =
{
}
-- AUTHORING PLUGIN SECTION
Plugin.authoring.includedirs =
{
}
Plugin.authoring.files =
{
"**.cpp",
"**.h",
"**.hpp",
"**.c",
"RaveWwise.def",
"RaveWwise.xml",
"*.rc",
}
Plugin.authoring.excludes =
{
}
Plugin.authoring.links =
{
}
Plugin.authoring.libdirs =
{
}
Plugin.authoring.defines =
{
}
return Plugin