1- set_xmakever (" 2.9.2" )
21-- We should use `get_config("ue4ssRoot")` instead of `os.projectdir()` or `$(projectdir)`.
32-- This is because os.projectdir() will return a higher parent dir
43-- when UE4SS is sub-moduled/`include("UE4SS")` in another xmake project.
54set_config (" ue4ssRoot" , os.scriptdir ())
65
7- includes (" tools/xmakescripts/build_configs.lua" )
8- includes (" tools/xmakescripts/configurations.lua" )
9-
10- add_rules (get_unreal_rules ())
11-
12- -- Restrict the compilation modes/configs.
13- set_allowedplats (" windows" , " linux" )
14- if is_plat (" windows" ) then
15- set_allowedarchs (" x64" )
16- elseif is_plat (" linux" ) then
17- set_allowedarchs (" x86_64" )
18- set_defaultarchs (" x86_64" )
19- set_toolchains (" clang" , " rust" )
20- end
21- set_allowedmodes (get_compilation_modes ())
22-
23- if is_plat (" windows" ) then
24- set_defaultmode (" Game__Shipping__Win64" )
25- set_runtimes (get_mode_runtimes ())
26- elseif is_plat (" linux" ) then
27- set_defaultmode (" Game__Shipping__Linux" )
28- end
29-
30- -- All non-binary outputs are stored in the Intermediates dir.
6+ -- All non-binary outputs are written to the Intermediates dir.
317set_config (" buildir" , " Intermediates" )
328
339-- Any lua modules in this directory can be imported in the script scope by using
3410-- /modules/my_module.lua import("my_module")
3511-- /modules/rules/my_module.lua import("rules.my_module")
3612add_moduledirs (" tools/xmakescripts/modules" )
3713
38- -- Load our rule files into the global scope.
39- includes (" tools/xmakescripts/rules/** .lua" )
14+ -- Load the build_rules file into the global scope.
15+ includes (" tools/xmakescripts/rules/build_rules .lua" )
4016
4117-- Generate the mode rules.
4218local modes = generate_compilation_modes ()
@@ -121,4 +97,4 @@ function ue4ss_init()
12197 end
12298end
12399
124- ue4ss_init ()
100+ ue4ss_init ()
0 commit comments