xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #94: x264_win32.patch

File x264_win32.patch, 1.0 KB (added by ahuillet, 9 years ago)

This patch enables x264 building under win32.

  • src/setup.py

     
    2828
    2929if sys.platform.startswith("win"):
    3030    def pkgconfig(*args):
    31         return {}
     31        return {'include_dirs': ["xpra/x264/win32", "C:/ffmpeg-git-4082198-win32-dev/include"],
     32                'library_dirs': ["xpra/x264/win32", "C:/ffmpeg-git-4082198-win32-dev/lib"],
     33                'libraries': ["x264lib", "swscale", "avcodec", "avutil"]}
    3234else:
    3335    # Tweaked from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502261
    3436    def pkgconfig(*packages, **ekw):
  • src/xpra/x264/x264lib.h

     
     1#ifdef _WIN32
     2#include "stdint.h"
     3#include "inttypes.h"
     4#endif
    15
    26/** Opaque structure - "context". You must have a context to encode images of a given size */
    37struct x264lib_ctx;