forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5_layout.lua
More file actions
48 lines (36 loc) · 1.02 KB
/
premake5_layout.lua
File metadata and controls
48 lines (36 loc) · 1.02 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-- setup pre-build and post-build layouts
group 'helpers'
project 'CfxPrebuild'
kind 'Utility'
files {
'tools/build/run_prebuild.ps1'
}
filter 'files:**.ps1'
buildmessage 'Running pre-build preparation jobs...'
buildcommands {
path.getabsolute('tools/build/run_prebuild.cmd')
}
buildoutputs { 'tools/build/prebuild_run.txt' }
project 'CfxPostbuild'
kind 'Utility'
if _OPTIONS['game'] == 'server' then
dependson { 'citizen-server-impl' }
elseif _OPTIONS['game'] ~= 'launcher' then
dependson { 'glue' }
else
dependson { 'citizen-game-main' }
end
files {
'tools/build/run_postbuild.ps1'
}
filter 'files:**.ps1'
buildmessage 'Preparing application to run from layout...'
buildcommands {
-- directly use $(TargetDir) and remove trailing \ so pwsh doesn't get upset
([["%s" "$(TargetDir.TrimEnd('\'))" %s "$(Configuration)"]]):format(
path.getabsolute('tools/build/run_postbuild.cmd'),
_OPTIONS['game']
)
}
buildoutputs { 'tools/build/dummy_dont_generate.txt' }
group ''