2021-07-21 13:31:02 -04:00
|
|
|
|
|
|
|
----------------------------
|
|
|
|
-- Project Generator
|
|
|
|
----------------------------
|
|
|
|
-- Environment vars
|
|
|
|
PSDK_DIR = os.getenv("PLUGIN_SDK_DIR")
|
|
|
|
DX9SDK_DIR = os.getenv("DIRECTX9_SDK_DIR")
|
|
|
|
GTASA_DIR = "C:/Work/GTASanAndreas"
|
2021-08-01 21:41:48 -04:00
|
|
|
GTAVC_DIR = "F:/GTA Vice City"
|
2021-07-21 13:31:02 -04:00
|
|
|
|
|
|
|
if (DX9SDK_DIR == nil) then
|
|
|
|
error("DIRECTX9_SDK_DIR environment variable not set")
|
|
|
|
end
|
|
|
|
|
|
|
|
if (PSDK_DIR == nil) then
|
|
|
|
error("PLUGIN_SDK_DIR environment variable not set")
|
|
|
|
end
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
workspace "CheatMenu"
|
2021-07-25 08:29:01 -04:00
|
|
|
configurations { "Debug", "Release" }
|
|
|
|
architecture "x86"
|
|
|
|
platforms "Win32"
|
|
|
|
language "C++"
|
|
|
|
cppdialect "C++20"
|
|
|
|
characterset "MBCS"
|
|
|
|
staticruntime "On"
|
2021-07-30 18:01:17 -04:00
|
|
|
location "../build"
|
2021-07-21 13:31:02 -04:00
|
|
|
|
|
|
|
project "Depend"
|
2021-09-16 09:35:02 -04:00
|
|
|
kind "StaticLib"
|
2021-07-30 18:01:17 -04:00
|
|
|
targetdir "../build/bin"
|
2021-07-21 13:31:02 -04:00
|
|
|
|
|
|
|
files {
|
2021-07-30 18:01:17 -04:00
|
|
|
"../depned/**.h",
|
|
|
|
"../depend/**.hpp",
|
|
|
|
"../depend/**.c",
|
|
|
|
"../depend/**.cpp"
|
2021-07-21 13:31:02 -04:00
|
|
|
}
|
|
|
|
libdirs (PSDK_DIR .. "/output/lib")
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines { "DEBUG", "IS_PLATFORM_WIN" }
|
|
|
|
symbols "On"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines { "NDEBUG", "IS_PLATFORM_WIN" }
|
|
|
|
optimize "On"
|
|
|
|
|
2021-08-01 21:41:48 -04:00
|
|
|
project "CheatMenuVC"
|
|
|
|
kind "SharedLib"
|
|
|
|
targetdir (GTAVC_DIR)
|
|
|
|
targetextension ".asi"
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../src/CheatMenu.h",
|
|
|
|
"../src/CheatMenu.cpp",
|
|
|
|
"../src/pch.h",
|
|
|
|
"../src/pch.cpp",
|
|
|
|
"../src/Hook.h",
|
|
|
|
"../src/Hook.cpp",
|
|
|
|
"../src/Updater.h",
|
|
|
|
"../src/Updater.cpp",
|
|
|
|
"../src/Json.h",
|
|
|
|
"../src/Json.cpp",
|
2021-08-09 14:26:49 -04:00
|
|
|
"../src/Animation.h",
|
|
|
|
"../src/Animation.cpp",
|
2021-08-01 21:41:48 -04:00
|
|
|
"../src/Teleport.h",
|
|
|
|
"../src/Teleport.cpp",
|
2021-08-06 11:53:18 -04:00
|
|
|
"../src/Player.h",
|
|
|
|
"../src/Player.cpp",
|
2021-08-07 12:01:44 -04:00
|
|
|
"../src/Ped.h",
|
|
|
|
"../src/Ped.cpp",
|
2021-08-01 21:41:48 -04:00
|
|
|
"../src/Ui.h",
|
|
|
|
"../src/Ui.cpp",
|
2021-08-09 14:26:49 -04:00
|
|
|
"../src/Vehicle.h",
|
|
|
|
"../src/Vehicle.cpp",
|
2021-08-01 21:41:48 -04:00
|
|
|
"../src/Util.h",
|
|
|
|
"../src/Util.cpp",
|
|
|
|
"../src/Menu.h",
|
2021-08-12 23:28:19 -04:00
|
|
|
"../src/Menu.cpp",
|
2021-08-14 20:36:11 -04:00
|
|
|
"../src/Weapon.h",
|
|
|
|
"../src/Weapon.cpp",
|
2021-08-17 01:46:41 -04:00
|
|
|
"../src/Game.h",
|
|
|
|
"../src/Game.cpp",
|
2021-08-19 16:19:20 -04:00
|
|
|
"../src/Visual.h",
|
|
|
|
"../src/Visual.cpp",
|
2021-08-12 23:28:19 -04:00
|
|
|
"../src/ResourceStore.h",
|
2021-08-28 01:13:18 -04:00
|
|
|
"../src/ResourceStore.cpp",
|
|
|
|
"../src/FileHandler.h",
|
|
|
|
"../src/FileHandler.cpp"
|
2021-08-01 21:41:48 -04:00
|
|
|
}
|
|
|
|
includedirs {
|
|
|
|
PSDK_DIR .. "/plugin_vc/",
|
|
|
|
PSDK_DIR .. "/plugin_vc/game_vc/",
|
|
|
|
PSDK_DIR .. "/shared/",
|
|
|
|
PSDK_DIR .. "/shared/game/"
|
|
|
|
}
|
|
|
|
libdirs (PSDK_DIR .. "/output/lib")
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"NDEBUG",
|
|
|
|
"IS_PLATFORM_WIN" ,
|
|
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
|
|
"_CRT_NON_CONFORMING_SWPRINTFS",
|
|
|
|
"GTAVC",
|
|
|
|
"_DX9_SDK_INSTALLED",
|
|
|
|
"PLUGIN_SGV_10US"
|
|
|
|
}
|
|
|
|
|
|
|
|
pchheader "pch.h"
|
|
|
|
pchsource "../src/pch.cpp"
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
symbols "On"
|
|
|
|
links {
|
|
|
|
"Depend",
|
|
|
|
"d3d9",
|
|
|
|
"d3d11",
|
|
|
|
"XInput9_1_0",
|
|
|
|
"Pdh",
|
|
|
|
"urlmon",
|
|
|
|
"plugin_vc_d.lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "On"
|
|
|
|
links {
|
|
|
|
"Depend",
|
|
|
|
"d3d9",
|
|
|
|
"d3d11",
|
|
|
|
"XInput9_1_0",
|
|
|
|
"Pdh",
|
|
|
|
"urlmon",
|
|
|
|
"plugin_vc.lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
project "CheatMenuSA"
|
2021-07-21 13:31:02 -04:00
|
|
|
kind "SharedLib"
|
|
|
|
targetdir (GTASA_DIR)
|
|
|
|
targetextension ".asi"
|
|
|
|
|
|
|
|
files {
|
2021-07-30 18:01:17 -04:00
|
|
|
"../src/**.h",
|
|
|
|
"../src/**.hpp",
|
|
|
|
"../src/**.cpp"
|
2021-07-21 13:31:02 -04:00
|
|
|
}
|
|
|
|
includedirs {
|
|
|
|
PSDK_DIR .. "/plugin_sa/",
|
|
|
|
PSDK_DIR .. "/plugin_sa/game_sa/",
|
|
|
|
PSDK_DIR .. "/shared/",
|
|
|
|
PSDK_DIR .. "/shared/game/"
|
|
|
|
}
|
|
|
|
libdirs (PSDK_DIR .. "/output/lib")
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"NDEBUG",
|
|
|
|
"IS_PLATFORM_WIN" ,
|
|
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
|
|
"_CRT_NON_CONFORMING_SWPRINTFS",
|
|
|
|
"GTASA",
|
|
|
|
"_DX9_SDK_INSTALLED",
|
|
|
|
"PLUGIN_SGV_10US"
|
|
|
|
}
|
|
|
|
|
|
|
|
pchheader "pch.h"
|
2021-07-30 18:01:17 -04:00
|
|
|
pchsource "../src/pch.cpp"
|
2021-07-21 13:31:02 -04:00
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
symbols "On"
|
|
|
|
links {
|
|
|
|
"Depend",
|
|
|
|
"d3d9",
|
|
|
|
"d3d11",
|
|
|
|
"XInput9_1_0",
|
|
|
|
"Pdh",
|
|
|
|
"urlmon",
|
|
|
|
"plugin_d.lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
2021-07-21 14:06:42 -04:00
|
|
|
optimize "On"
|
2021-07-21 13:31:02 -04:00
|
|
|
links {
|
|
|
|
"Depend",
|
|
|
|
"d3d9",
|
|
|
|
"d3d11",
|
|
|
|
"XInput9_1_0",
|
|
|
|
"Pdh",
|
|
|
|
"urlmon",
|
|
|
|
"plugin.lib"
|
|
|
|
}
|
|
|
|
|