[FFmpeg-devel] [PATCH] Add Windows resource file support for shared libraries

James Almer jamrial at gmail.com
Tue Nov 26 06:37:39 CET 2013


On 26/11/13 12:51 AM, Timothy Gu wrote:
> Based on patch by: James Almer <jamrial at gmail.com>
> 
> Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
> ---
>  Makefile                       |  3 +-
>  common.mak                     |  9 ++++-
>  configure                      | 10 ++++-
>  libavcodec/Makefile            |  3 ++
>  libavcodec/avcodecres.rc       | 32 +++++++++++++++
>  libavdevice/Makefile           |  3 ++
>  libavdevice/avdeviceres.rc     | 32 +++++++++++++++
>  libavfilter/Makefile           |  3 ++
>  libavfilter/avfilterres.rc     | 32 +++++++++++++++
>  libavformat/Makefile           |  3 ++
>  libavformat/avformatres.rc     | 32 +++++++++++++++
>  libavresample/Makefile         |  3 ++
>  libavresample/avresampleres.rc | 32 +++++++++++++++
>  libavutil/Makefile             |  3 ++
>  libavutil/avutilres.rc         | 32 +++++++++++++++
>  libpostproc/Makefile           |  3 ++
>  libpostproc/postprocres.rc     | 32 +++++++++++++++
>  library.mak                    |  2 +-
>  libswresample/Makefile         |  3 ++
>  libswresample/swresampleres.rc | 32 +++++++++++++++
>  libswscale/Makefile            |  3 ++
>  libswscale/swscaleres.rc       | 32 +++++++++++++++
>  tools/gen-rc                   | 88 ++++++++++++++++++++++++++++++++++++++++++
>  23 files changed, 422 insertions(+), 5 deletions(-)
>  create mode 100644 libavcodec/avcodecres.rc
>  create mode 100644 libavdevice/avdeviceres.rc
>  create mode 100644 libavfilter/avfilterres.rc
>  create mode 100644 libavformat/avformatres.rc
>  create mode 100644 libavresample/avresampleres.rc
>  create mode 100644 libavutil/avutilres.rc
>  create mode 100644 libpostproc/postprocres.rc
>  create mode 100644 libswresample/swresampleres.rc
>  create mode 100644 libswscale/swscaleres.rc
>  create mode 100755 tools/gen-rc


$ make libpostproc/postproc.dll
WINDRES libpostproc/postprocres.o
D:/MinGW/msys/1.0/ffmpeg/src/libpostproc/postprocres.rc:3:24: fatal error: ../version.h: No such file or directory
 #include "../version.h"
                        ^
compilation terminated.
D:\MinGW\msys\1.0\mingw64\bin\x86_64-w64-mingw32-windres.exe: preprocessing failed.
make: *** [libpostproc/postprocres.o] Error 1

This happens in out-of-tree builds.

> @@ -127,7 +132,7 @@ $(TOOLOBJS): | tools
>  OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOBJS) $(HOSTOBJS) $(TESTOBJS))
>  
>  CLEANSUFFIXES     = *.d *.o *~ *.h.c *.map *.ver *.ho *.gcno *.gcda
> -DISTCLEANSUFFIXES = *.pc
> +DISTCLEANSUFFIXES = *.pc *.rc

Not needed anymore.


Aside from that it seems to be ok.


More information about the ffmpeg-devel mailing list