-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
75 lines (63 loc) · 1.35 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
-- premake5.lua
require ".premake_modules/usage"
require ".premake_modules/asan"
-- Main workspace
workspace "DriverNGHook"
language "C++"
cppdialect "C++20"
configurations { "Debug", "Release" }
linkgroups 'On'
characterset "MBCS"
objdir "build"
targetdir "bin/%{cfg.platform}/%{cfg.buildcfg}"
location "project_%{_ACTION}"
platforms "x86"
filter "system:Windows"
disablewarnings { "4996", "4554", "4244", "4101", "4838", "4309" }
defines {
"NOMINMAX",
"_CRT_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_DEPRECATE"
}
filter "configurations:Debug"
defines {
"DEBUG"
}
symbols "On"
filter "configurations:Release"
defines {
"NDEBUG",
}
optimize "On"
symbols "On"
-- enableASAN "On"
group "Dependencies"
-- dependencies are in separate configuration
include "src_dependency/premake5.lua"
group "Main"
project "DriverLuaShim"
kind "StaticLib"
language "C"
files {
"DriverLuaShim/**",
}
uses {
"lua"
}
project "DriverNGHook"
kind "SharedLib"
targetextension ".asi" -- can be used with Ultimate ASI loader
uses {
"HF",
"lua", "luafilesystem",
"imgui", "imgui_lua"
}
files {
"DriverNGHook/**.cpp",
"DriverNGHook/**.h",
}
links {
"DriverLuaShim", "d3d9", "dinput8", "dxguid"
}
includedirs {
"DriverNGHook"
}