@@ -10,10 +10,13 @@ BUILD_LUA = true
1010LUA_LIB_NAME = " lua" -- change this if you don't build Lua
1111
1212BUILD_EVENT = os .istarget (" windows" )
13+
1314BUILD_FREETYPE = os .istarget (" windows" )
15+
1416BUILD_SQLITE = os .istarget (" windows" )
1517
1618BUILD_IRRLICHT = true -- modified Irrlicht is required, can't use the official one
19+ USE_DXSDK = true
1720
1821USE_AUDIO = true
1922AUDIO_LIB = " miniaudio" -- can be "miniaudio" or "irrklang"
@@ -51,6 +54,7 @@ newoption { trigger = "build-irrlicht", category = "YGOPro - irrlicht", descript
5154newoption { trigger = " no-build-irrlicht" , category = " YGOPro - irrlicht" , description = " " }
5255newoption { trigger = " irrlicht-include-dir" , category = " YGOPro - irrlicht" , description = " " , value = " PATH" }
5356newoption { trigger = " irrlicht-lib-dir" , category = " YGOPro - irrlicht" , description = " " , value = " PATH" }
57+ newoption { trigger = " no-dxsdk" , category = " YGOPro - irrlicht" , description = " " }
5458
5559newoption { trigger = " no-audio" , category = " YGOPro" , description = " " }
5660newoption { trigger = " audio-lib" , category = " YGOPro" , description = " " , value = " miniaudio, irrklang" , default = AUDIO_LIB }
@@ -148,6 +152,16 @@ if not BUILD_IRRLICHT then
148152 IRRLICHT_LIB_DIR = GetParam (" irrlicht-lib-dir" ) or os .findlib (" irrlicht" )
149153end
150154
155+ if GetParam (" no-dxsdk" ) then
156+ USE_DXSDK = false
157+ end
158+ if USE_DXSDK and os .istarget (" windows" ) then
159+ if not os.getenv (" DXSDK_DIR" ) then
160+ print (" DXSDK_DIR environment variable not set, it seems you don't have the DirectX SDK installed. DirectX mode will be disabled." )
161+ USE_DXSDK = false
162+ end
163+ end
164+
151165if GetParam (" no-audio" ) then
152166 USE_AUDIO = false
153167elseif GetParam (" no-use-miniaudio" ) then
@@ -252,7 +266,6 @@ workspace "YGOPro"
252266 configurations { " Release" , " Debug" }
253267
254268 filter " system:windows"
255- entrypoint " mainCRTStartup"
256269 systemversion " latest"
257270 startproject " YGOPro"
258271 if WINXP_SUPPORT then
@@ -261,6 +274,13 @@ workspace "YGOPro"
261274 else
262275 defines { " WINVER=0x0601" } -- WIN7
263276 end
277+ platforms { " Win32" , " x64" }
278+
279+ filter { " system:windows" , " platforms:Win32" }
280+ architecture " x86"
281+
282+ filter { " system:windows" , " platforms:x64" }
283+ architecture " x86_64"
264284
265285 filter " system:macosx"
266286 libdirs { " /usr/local/lib" }
@@ -287,6 +307,18 @@ workspace "YGOPro"
287307 defines " _DEBUG"
288308 targetdir " bin/debug"
289309
310+ filter { " system:windows" , " platforms:Win32" , " configurations:Release" }
311+ targetdir " bin/release/x86"
312+
313+ filter { " system:windows" , " platforms:Win32" , " configurations:Debug" }
314+ targetdir " bin/debug/x86"
315+
316+ filter { " system:windows" , " platforms:x64" , " configurations:Release" }
317+ targetdir " bin/release/x64"
318+
319+ filter { " system:windows" , " platforms:x64" , " configurations:Debug" }
320+ targetdir " bin/debug/x64"
321+
290322 filter { " configurations:Release" , " action:vs*" }
291323 if linktimeoptimization then
292324 linktimeoptimization " On"
0 commit comments