[FFmpeg-devel] [PATCH] Add Windows resource file support for shared libraries
Timothy Gu
timothygu99 at gmail.com
Tue Nov 26 23:36:47 CET 2013
On Mon, Nov 25, 2013 at 9:37 PM, James Almer <jamrial at gmail.com> wrote:
> 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.
I used #include "../version.h" because plain version.h clashes with
lib*/version.h, and lib*/version.h has priority. This can only be
fixed by including version.h in config.h (for which I will send a
patch soon) or by renaming version.h, which isn't a good solution.
Timothy
More information about the ffmpeg-devel
mailing list