-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathproject_game.lua
More file actions
40 lines (32 loc) · 958 Bytes
/
project_game.lua
File metadata and controls
40 lines (32 loc) · 958 Bytes
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
--
-- Zidar - Build system scripts
-- Copyright (c) 2025-2026 Milos Tosic, Rudji Games. All rights reserved.
-- License: https://github.com/RudjiGames/zidar/blob/master/LICENSE
--
function addProject_game(_name)
group ( "games" )
project ( _name )
-- not supported on Xcode ?
configuration { "retail" }
project().kind = "WindowedApp"
configuration { "debug or release" }
project().kind = "ConsoleApp"
configuration {}
kind ( project().kind )
uuid ( os.uuid(project().name) )
flags { Flags_Cmd }
local projectPath = projectGetPath(_name)
local srcFilesPath = projectPath .. "/src"
local sourceFiles = projectSourceFilesWildcard(srcFilesPath)
if projectIsCPP(sourceFiles) then
language "C++"
else
language "C"
end
files { sourceFiles }
includedirs { srcFilesPath }
libdirs { srcFilesPath }
addPCH( srcFilesPath, project().name )
projectConfig()
addDependencies(project().name, { "bgfx" })
end