forked from RaphaelIT7/garrysmod_common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
22 lines (16 loc) · 806 Bytes
/
premake5.lua
File metadata and controls
22 lines (16 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Automatic generator version selector
assert(_ACTION ~= nil, "no action (vs20**, gmake or xcode for example) provided!")
include("premake/generator_version.lua")
local default_project_generator_version = 1
local version, requested_version = GetRequestedProjectGeneratorVersionOrDefault(default_project_generator_version)
local path = string.format("%s/generator.v%d.lua", _SCRIPT_DIR, version)
if os.isfile(path) then
if requested_version then
print(string.format("Selected version %d of the project generator", version))
else
print("No version of the project generator specified, defaulting to version " .. default_project_generator_version)
end
include(path)
else
error(string.format("requested an unknown version (%s) of the project generator", version))
end