-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpremake5.lua
More file actions
156 lines (135 loc) · 5.81 KB
/
Copy pathpremake5.lua
File metadata and controls
156 lines (135 loc) · 5.81 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
function setupDebugger(gameDirVar, gameExeName, trgDir)
debugcommand ("$(" .. gameDirVar .. ")\\" .. gameExeName)
debugdir ("$(" .. gameDirVar .. ")")
postbuildcommands { "\
if defined " .. gameDirVar .. " ( \r\n\
taskkill /IM " .. gameExeName .. " /F /FI \"STATUS eq RUNNING\" \r\n\
xcopy /Y \"$(TargetPath)\" \"$(" .. gameDirVar .. ")" .. trgDir .. "\" \r\n\
)" }
end
workspace "III.VC.CLEO"
configurations { "Release", "Debug" }
platforms { "Win32" }
architecture "x32"
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
kind "SharedLib"
language "C++"
cdialect "C17"
cppdialect "C++latest"
targetdir "bin"
targetextension ".asi"
characterset ("MBCS")
staticruntime "On"
defines { "_CRT_SECURE_NO_WARNINGS", "_CRT_NON_CONFORMING_SWPRINTFS" }
defines { "rsc_CompanyName=\"CLEO\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.asi\"" }
defines { "rsc_FileDescription=\"https://cleo.li\"" }
defines { "rsc_UpdateUrl=\"https://github.com/cleolibrary/III.VC.CLEO\"" }
files { "source/III.VC.CLEO/*.h", "source/III.VC.CLEO/*.cpp" }
files { "source/III.VC.CLEO/*.def" }
files { "Resources/*.rc" }
includedirs { "external/injector/include" }
pbcommands = {
"setlocal EnableDelayedExpansion",
--"set \"path=" .. (gamepath) .. "\"",
"set file=$(TargetPath)",
"FOR %%i IN (\"%file%\") DO (",
"set filename=%%~ni",
"set fileextension=%%~xi",
"set target=!path!!filename!!fileextension!",
"if exist \"!target!\" copy /y \"!file!\" \"!target!\"",
")" }
filter "configurations:Debug*"
defines "DEBUG"
symbols "On"
filter "configurations:Release*"
defines "NDEBUG"
optimize "On"
project "III.CLEO"
defines { "CLEO_III" }
setupDebugger("GTA_III_DIR", "gta3.exe", "")
project "VC.CLEO"
defines { "CLEO_VC" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "")
workspace "CLEO_SDK"
configurations { "Release", "Debug" }
platforms { "Win32" }
architecture "x32"
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
kind "SharedLib"
language "C++"
cdialect "C17"
cppdialect "C++latest"
targetdir "bin/cleo/cleo_plugins"
targetextension ".cleo"
characterset ("MBCS")
staticruntime "On"
defines { "_CRT_SECURE_NO_WARNINGS", "_CRT_NON_CONFORMING_SWPRINTFS" }
defines { "rsc_CompanyName=\"CLEO\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.asi\"" }
defines { "rsc_FileDescription=\"https://cleo.li\"" }
defines { "rsc_UpdateUrl=\"https://github.com/cleolibrary/III.VC.CLEO\"" }
includedirs { "source/CLEO_SDK" }
libdirs { "bin" }
filter "configurations:Debug*"
defines "DEBUG"
symbols "On"
filter "configurations:Release*"
defines "NDEBUG"
optimize "On"
project "III.ClipboardControl"
defines { "CLEO_III" }
files { "source/CLEO_SDK/demo_plugins/ClipboardControl/*.h", "source/CLEO_SDK/demo_plugins/ClipboardControl/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_III_DIR", "gta3.exe", "\\cleo\\cleo_plugins")
project "III.FileSystemOperations"
defines { "CLEO_III" }
files { "source/CLEO_SDK/demo_plugins/FileSystemOperations/*.h", "source/CLEO_SDK/demo_plugins/FileSystemOperations/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_III_DIR", "gta3.exe", "\\cleo\\cleo_plugins")
project "III.IniFiles"
defines { "CLEO_III" }
files { "source/CLEO_SDK/demo_plugins/IniFiles/*.h", "source/CLEO_SDK/demo_plugins/IniFiles/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_III_DIR", "gta3.exe", "\\cleo\\cleo_plugins")
project "III.IntOperations"
defines { "CLEO_III" }
files { "source/CLEO_SDK/demo_plugins/IntOperations/*.h", "source/CLEO_SDK/demo_plugins/IntOperations/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_III_DIR", "gta3.exe", "\\cleo\\cleo_plugins")
project "III.MemoryModule"
defines { "CLEO_III" }
files { "source/CLEO_SDK/demo_plugins/MemoryModule/*.h", "source/CLEO_SDK/demo_plugins/MemoryModule/*.cpp", "source/CLEO_SDK/demo_plugins/MemoryModule/*.c" }
files { "Resources/*.rc" }
setupDebugger("GTA_III_DIR", "gta3.exe", "\\cleo\\cleo_plugins")
project "VC.ClipboardControl"
defines { "CLEO_VC" }
files { "source/CLEO_SDK/demo_plugins/ClipboardControl/*.h", "source/CLEO_SDK/demo_plugins/ClipboardControl/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "\\cleo\\cleo_plugins")
project "VC.FileSystemOperations"
defines { "CLEO_VC" }
files { "source/CLEO_SDK/demo_plugins/FileSystemOperations/*.h", "source/CLEO_SDK/demo_plugins/FileSystemOperations/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "\\cleo\\cleo_plugins")
project "VC.IniFiles"
defines { "CLEO_VC" }
files { "source/CLEO_SDK/demo_plugins/IniFiles/*.h", "source/CLEO_SDK/demo_plugins/IniFiles/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "\\cleo\\cleo_plugins")
project "VC.IntOperations"
defines { "CLEO_VC" }
files { "source/CLEO_SDK/demo_plugins/IntOperations/*.h", "source/CLEO_SDK/demo_plugins/IntOperations/*.cpp" }
files { "Resources/*.rc" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "\\cleo\\cleo_plugins")
project "VC.MemoryModule"
defines { "CLEO_VC" }
files { "source/CLEO_SDK/demo_plugins/MemoryModule/*.h", "source/CLEO_SDK/demo_plugins/MemoryModule/*.cpp", "source/CLEO_SDK/demo_plugins/MemoryModule/*.c" }
files { "Resources/*.rc" }
setupDebugger("GTA_VC_DIR", "gta-vc.exe", "\\cleo\\cleo_plugins")