Skip to content

Commit

Permalink
Updated compile path for libde265 to work with libheif
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeHoefling committed Feb 1, 2022
1 parent f5ecf6f commit da66998
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions build/libde265.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ set arch=%1
set config=%2
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %arch%
cd ../third-party/libde265-%arch%
mkdir build
cd build
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=%config% ..
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=%config% .
nmake
4 changes: 2 additions & 2 deletions build/libheif.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cmake -G"NMake Makefiles"^
-DJPEG_INCLUDE_DIR:PATH=%thirdPartyPath%\libjpeg-turbo-%arch%^
-DJPEG_LIBRARY_DEBUG:FILEPATH=%thirdPartyPath%\libjpeg-turbo-%arch%\jpeg.lib^
-DJPEG_LIBRARY_RELEASE:FILEPATH=%thirdPartyPath%\libjpeg-turbo-%arch%\jpeg.lib^
-DLIBDE265_INCLUDE_DIR:PATH=%thirdPartyPath%\libde265-%arch%\build^
-DLIBDE265_LIBRARY:FILEPATH=%thirdPartyPath%\libde265-%arch%\build\libde265\libde265.lib^
-DLIBDE265_INCLUDE_DIR:PATH=%thirdPartyPath%\libde265-%arch%^
-DLIBDE265_LIBRARY:FILEPATH=%thirdPartyPath%\libde265-%arch%\libde265\libde265.lib^
..

nmake
4 changes: 2 additions & 2 deletions src/FileOnQ.Imaging.Heif/Build/libde265.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<Exec Command="libde265.bat x86 $(Configuration)" WorkingDirectory="$(ThirdPartyDir)/../build" />
<Exec Command="libde265.bat x64 $(Configuration)" WorkingDirectory="$(ThirdPartyDir)/../build" />

<Copy SourceFiles="$(ThirdPartyDir)/libde265-x86/build/libde265/libde265.dll" DestinationFolder="runtimes/win-x86/native" />
<Copy SourceFiles="$(ThirdPartyDir)/libde265-x64/build/libde265/libde265.dll" DestinationFolder="runtimes/win-x64/native" />
<Copy SourceFiles="$(ThirdPartyDir)/libde265-x86/libde265/libde265.dll" DestinationFolder="runtimes/win-x86/native" />
<Copy SourceFiles="$(ThirdPartyDir)/libde265-x64/libde265/libde265.dll" DestinationFolder="runtimes/win-x64/native" />
</Target>

<Target Name="libde265-clean" BeforeTargets="Clean">
Expand Down

0 comments on commit da66998

Please # to comment.