<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<PropertyGroup>
		<TargetName>q3map2</TargetName>
	</PropertyGroup>
	<ItemDefinitionGroup>
		<ClCompile>
			<PreprocessorDefinitions>
				Q3MAP_VERSION="2.5.17-bloodrun";
				RADIANT_VERSION="1.6.0";
				RADIANT_MAJOR_VERSION="6";
				RADIANT_MINOR_VERSION="0";
				WIN32;_WIN32;NOMINMAX;_USE_MATH_DEFINES;
				LIBXML_STATIC;
				%(PreprocessorDefinitions)
			</PreprocessorDefinitions>
			<AdditionalIncludeDirectories>
				$(Q3Map2SrcDir)shims;
				$(Q3Map2SrcDir)q3map2;
				$(Q3Map2SrcDir)common;
				$(Q3Map2SrcDir)libs;
				$(Q3Map2SrcDir)libs\ddslib;
				$(Q3Map2SrcDir)include;
				$(AssimpSrcDir)include;
				$(LibXml2SrcDir)include;
				$(LibPngSrcDir);
				$(ZlibSrcDir);
				$(LibJpegTurboSrcDir);
				%(AdditionalIncludeDirectories)
			</AdditionalIncludeDirectories>
			<!-- q3map2 uses C++20 features (std::span, std::ranges) -->
			<ExceptionHandling>Sync</ExceptionHandling>
			<LanguageStandard>stdcpplatest</LanguageStandard>
		</ClCompile>
		<Link>
			<SubSystem>Console</SubSystem>
			<StackReserveSize>4194304</StackReserveSize>
			<AdditionalDependencies>assimp$(LibExt);libxml2$(LibExt);libpng$(LibExt);zlib$(LibExt);ws2_32.lib;bcrypt.lib;libjpeg-turbo$(LibExt);%(AdditionalDependencies)</AdditionalDependencies>
			<AdditionalLibraryDirectories Condition="'$(BuildType)'=='Release'">$(ProjectRoot)build\$(Platform)\Release QC\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
			<AdditionalLibraryDirectories Condition="'$(BuildType)'=='Debug'">$(ProjectRoot)build\$(Platform)\Debug QC\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
		</Link>
	</ItemDefinitionGroup>
</Project>
