[vlc-commits] contrib: ebml: fix universal Windows build

Steve Lhomme git at videolan.org
Tue Jul 7 09:10:24 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue May 22 16:25:38 2018 +0200| [9915cdcbcf73ee3c6a11a5901461603594381630] | committer: Steve Lhomme

contrib: ebml: fix universal Windows build

(cherry picked from commit 98bdfe4b741707ab43ce8aed02ce08964c17d8b6) (rebased)

rebased:
- this branch didn't have other patches applied

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=9915cdcbcf73ee3c6a11a5901461603594381630
---

 contrib/src/ebml/ebml-fix-univeral-windows.patch | 11 +++++++++++
 contrib/src/ebml/rules.mak                       |  1 +
 2 files changed, 12 insertions(+)

diff --git a/contrib/src/ebml/ebml-fix-univeral-windows.patch b/contrib/src/ebml/ebml-fix-univeral-windows.patch
new file mode 100644
index 0000000000..287e894174
--- /dev/null
+++ b/contrib/src/ebml/ebml-fix-univeral-windows.patch
@@ -0,0 +1,11 @@
+--- ebml/CMakeLists.txt.uwp	2018-05-22 16:23:07.388136700 +0200
++++ ebml/CMakeLists.txt	2018-05-22 16:23:21.243621600 +0200
+@@ -60,7 +60,7 @@ set(libebml_PUBLIC_HEADERS
+   ebml/MemReadIOCallback.h
+   ebml/SafeReadIOCallback.h
+   ebml/StdIOCallback.h)
+-if(WIN32)
++if(WIN32 AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "WindowsStore")
+   list(APPEND libebml_SOURCES
+     src/platform/win32/WinIOCallback.cpp)
+   list(APPEND libebml_PUBLIC_HEADERS
diff --git a/contrib/src/ebml/rules.mak b/contrib/src/ebml/rules.mak
index 0d7fd770ae..99cc31a767 100644
--- a/contrib/src/ebml/rules.mak
+++ b/contrib/src/ebml/rules.mak
@@ -14,6 +14,7 @@ $(TARBALLS)/libebml-$(EBML_VERSION).tar.xz:
 
 ebml: libebml-$(EBML_VERSION).tar.xz .sum-ebml
 	$(UNPACK)
+	$(APPLY) $(SRC)/ebml/ebml-fix-univeral-windows.patch
 	$(MOVE)
 
 # libebml requires exceptions



More information about the vlc-commits mailing list