-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
97 lines (70 loc) · 2.01 KB
/
premake5.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
solution "iw3cli"
configurations { "Debug", "Release" }
flags { "StaticRuntime", "No64BitChecks", "Symbols", "Unicode" }
flags { "NoIncrementalLink", "NoEditAndContinue" }
includedirs { "deps/include/" }
libdirs { "deps/lib/" }
configuration "Debug*"
targetdir "bin/debug"
defines "NDEBUG"
configuration "Release*"
targetdir "bin/release"
defines "NDEBUG"
project "d3d9"
targetname "d3d9"
language "C++"
kind "SharedLib"
defines { "WIN32", "NDEBUG", "_WINDOWS", "_WINDLL", "_USRDLL" }
flags { "NoMinimalRebuild" }
files
{
"d3d9/**.cpp",
"d3d9/**.h",
"d3d9/d3d9.def",
"d3d9/base/StdInc.cpp",
"d3d9/base/**.cpp",
"d3d9/base/**.h",
"d3d9/d3d9/**.cpp",
"d3d9/d3d9/**.h",
"d3d9/hooks/nui/**.cpp",
"d3d9/hooks/nui/**.h"
}
links { "libcurl", "pdcurses", "libnp", "credui", "detours", "delayimp", "libcef_dll", "libcef", "winmm" }
libdirs { "deps/lib/", "libcef/lib/" }
includedirs { "d3d9/d3d9/", "deps/include/np/", "libcef/" }
linkoptions "/DELAYLOAD:libcef.dll"
pchsource "d3d9/base/StdInc.cpp"
pchheader "StdInc.h"
configuration "windows"
linkoptions "/IGNORE:4248 /IGNORE:4049 /IGNORE:4099 /DYNAMICBASE:NO /SAFESEH:NO"
prebuildcommands
{
"pushd \"$(SolutionDir)\\deps\\tools\"",
"call \"$(SolutionDir)\\deps\\tools\\gitrev.cmd\"",
"popd"
}
configuration "Debug*"
links { "libcefd" }
configuration "Release*"
links { "libcef" }
project "InfinityScript"
targetname "InfinityScript"
language "C#"
kind "SharedLib"
files
{
"InfinityScript/**.cs"
}
links { "System", "System.Core", "System.Data", "System.Xml", "Microsoft.CSharp" }
project "libcef_dll"
targetname "libcef_dll_wrapper"
language "C++"
kind "StaticLib"
defines { "USING_CEF_SHARED", "NOMINMAX", "WIN32" }
flags { "NoIncrementalLink", "NoMinimalRebuild" }
includedirs { ".", "libcef" }
buildoptions "/MP"
files
{
"libcef/libcef_dll/**.cc", "libcef/libcef_dll/**.cpp", "libcef/libcef_dll/**.h"
}