forked from MAFINS/MenyooSP
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpremake5.lua
More file actions
68 lines (57 loc) · 1.66 KB
/
premake5.lua
File metadata and controls
68 lines (57 loc) · 1.66 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
workspace "Menyoo"
configurations { "Debug", "Release" }
platforms { "x64" }
location "Solution"
startproject "Menyoo"
project "Menyoo"
kind "SharedLib"
language "C++"
cppdialect "C++20"
characterset "Unicode"
targetextension ".asi"
targetdir "Solution/source/%{cfg.buildcfg == 'Release' and '_Build/bin/Release' or 'bin/Debug'}"
objdir "Solution/source/%{cfg.buildcfg == 'Release' and '_Build/tmp/Release' or 'tmp/Debug'}"
files {
"Solution/source/**.h",
"Solution/source/**.cpp",
"Solution/source/Menyoo.rc",
"Solution/external/pugixml/src/pugixml.cpp",
"Solution/external/pugixml/src/pugiconfig.hpp",
"Solution/external/pugixml/src/pugixml.hpp",
}
includedirs {
"Solution/source",
"Solution/external",
}
links { "ScriptHookV" }
libdirs { "Solution/external/ScriptHookV/SDK/lib" }
defines {
"WIN32",
"_WINDOWS",
"_USRDLL",
"NativeTrainer_EXPORTS",
}
buildoptions { "/bigobj" }
linkoptions { "/SUBSYSTEM:WINDOWS" }
staticruntime "On"
filter "configurations:Debug"
runtime "Debug"
symbols "On"
optimize "Off"
defines { "_DEBUG" }
linkoptions { "/INCREMENTAL" }
filter "configurations:Release"
runtime "Release"
symbols "Off"
optimize "Speed"
defines { "NDEBUG" }
multiprocessorcompile "On"
floatingpoint "Fast"
buildoptions { "/GL", "/Gy", "/Oi" }
linkoptions {
"/LTCG",
"/OPT:REF",
"/OPT:ICF",
"/INCREMENTAL:NO",
"/MAP",
}