forked from TheIndra55/TRLAU-menu-hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
46 lines (36 loc) · 1.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
workspace "TRAE-menu-hook"
architecture "x86"
configurations {"Debug", "Release"}
project "TRAE-menu-hook"
kind "SharedLib"
targetextension ".asi"
files {
"*.hpp",
"*.cpp",
"**/*.cpp",
"**/*.hpp"
}
-- ignore all vendor files in above glob
removefiles { "vendor/**" }
-- imgui files
files {
"vendor/imgui/*.cpp",
"vendor/imgui/*.h",
"vendor/imgui/examples/imgui_impl_win32.cpp",
"vendor/imgui/examples/imgui_impl_win32.h",
"vendor/imgui/examples/imgui_impl_dx9.cpp",
"vendor/imgui/examples/imgui_impl_dx9.h"
}
includedirs { "vendor/imgui" }
files "vendor/MinHook.h"
language "C++"
links { "MinHook.x86.lib", "d3d9.lib" }
-- Xinput disabled since it causes issues with Windows 7
defines { "IMGUI_IMPL_WIN32_DISABLE_GAMEPAD", "GENERAL_FIXES", "$(GameConstant)" }
filter "configurations:Debug"
defines { "DEBUG", "_DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
symbols "On"