summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gstreamer/build_win32.cmd62
-rw-r--r--tools/gstreamer/build_win64.cmd59
-rw-r--r--tools/gstreamer/miranda.patch12
3 files changed, 133 insertions, 0 deletions
diff --git a/tools/gstreamer/build_win32.cmd b/tools/gstreamer/build_win32.cmd
new file mode 100644
index 0000000000..edc1e5bc72
--- /dev/null
+++ b/tools/gstreamer/build_win32.cmd
@@ -0,0 +1,62 @@
+@echo off
+
+cd /d "%TEMP%"
+rd /s /q gstreamer
+mkdir gstreamer
+
+call %VS141COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvars32.bat 10.0.17763.0
+
+cd /d "%GSTREAMER_ROOT%"
+mkdir builddir
+meson setup --prefix="%TEMP%\gstreamer" builddir
+IF ERRORLEVEL 1 EXIT
+
+meson compile -C builddir
+IF ERRORLEVEL 1 EXIT
+
+cd builddir
+meson install
+cd ..
+rd /s /q builddir
+
+cd /d "%TEMP%\gstreamer\bin"
+copy ffi-7.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gio-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy glib-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gmodule-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gobject-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstapp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstaudio-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstbase-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstnet-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstpbutils-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstreamer-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstrtp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstsctp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstsdp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gsttag-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstvideo-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstwebrtc-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy gstwinrt-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy intl-8.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy nice-10.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy opus-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy orc-0.4-0.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy srtp2-1.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+copy z.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer
+
+cd /d "%TEMP%\gstreamer\lib\gstreamer-1.0"
+copy gstaudioconvert.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstaudioresample.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstaudiotestsrc.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstautodetect.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstcoreelements.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstdtls.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstnice.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstopus.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstplayback.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstrtp.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstrtpmanager.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstsrtp.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstwasapi.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
+copy gstwebrtc.dll %MIRANDA_BUILD_ROOT%\redist\x32\gstreamer\gst_plugins
diff --git a/tools/gstreamer/build_win64.cmd b/tools/gstreamer/build_win64.cmd
new file mode 100644
index 0000000000..824ccc1f20
--- /dev/null
+++ b/tools/gstreamer/build_win64.cmd
@@ -0,0 +1,59 @@
+@echo off
+
+cd /d "%TEMP%"
+rd /s /q gstreamer
+mkdir gstreamer
+
+call %VS141COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvars64.bat
+
+cd /d "%GSTREAMER_ROOT%"
+mkdir builddir
+meson setup --prefix="%TEMP%\gstreamer" builddir 10.0.17763.0
+meson compile -C builddir
+cd builddir
+meson install
+cd ..
+rd /s /q builddir
+
+cd /d "%TEMP%\gstreamer\bin"
+copy ffi-7.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gio-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy glib-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gmodule-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gobject-2.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstapp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstaudio-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstbase-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstnet-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstpbutils-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstreamer-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstrtp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstsctp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstsdp-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gsttag-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstvideo-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstwebrtc-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gstwinrt-1.0-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy gst_plugins %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy intl-8.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy nice-10.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy opus-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy orc-0.4-0.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy srtp2-1.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+copy z.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer
+
+cd /d "%TEMP%\gstreamer\lib\gstreamer-1.0"
+copy gstaudioconvert.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstaudioresample.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstaudiotestsrc.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstautodetect.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstcoreelements.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstdtls.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstnice.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstopus.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstplayback.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstrtp.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstrtpmanager.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstsrtp.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstwasapi.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
+copy gstwebrtc.dll %MIRANDA_BUILD_ROOT%\redist\x64\gstreamer\gst_plugins
diff --git a/tools/gstreamer/miranda.patch b/tools/gstreamer/miranda.patch
new file mode 100644
index 0000000000..7c1bab6a49
--- /dev/null
+++ b/tools/gstreamer/miranda.patch
@@ -0,0 +1,12 @@
+diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c
+index d93d742eeb..d1e2b55735 100644
+--- a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c
++++ b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c
+@@ -1680,6 +1680,7 @@ gst_webrtc_nice_constructed (GObject * object)
+
+ options |= NICE_AGENT_OPTION_ICE_TRICKLE;
+ options |= NICE_AGENT_OPTION_REGULAR_NOMINATION;
++ options |= NICE_AGENT_OPTION_SUPPORT_RENOMINATION;
+
+ /* https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/257 */
+ #if HAVE_LIBNICE_CONSENT_FIX