@@ -7,11 +7,11 @@ require "install_cef"
77
88-- Set CI Build global
99local ci = os.getenv (" CI" )
10- if ci and ci :lower () == " true" then
11- CI_BUILD = true
12- else
10+ if ci and ci :lower () == " true" then
11+ CI_BUILD = true
12+ else
1313 CI_BUILD = false
14- end
14+ end
1515GLIBC_COMPAT = os.getenv (" GLIBC_COMPAT" ) == " true"
1616
1717workspace " MTASA"
@@ -26,31 +26,31 @@ workspace "MTASA"
2626
2727 location " Build"
2828 startproject " Client Launcher"
29-
29+
3030 cppdialect " C++17"
3131 characterset " MBCS"
3232 pic " On"
3333 symbols " On"
34-
34+
3535 dxdir = os.getenv (" DXSDK_DIR" ) or " "
36- includedirs {
36+ includedirs {
3737 " vendor" ,
38- " Shared/sdk" ,
38+ " Shared/sdk" ,
3939 }
4040
41- defines {
41+ defines {
4242 " _CRT_SECURE_NO_WARNINGS" ,
4343 " _SCL_SECURE_NO_WARNINGS" ,
4444 " _CRT_NONSTDC_NO_DEPRECATE" ,
4545 " NOMINMAX" ,
4646 " _TIMESPEC_DEFINED"
4747 }
48-
49- -- Helper function for output path
48+
49+ -- Helper function for output path
5050 buildpath = function (p ) return " %{wks.location}/../Bin/" .. p .. " /" end
51- copy = function (p ) return " {COPY} %{cfg.buildtarget.abspath} \" %{wks.location}../Bin/" .. p .. " /\" " end
51+ copy = function (p ) return " {COPY} %{cfg.buildtarget.abspath} \" %{wks.location}../Bin/" .. p .. " /\" " end
5252
53- if GLIBC_COMPAT then
53+ if GLIBC_COMPAT then
5454 filter { " system:linux" }
5555 includedirs " /compat"
5656 linkoptions " -static-libstdc++ -static-libgcc"
@@ -60,53 +60,53 @@ workspace "MTASA"
6060 filter { " system:linux" , " platforms:x64" }
6161 libdirs { " /compat/x64" }
6262 end
63-
63+
6464 filter " platforms:x86"
6565 architecture " x86"
6666 filter " platforms:x64"
6767 architecture " x86_64"
68-
68+
6969 filter " configurations:Debug"
7070 defines { " MTA_DEBUG" }
7171 targetsuffix " _d"
72-
72+
7373 filter " configurations:Release or configurations:Nightly"
7474 optimize " Speed" -- "On"=MS:/Ox GCC:/O2 "Speed"=MS:/O2 GCC:/O3 "Full"=MS:/Ox GCC:/O3
75-
75+
7676 if CI_BUILD then
7777 filter {}
7878 defines { " CI_BUILD=1" }
79-
79+
8080 filter { " system:linux" }
8181 linkoptions { " -s" }
82- end
83-
82+ end
83+
8484 filter {" system:windows" , " configurations:Nightly" , " kind:not StaticLib" }
8585 os .mkdir (" Build/Symbols" )
8686 linkoptions " /PDB:\" Symbols\\ $(ProjectName).pdb\" "
87-
87+
8888 filter {" system:windows" , " toolset:*_xp*" }
8989 buildoptions { " /Zc:threadSafeInit-" } -- Fix Windows XP not initialising TLS early
90-
90+
9191 filter " system:windows"
9292 toolset " v141"
9393 staticruntime " On"
9494 defines { " WIN32" , " _WIN32" }
95- includedirs {
95+ includedirs {
9696 path .join (dxdir , " Include" )
9797 }
9898 libdirs {
9999 path .join (dxdir , " Lib/x86" )
100100 }
101-
101+
102102 filter {" system:windows" , " configurations:Debug" }
103103 buildoptions { " /MT" } -- Don't use debug runtime when static linking
104104 defines { " DEBUG" } -- Using DEBUG as _DEBUG is not available with /MT
105105
106106 filter " system:linux"
107107 vectorextensions " SSE2"
108108 buildoptions { " -fvisibility=hidden" }
109-
109+
110110 -- Only build the client on Windows
111111 if os .target () == " windows" then
112112 group " Client"
@@ -121,12 +121,12 @@ workspace "MTASA"
121121 include " Client/loader"
122122 include " Client/multiplayer_sa"
123123 include " Client/mods/deathmatch"
124-
124+
125125 group " Client/CEGUI"
126126 include " vendor/cegui-0.4.0-custom/src/renderers/directx9GUIRenderer"
127127 include " vendor/cegui-0.4.0-custom/WidgetSets/Falagard"
128128 include " vendor/cegui-0.4.0-custom"
129-
129+
130130 group " Vendor"
131131 include " vendor/portaudio"
132132 include " vendor/cef3"
@@ -137,7 +137,7 @@ workspace "MTASA"
137137 include " vendor/pthreads"
138138 include " vendor/libspeex"
139139 end
140-
140+
141141 filter {}
142142 group " Server"
143143 include " Server/core"
@@ -149,7 +149,7 @@ workspace "MTASA"
149149 group " Shared"
150150 include " Shared"
151151 include " Shared/XML"
152-
152+
153153 group " Vendor"
154154 include " vendor/bcrypt"
155155 include " vendor/cryptopp"
0 commit comments