The transcoder is now compiled during the build process.

This commit is contained in:
Zoe Roux 2020-03-01 03:18:54 +01:00
parent a012612e03
commit 5959a9ef54
2 changed files with 15 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<SpaRoot>Views/WebClient/</SpaRoot>
<TranscoderRoot>../transcoder</TranscoderRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules/**</DefaultItemExcludes>
<!-- Set this to true if you enable server-side prerendering -->
@ -70,4 +71,17 @@
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
</Target>
<Target Name="Compile the transcoder" BeforeTargets="BeforeBuild">
<Exec WorkingDirectory="$(TranscoderRoot)" Command="mkdir --parent build; cd build; cmake ..; make -j" />
<Copy SourceFiles="$(TranscoderRoot)/build/libtranscoder.so" DestinationFolder="." />
</Target>
<ItemGroup>
<None Include="transcoder.dll" Condition="$(OS) == 'Windows_NT'">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="libtranscoder.so" Condition="$(OS) == 'Unix'">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

@ -1 +1 @@
Subproject commit 1424677854294090720a2412c29599f4fde20f2e
Subproject commit a8e443545aa2963d995b6b2937d61a77620899b0