-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5-external.lua
More file actions
44 lines (38 loc) · 1.71 KB
/
premake5-external.lua
File metadata and controls
44 lines (38 loc) · 1.71 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
-- Note: This is the premake5 file made to allow for using
-- Photon as a submodule/dependency without the main workspace.
------------------------------------------------------------------------------
-- Utils
------------------------------------------------------------------------------
function local_require(path)
return dofile(path)
end
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Bug fixes
------------------------------------------------------------------------------
-- Visual Studio: Bugfix for C++ Modules (same module file name per project)
-- https://github.com/premake/premake-core/issues/2177
require("vstudio")
premake.override(premake.vstudio.vc2010.elements, "clCompile", function(base, prj)
local m = premake.vstudio.vc2010
local calls = base(prj)
if premake.project.iscpp(prj) then
table.insertafter(calls, premake.xmlDeclaration, function()
premake.w('<ModuleDependenciesFile>$(IntDir)\\%%(RelativeDir)</ModuleDependenciesFile>')
premake.w('<ModuleOutputFile>$(IntDir)\\%%(RelativeDir)</ModuleOutputFile>')
premake.w('<ObjectFileName>$(IntDir)\\%%(RelativeDir)</ObjectFileName>')
end)
end
return calls
end)
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Projects
------------------------------------------------------------------------------
group "Dependencies"
include "vendor/GameNetworkingSockets"
include "vendor/protobuf"
include "vendor/abseil"
include "Photon"
group ""
------------------------------------------------------------------------------