Option to disable HAALISOURCE when building FFMS2 on VS

Visual Studio Express does not supply ATL and can't build the Haali-
supplied code in FFMS2, so provide an escape hatch for that.
This commit is contained in:
Niels Martin Hansen 2014-05-04 09:56:37 +02:00
parent c30ca1a321
commit 5bb4754e40
1 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,10 @@
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
</ImportGroup>
<PropertyGroup>
<Ffms2PreprocessorHaalisource Condition="'$(Ffms2UseAtl)'!='0'">HAALISOURCE;</Ffms2PreprocessorHaalisource>
</PropertyGroup>
<!-- Project specific configuration -->
<ItemDefinitionGroup>
<ClCompile>
@ -24,7 +28,7 @@
<PreprocessorDefinitions>
WITH_AVRESAMPLE;
FFMS_EXPORTS;
HAALISOURCE;
$(Ffms2PreprocessorHaalisource)
_CRT_SECURE_NO_WARNINGS;
_CRT_NONSTDC_NO_DEPRECATE;
_SCL_SECURE_NO_WARNINGS;