-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathxmake.lua
More file actions
34 lines (28 loc) · 1.18 KB
/
xmake.lua
File metadata and controls
34 lines (28 loc) · 1.18 KB
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
set_project("audivis-relay")
set_policy("compatibility.version", "3.0")
set_languages("c++2b")
set_warnings("all")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "build"})
add_rules("mode.releasedbg")
includes("deps/breeze-ui.lua")
add_requires("gtest", "libnyquist", "libsamplerate", "cpptrace", "cpp-httplib", "nlohmann_json", "libdatachannel", "breeze-ui", "qr-code-generator-cpp", "yy-thunks")
set_runtimes("MT")
set_policy("build.optimization.lto", true)
target("parsec-vusb-api")
set_kind("static")
add_files("src/parsec-vusb-api/**.cc")
add_headerfiles("src/parsec-vusb-api/**.h")
add_syslinks("setupapi", "user32", "kernel32")
add_includedirs("src/parsec-vusb-api", {public = true})
target("parsec-vusb-tests")
set_kind("binary")
add_files("src/parsec-vusb-tests/**.cc")
add_deps("parsec-vusb-api")
add_packages("gtest")
set_default(false)
target("audivis-relay")
set_kind("binary")
add_files("src/client/**.cc", "src/client/app.manifest")
set_encodings("utf-8")
add_deps("parsec-vusb-api")
add_packages("cpptrace", "libdatachannel", "cpp-httplib", "nlohmann_json", "breeze-ui", "qr-code-generator-cpp", "yy-thunks")