Ticket #5993: 5993_plugins.patch

File 5993_plugins.patch, 1.1 KB (added by Jeff Lu <jll544@…>, 11 years ago)

Fix .pro files to install plugins correctly on win32

  • targetdep.pro

     
    1111
    1212
    1313# On Windows, dlls were installed with exes:
    14 mingw : LIBDIR = $${PREFIX}/bin
     14mingw {
     15    MINGW_LIBDIR = $${LIBDIR}
     16    LIBDIR = $${PREFIX}/bin
     17}
    1518
    1619TARGETDEPS += $${LIBDIR}/libmyth-$${MYTH_SHLIB_EXT}
    1720TARGETDEPS += $${LIBDIR}/libmythdb-$${MYTH_SHLIB_EXT}
     
    2124TARGETDEPS += $${LIBDIR}/libmythavutil-$${MYTH_SHLIB_EXT}
    2225TARGETDEPS += $${LIBDIR}/libmythavcodec-$${MYTH_SHLIB_EXT}
    2326TARGETDEPS += $${LIBDIR}/libmythavformat-$${MYTH_SHLIB_EXT}
     27
     28# Restore LIBDIR so that plugins install to correct directory
     29mingw: LIBDIR = $${MINGW_LIBDIR}
  • mythvideo/mythvideo/mythvideo.pro

     
    4949mingw:DEFINES += USING_MINGW
    5050
    5151QT += sql xml network
     52
     53include ( ../../libs-targetfix.pro )