Skip to content
Snippets Groups Projects
Commit 7ef64712 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

contrib: mfx: fix building for WinStore

parent dc499445
No related branches found
No related tags found
No related merge requests found
# mfx (Media SDK)
mfx_GITURL := https://github.com/lu-zero/mfx_dispatch.git
MFX_GITHASH := b3b0bc9524a8a936fb1b80ca2db45566feb2e868
MFX_GITHASH := 612558419be4889ac6d059516457e83c163edcd2
ifeq ($(call need_pkg,"mfx"),)
PKGS_FOUND += mfx
......@@ -10,6 +10,14 @@ ifdef HAVE_WIN32
PKGS += mfx
endif
MFX_CFLAGS := $(CFLAGS)
MFX_CXXFLAGS := $(CFLAGS)
ifdef HAVE_WINSTORE
MFX_CFLAGS += -DMEDIASDK_UWP_LOADER -DMEDIASDK_UWP_PROCTABLE
MFX_CXXFLAGS += -DMEDIASDK_UWP_LOADER -DMEDIASDK_UWP_PROCTABLE
endif
$(TARBALLS)/mfx-$(MFX_GITHASH).tar.xz:
$(call download_git,$(mfx_GITURL),,$(MFX_GITHASH))
......@@ -23,6 +31,6 @@ mfx: mfx-$(MFX_GITHASH).tar.xz .sum-mfx
$(MOVE)
.mfx: mfx
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="$(MFX_CFLAGS)" CXXFLAGS="$(MFX_CXXFLAGS)" ./configure $(HOSTCONF)
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment