[vlc-commits] contrib:sqlite: fix building for Windows Store

Steve Lhomme git at videolan.org
Tue Mar 5 13:03:50 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Mar  4 13:23:38 2019 +0100| [c9849ff59462f6380f798eb8558beb461dda2995] | committer: Steve Lhomme

contrib:sqlite: fix building for Windows Store

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

 contrib/src/sqlite/rules.mak | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/contrib/src/sqlite/rules.mak b/contrib/src/sqlite/rules.mak
index 295ba64a58..7f22105ddf 100644
--- a/contrib/src/sqlite/rules.mak
+++ b/contrib/src/sqlite/rules.mak
@@ -9,6 +9,11 @@ ifeq ($(call need_pkg,"sqlite3"),)
 PKGS_FOUND += sqlite
 endif
 
+SQLITE_CFLAGS := $(CFLAGS)
+ifdef HAVE_WINSTORE
+SQLITE_CFLAGS += -DSQLITE_OS_WINRT=1
+endif
+
 SQLITE_CONF = $(HOSTCONF) --disable-readline
 
 $(TARBALLS)/sqlite-autoconf-$(SQLITE_VERSION).tar.gz:
@@ -22,6 +27,6 @@ sqlite: sqlite-autoconf-$(SQLITE_VERSION).tar.gz .sum-sqlite
 	$(MOVE)
 
 .sqlite: sqlite
-	cd $< && $(HOSTVARS) ./configure $(SQLITE_CONF)
+	cd $< && $(HOSTVARS) CFLAGS="$(SQLITE_CFLAGS)" ./configure $(SQLITE_CONF)
 	cd $< && $(MAKE) && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list