mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
switch from static to dynamic linking of libplist in Windows build
This commit is contained in:
@@ -802,9 +802,8 @@ environment (this uses “<code>ninja</code>” in place of
|
||||
install UxPlay dependencies (openssl is already installed with
|
||||
MSYS2):</p>
|
||||
<p><code>pacman -S mingw-w64-x86_64-libplist mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base</code></p>
|
||||
<p>Note that libplist will be linked statically to the uxplay
|
||||
executable. If you are trying a different Windows build system, MSVC
|
||||
versions of GStreamer for Windows are available from the <a
|
||||
<p>If you are trying a different Windows build system, MSVC versions of
|
||||
GStreamer for Windows are available from the <a
|
||||
href="https://gstreamer.freedesktop.org/download/">official GStreamer
|
||||
site</a>, but only the MinGW 64-bit build on MSYS2 has been
|
||||
tested.</p></li>
|
||||
|
||||
@@ -642,7 +642,6 @@ After installing GStreamer, build and install uxplay: open a terminal and change
|
||||
|
||||
`pacman -S mingw-w64-x86_64-libplist mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base`
|
||||
|
||||
Note that libplist will be linked statically to the uxplay executable.
|
||||
If you are trying a different Windows build system, MSVC versions of GStreamer
|
||||
for Windows are available from the [official GStreamer site](https://gstreamer.freedesktop.org/download/),
|
||||
but only the MinGW 64-bit build on MSYS2 has been tested.
|
||||
|
||||
@@ -805,11 +805,10 @@ downloads, "UxPlay" for "git clone" downloads) and build/install with
|
||||
|
||||
`pacman -S mingw-w64-x86_64-libplist mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base`
|
||||
|
||||
Note that libplist will be linked statically to the uxplay
|
||||
executable. If you are trying a different Windows build system, MSVC
|
||||
versions of GStreamer for Windows are available from the [official
|
||||
GStreamer site](https://gstreamer.freedesktop.org/download/), but
|
||||
only the MinGW 64-bit build on MSYS2 has been tested.
|
||||
If you are trying a different Windows build system, MSVC versions of
|
||||
GStreamer for Windows are available from the [official GStreamer
|
||||
site](https://gstreamer.freedesktop.org/download/), but only the
|
||||
MinGW 64-bit build on MSYS2 has been tested.
|
||||
|
||||
5. cd to the UxPlay source directory, then "`mkdir build`" and
|
||||
"`cd build`". The build process assumes that the Bonjour SDK is
|
||||
|
||||
@@ -84,11 +84,14 @@ pkg_search_module(PLIST REQUIRED libplist-2.0)
|
||||
if ( PLIST_FOUND )
|
||||
message( STATUS "found libplist-${PLIST_VERSION}" )
|
||||
endif()
|
||||
if( APPLE OR WIN32 )
|
||||
if( APPLE )
|
||||
# use static linking
|
||||
find_library( LIBPLIST libplist-2.0.a REQUIRED )
|
||||
message( STATUS "(Static linking) LIBPLIST " ${LIBPLIST} )
|
||||
target_link_libraries ( airplay ${LIBPLIST} )
|
||||
elseif( WIN32)
|
||||
find_library( LIBPLIST ${PLIST_LIBRARIES} PATH ${PLIST_LIBDIR} )
|
||||
target_link_libraries ( airplay ${LIBPLIST} )
|
||||
else ()
|
||||
find_library( LIBPLIST ${PLIST_LIBRARIES} PATH ${PLIST_LIBDIR} )
|
||||
target_link_libraries ( airplay PUBLIC ${LIBPLIST} )
|
||||
|
||||
Reference in New Issue
Block a user