-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathxmake.lua
42 lines (32 loc) · 1.28 KB
/
xmake.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
add_repositories("switch-repo https://github.com/PoloNX/switch-repo.git")
add_repositories("zeromake-repo https://github.com/zeromake/xrepo.git")
includes("toolchain/*.lua")
add_defines(
'BRLS_RESOURCES="romfs:/"',
"YG_ENABLE_EVENTS",
"STBI_NO_THREAD_LOCALS",
"BOREALIS_USE_DEKO3D"
)
add_rules("mode.debug", "mode.release")
add_requires("borealis", {repo = "switch-repo"}, "deko3d", "libcurl", "libarchive", "bzip2", "zlib", "liblzma", "lz4", "libexpat", "libzstd")
target("SimpleModDownloader")
set_kind("binary")
if not is_plat("cross") then
return
end
set_arch("aarch64")
add_rules("switch")
set_toolchains("devkita64")
set_languages("c++17")
set_values("switch.name", "SimpleModDownloader")
set_values("switch.author", "PoloNX")
set_values("switch.version", "2.1.0")
set_values("switch.romfs", "resources")
set_values("switch.icon", "resources/icon/icon-256.jpg")
-- SimpleIniParser
add_files("lib/ini/source/SimpleIniParser/*.cpp")
add_includedirs("lib/ini/include")
add_includedirs("lib/ini/include/SimpleIniParser")
add_files("source/**.cpp")
add_includedirs("include")
add_packages("borealis", "deko3d", "libcurl", "libarchive", "bzip2", "zlib", "liblzma", "lz4", "libexpat", "libzstd")