/
project_game.lua
47 lines (33 loc) · 1.15 KB
/
project_game.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
--
-- Copyright 2023 Milos Tosic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function addProject_game(_name)
if _ACTION == nil then return end
group ("games")
project (_name)
language "C++"
uuid ( os.uuid(project().name) )
configuration { "retail" }
kind "WindowedApp"
configuration { "debug or release" }
kind "ConsoleApp"
configuration {}
project().path = path.getabsolute( getProjectPath(_name, ProjectPath.Dir) or
getProjectPath(_name, ProjectPath.Root)) .. "/"
local srcFilesPath = project().path .. "src/"
local sourceFiles = mergeTables( { srcFilesPath .. "**.cpp" },
{ srcFilesPath .. "**.h" } )
files { sourceFiles }
addPCH( srcFilesPath, project().name )
includedirs { srcFilesPath }
flags { Flags_Cmd }
assert(loadfile(RTM_SCRIPTS_DIR .. "configurations.lua"))( sourceFiles,
false, -- IS_LIBRARY
false, -- IS_SHARED_LIBRARY
false, -- COPY_QT_DLLS
false, -- WITH_QT
true -- EXECUTABLE
)
addDependencies(_name, { {"rapp", "bgfx"} })
end