-
Notifications
You must be signed in to change notification settings - Fork 226
/
xmake.lua
77 lines (72 loc) · 1.81 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
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
local function istable(t) return type(t) == 'table' end
local function build_launcher()
set_kind("binary")
set_group("Client")
set_symbols("debug", "hidden")
after_install(function(target)
local linkdir = target:pkg("sentry-native"):get("linkdirs")
if istable(linkdir) then
linkdir = linkdir[1] -- Yes lua index starts at 1
end
local bindir = path.join(linkdir, "..", "bin")
os.cp(bindir, target:installdir())
end)
add_ldflags(
"/FORCE:MULTIPLE",
"/IGNORE:4254,4006",
"/DYNAMICBASE:NO",
"/SAFESEH:NO",
"/LARGEADDRESSAWARE",
"/INCREMENTAL:NO",
"/LAST:.zdata",
"/SUBSYSTEM:WINDOWS",
"/ENTRY:mainCRTStartup", { force = true })
add_includedirs(
".",
"../",
"../../Libraries/")
add_headerfiles("**.h")
add_files(
"**.cpp",
"launcher.rc")
add_deps(
"ImmersiveElf",
"TiltedReverse",
"TiltedHooks",
"TiltedUi",
"ImGuiImpl",
"CommonLib",
"CrashHandler")
add_links("ntdll_x64")
add_linkdirs(".")
add_syslinks(
"user32",
"shell32",
"comdlg32",
"bcrypt",
"ole32",
"dxgi",
"d3d11",
"gdi32",
"SetupAPI",
"Powrprof",
"Cfgmgr32",
"Propsys",
"delayimp")
add_packages(
"tiltedcore",
"spdlog",
"minhook",
"hopscotch-map",
"cryptopp",
"glm",
"cef",
"mem",
"sentry-native")
end
target("SkyrimImmersiveLauncher")
set_basename("SkyrimTogether")
add_defines("TARGET_PREFIX=\"st\"")
add_deps("SkyrimTogetherClient")
add_ldflags("/WHOLEARCHIVE:SkyrimTogetherClient", { force = true })
build_launcher()