demux: avi: replace off_t (fix #19249)
[vlc.git] / extras / package / win32 / msi.mak
blob03845b02ffaf765e7b86c77bf8a6f02b572e8847
1 if HAVE_WIN32
2 BUILT_SOURCES_distclean += \
3 extras/package/win32/msi/config.wxi
4 endif
6 WIXPATH=`wine winepath -u 'C:\\Program Files (x86)\\Windows Installer XML v3.5\\bin'`
7 HEAT=wine "$(WIXPATH)/heat.exe"
8 CANDLE=wine "$(WIXPATH)/candle.exe"
9 LIGHT=wine "$(WIXPATH)/light.exe"
10 VLCDIR=`wine winepath -s \`wine winepath -w '$(win32_destdir)'\``
11 MSIDIR=$(abs_srcdir)/extras/package/win32/msi
12 W_MSIDIR=`wine winepath -w '$(MSIDIR)'`
13 MSIBUILDDIR=$(abs_top_builddir)/extras/package/win32/msi
14 W_MSIBUILDDIR=`wine winepath -w '$(MSIBUILDDIR)'`
15 MSIOUTFILE=vlc-$(VERSION).msi
16 WINE_C=`wine winepath c:`
18 package-msi: heat candle light
20 heat: package-win-strip
21 $(HEAT) dir $(VLCDIR)/plugins -cg CompPluginsGroup -gg -scom -sreg -sfrag -dr APPLICATIONFOLDER -out $(W_MSIBUILDDIR)/Plugins.fragment.wxs
22 $(HEAT) dir $(VLCDIR)/locale -cg CompLocaleGroup -gg -scom -sreg -sfrag -dr APPLICATIONFOLDER -out $(W_MSIBUILDDIR)/Locale.fragment.wxs
23 $(HEAT) dir $(VLCDIR)/lua -cg CompLuaGroup -gg -scom -sreg -sfrag -dr APPLICATIONFOLDER -out $(W_MSIBUILDDIR)/Lua.fragment.wxs
24 $(HEAT) dir $(VLCDIR)/skins -cg CompSkinsGroup -gg -scom -sreg -sfrag -dr APPLICATIONFOLDER -out $(W_MSIBUILDDIR)/Skins.fragment.wxs
26 candle:
27 $(am__cd) $(MSIBUILDDIR) && $(CANDLE) -arch $(WINDOWS_ARCH) -ext WiXUtilExtension $(W_MSIDIR)\\product.wxs $(W_MSIDIR)\\axvlc.wxs $(W_MSIDIR)\\extensions.wxs $(W_MSIBUILDDIR)\\*.fragment.wxs
29 light:
30 test ! -d "$(WINE_C)/v" -o ! -f "$(WINE_C)/v"
31 ln -Tsf "$(win32_destdir)" "$(WINE_C)"/v
32 $(LIGHT) -sval -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -b $(W_MSIDIR) -b C:/v/plugins -b C:/v/locale -b C:/v/lua -b C:/v/skins $(W_MSIBUILDDIR)\\product.wixobj $(W_MSIBUILDDIR)\\axvlc.wixobj $(W_MSIBUILDDIR)\\extensions.wixobj $(W_MSIBUILDDIR)\\*.fragment.wixobj -o $(MSIOUTFILE)
33 chmod 644 $(MSIOUTFILE)
35 cleanmsi:
36 -rm -f $(MSIBUILDDIR)/*.wixobj
37 -rm -f $(MSIBUILDDIR)/*.wixpdb
38 -rm -f $(MSIBUILDDIR)/*.fragment.wxs
40 distcleanmsi: cleanmsi
41 -rm -f $(MSIOUTFILE)
43 .PHONY: heat candle light cleanmsi distcleanmsi package-msi