diff options
author | aap <aap@papnet.eu> | 2020-05-06 09:24:18 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-06 09:24:18 +0200 |
commit | 8e84728f41aef0c01f0a7eaf2e074ee876712861 (patch) | |
tree | 85484924e37a3afb3c4524cb89f72672a9b86d88 /premake5.lua | |
parent | bb0541404d79e91cde0ffe2dac8506df134e18b7 (diff) | |
parent | 3adf740bd53eac264d3b4515c8de9563a868948b (diff) |
Merge branch 'master' of github.com:GTAmodding/re3
Diffstat (limited to 'premake5.lua')
-rw-r--r-- | premake5.lua | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/premake5.lua b/premake5.lua index cfba8e01..f8e3af81 100644 --- a/premake5.lua +++ b/premake5.lua @@ -103,6 +103,10 @@ project "librw" filter {} end +local function addSrcFiles( prefix ) + return prefix .. "/*cpp", prefix .. "/*.h", prefix .. "/*.c", prefix .. "/*.ico", prefix .. "/*.aps", prefix .. "/*.rc" +end + project "re3" kind "WindowedApp" targetname "re3" @@ -112,27 +116,29 @@ project "re3" linkoptions "/SAFESEH:NO" - files { "src/*.*" } - files { "src/animation/*.*" } - files { "src/audio/*.*" } - files { "src/control/*.*" } - files { "src/core/*.*" } - files { "src/entities/*.*" } - files { "src/math/*.*" } - files { "src/modelinfo/*.*" } - files { "src/objects/*.*" } - files { "src/peds/*.*" } - files { "src/render/*.*" } - files { "src/rw/*.*" } - files { "src/save/*.*" } - files { "src/skel/*.*" } - files { "src/skel/win/*.*" } - files { "src/skel/glfw/*.*" } - files { "src/text/*.*" } - files { "src/vehicles/*.*" } - files { "src/weapons/*.*" } - files { "src/extras/*.*" } - files { "eax/*.*" } + files { addSrcFiles("src") } + files { addSrcFiles("src/animation") } + files { addSrcFiles("src/audio") } + --files { addSrcFiles("src/audio/miles") } + --files { addSrcFiles("src/audio/openal") } + files { addSrcFiles("src/control") } + files { addSrcFiles("src/core") } + files { addSrcFiles("src/entities") } + files { addSrcFiles("src/math") } + files { addSrcFiles("src/modelinfo") } + files { addSrcFiles("src/objects") } + files { addSrcFiles("src/peds") } + files { addSrcFiles("src/render") } + files { addSrcFiles("src/rw") } + files { addSrcFiles("src/save") } + files { addSrcFiles("src/skel") } + files { addSrcFiles("src/skel/win") } + files { addSrcFiles("src/skel/glfw") } + files { addSrcFiles("src/text") } + files { addSrcFiles("src/vehicles") } + files { addSrcFiles("src/weapons") } + files { addSrcFiles("src/extras") } + files { addSrcFiles("eax") } includedirs { "src" } includedirs { "src/animation" } @@ -173,7 +179,7 @@ project "re3" filter "platforms:*librw*" defines { "LIBRW" } - files { "src/fakerw/*.*" } + files { addSrcFiles("src/fakerw") } includedirs { "src/fakerw" } includedirs { Librw } if(_OPTIONS["with-librw"]) then |