forked from ThirteenAG/Ultimate-ASI-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
124 lines (96 loc) · 3.55 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
-- x86
workspace "Ultimate-ASI-Loader-x86"
configurations { "Release", "Debug" }
architecture "x86"
location "build"
defines { "rsc_CompanyName=\"ThirteenAG\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.dll\"" }
defines { "rsc_FileDescription=\"Ultimate ASI Loader\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/Ultimate-ASI-Loader\"" }
project "Ultimate-ASI-Loader-x86"
kind "SharedLib"
language "C++"
targetdir "bin/x86/%{cfg.buildcfg}"
targetname "dinput8"
targetextension ".dll"
includedirs { "source" }
includedirs { "external" }
files { "source/dllmain.h", "source/dllmain.cpp" }
files { "source/x86.def" }
files { "source/resources/*.rc" }
files { "external/d3d8to9/source/*.h", "external/d3d8to9/source/*.cpp" }
files { "external/MemoryModule/*.h", "external/MemoryModule/*.c" }
local dxsdk = os.getenv "DXSDK_DIR" or "Error: DXSDK_DIR not set!"
includedirs { dxsdk .. "/include" }
libdirs { dxsdk .. "/lib/x86" }
characterset ("MBCS")
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG", "D3D8TO9NOLOG" }
optimize "On"
flags { "StaticRuntime" }
project "MessageBox"
kind "SharedLib"
language "C++"
targetdir "bin/x86/%{cfg.buildcfg}/scripts"
targetextension ".asi"
files { "source/demo_plugins/MessageBox.cpp" }
files { "source/resources/Versioninfo.rc" }
characterset ("MBCS")
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }
-- x64
workspace "Ultimate-ASI-Loader-x64"
configurations { "Release", "Debug" }
architecture "x86_64"
location "build"
defines { "rsc_CompanyName=\"ThirteenAG\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.dll\"" }
defines { "rsc_FileDescription=\"Ultimate ASI Loader\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/Ultimate-ASI-Loader\"" }
defines { "X64" }
project "Ultimate-ASI-Loader-x64"
kind "SharedLib"
language "C++"
targetdir "bin/x64/%{cfg.buildcfg}"
targetname "dinput8"
targetextension ".dll"
includedirs { "source" }
includedirs { "external" }
files { "source/dllmain.h", "source/dllmain.cpp" }
files { "source/x64.def" }
files { "source/resources/Versioninfo.rc" }
characterset ("MBCS")
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }
project "RE7Demo.InfiniteAmmo"
kind "SharedLib"
language "C++"
targetdir "bin/x64/%{cfg.buildcfg}/scripts"
targetextension ".asi"
files { "source/demo_plugins/RE7Demo.InfiniteAmmo.cpp" }
files { "source/resources/Versioninfo.rc" }
characterset ("MBCS")
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }