-
Notifications
You must be signed in to change notification settings - Fork 4
/
premake5.lua
74 lines (60 loc) · 2.31 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
workspace "III.VC.SA.SaveLoader"
configurations { "Release", "Debug" }
location "build"
defines { "rsc_CompanyName=\"ThirteenAG\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.asi\"" }
defines { "rsc_FileDescription=\"https://github.com/ThirteenAG\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/III.VC.SA.SaveLoader\"" }
files { "source/*.h" }
files { "source/*.cpp", "source/*.c" }
files { "source/*.rc" }
files { "external/cpr/cpr/*.cpp" }
files { "external/jsoncpp/src/lib_json/*.cpp" }
files { "external/hooking/Hooking.Patterns.h", "external/hooking/Hooking.Patterns.cpp" }
includedirs { "source/" }
includedirs { "external/hooking" }
includedirs { "external/injector/include" }
includedirs { "external/inireader" }
includedirs { "external/curl/builds/libcurl-vc14-x86-release-static-ipv6-sspi-winssl/include" }
includedirs { "external/cpr/include" }
includedirs { "external/jsoncpp/include" }
libdirs { "external/curl/builds/libcurl-vc14-x86-release-static-ipv6-sspi-winssl/lib" }
links { "wldap32.lib", "Ws2_32.lib" }
links { "libcurl_a.lib" }
defines { "CURL_STATICLIB" }
prebuildcommands {
"cd ../external/curl/winbuild/",
"nmake /f Makefile.vc mode=static RTLIBCFG=static ENABLE_IDN=no VC=14"
}
project "GTASNPTestApp"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
targetextension ".exe"
excludes { "source/dllmain.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }
characterset ("MBCS")
project "III.VC.SA.SaveLoader"
kind "SharedLib"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
targetextension ".asi"
excludes { "source/GTASNPTestApp.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
characterset ("MBCS")
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }
characterset ("MBCS")
targetdir "data/"