Statically link ffms2 on Windows

It used to need to be dynamic due to that it was a nightmare to build,
with very specific toolchain requirements, but that's no longer the
case.
This commit is contained in:
Thomas Goyne 2016-02-04 16:38:49 -08:00
parent 9bbfdddde0
commit d1e5a2674b
7 changed files with 4 additions and 9 deletions

View File

@ -79,7 +79,7 @@
<!-- FFmpegSource support -->
<ItemDefinitionGroup Condition="'$(AegisubUseFfms)'=='true'">
<ClCompile>
<PreprocessorDefinitions>WITH_FFMS2;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WITH_FFMS2;FFMS_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>

View File

@ -131,7 +131,6 @@
<OutputPath>csri\</OutputPath>
</RarContents>
<RarContents Include="$(AegisubSourceBase)bin\devil.dll" Condition="'$(AegisubUseAvisynth)' == 'true'" />
<RarContents Include="$(AegisubSourceBase)bin\ffms2_$(AegisubPlatformSuffix).dll" Condition="'$(AegisubUseFfms)' == 'true'" />
<RarContents Include="$(AegisubSourceBase)packages\win_installer\portable\config.json" />
<RarContents Include="$(VCInstallDir)redist\$(PlatformName)\Microsoft.VC140.CRT\msvcp140.dll" />
<RarContents Include="$(VCInstallDir)redist\$(PlatformName)\Microsoft.VC140.CRT\concrt140.dll" />

View File

@ -101,7 +101,6 @@
<Filter>Automation\Include</Filter>
</RarContents>
<RarContents Include="$(AegisubSourceBase)bin\aegisub$(AegisubPlatformSuffix).exe" />
<RarContents Include="$(AegisubSourceBase)bin\ffms2_$(AegisubPlatformSuffix).dll" />
<RarContents Include="$(AegisubSourceBase)packages\win_installer\portable\config.json" />
<RarContents Include="$(VCInstallDir)redist\$(PlatformName)\Microsoft.VC110.MFC\mfc110u.dll">
<Filter>Runtime</Filter>

View File

@ -7,7 +7,7 @@
<!-- Aegisub project configuration -->
<PropertyGroup Label="AegisubConfiguration">
<AegisubProjectType>dll</AegisubProjectType>
<AegisubProjectType>lib</AegisubProjectType>
</PropertyGroup>
<ImportGroup Label="PropertySheets">
@ -24,6 +24,7 @@
<PreprocessorDefinitions>
WITH_SWRESAMPLE;
FFMS_EXPORTS;
FFMS_STATIC;
_CRT_SECURE_NO_WARNINGS;
_CRT_NONSTDC_NO_DEPRECATE;
_SCL_SECURE_NO_WARNINGS;

View File

@ -38,8 +38,6 @@
DestDir: {app}; Source: src\devil.dll; Flags: ignoreversion
DestDir: {app}; Source: src\avisynth.dll; Flags: ignoreversion
DestDir: {app}; Source: src\DirectShowSource.dll; Flags: ignoreversion
; ffmpegsource
DestDir: {app}; Source: ..\..\bin\ffms2_32.dll; Flags: ignoreversion
; vsfilter
DestDir: {app}\csri; Source: ..\..\bin\csri\xy-vsfilter-aegisub32.dll; Flags: ignoreversion

View File

@ -34,8 +34,6 @@
[Files]
; ffmpegsource
DestDir: {app}; Source: ..\..\bin\ffms2_64.dll; Flags: ignoreversion
; vsfilter
DestDir: {app}\csri; Source: ..\..\bin\csri\xy-vsfilter-aegisub64.dll; Flags: ignoreversion

2
vendor/ffms2 vendored

@ -1 +1 @@
Subproject commit 7477df0044bdaa9c869c1c42ef40c5d2b83e6469
Subproject commit 06bcf231cab00bfbf28f910c6ec3ca6680957cb6