2 BUILT_SOURCES_distclean
+= \
3 extras
/package
/win32
/NSIS
/vlc.win32.nsi extras
/package
/win32
/NSIS
/spad.nsi
6 win32_destdir
=$(top_builddir
)/vlc-
$(VERSION
)
7 win32_debugdir
=$(abs_top_builddir
)/symbols-
$(VERSION
)
8 win32_xpi_destdir
=$(abs_top_builddir
)/vlc-plugin-
$(VERSION
)
10 7Z_OPTS
=-t7z
-m0
=lzma
-mx
=9 -mfb
=64 -md
=32m
-ms
=on
14 include extras
/package
/npapi.am
16 build-npapi
: package-win-install
20 WINVERSION
=vlc-
$(VERSION
)-win64
22 WINVERSION
=vlc-
$(VERSION
)-win32
30 mkdir
-p
"$(win32_destdir)/sdk/lib/"
31 cp
-r
$(prefix)/include "$(win32_destdir)/sdk"
32 cp
-r
$(prefix)/lib
/pkgconfig
"$(win32_destdir)/sdk/lib"
33 cp
-rv
$(prefix)/lib
/libvlc.dll.a
"$(win32_destdir)/sdk/lib/libvlc.lib"
34 cp
-rv
$(prefix)/lib
/libvlccore.dll.a
"$(win32_destdir)/sdk/lib/libvlccore.lib"
35 $(DLLTOOL
) -D libvlc.dll
-l
"$(win32_destdir)/sdk/lib/libvlc.lib" -d
"$(top_builddir)/lib/.libs/libvlc.dll.def"
36 echo
"INPUT(libvlc.lib)" > "$(win32_destdir)/sdk/lib/vlc.lib"
37 $(DLLTOOL
) -D libvlccore.dll
-l
"$(win32_destdir)/sdk/lib/libvlccore.lib" -d
"$(top_builddir)/src/.libs/libvlccore.dll.def"
38 echo
"INPUT(libvlccore.lib)" > "$(win32_destdir)/sdk/lib/vlccore.lib"
40 package-win-common
: package-win-install package-win-sdk
41 # Executables, major libs
42 find
$(prefix) -maxdepth
4 \
( -name
"*$(LIBEXT)" -o
-name
"*$(EXEEXT)" \
) -exec cp
{} "$(win32_destdir)/" \
;
44 # Text files, clean them from mail addresses
45 for file in AUTHORS THANKS
; \
46 do sed
's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt"; \
48 for file in NEWS COPYING README
; \
49 do cp
"$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; \
52 cp
$(srcdir)/share
/icons
/vlc.ico
$(win32_destdir
)
53 for plugindir in
$(prefix)/lib
/vlc
/plugins
/*/; do \
54 plugin_destdir
="$(win32_destdir)/plugins/`basename $$plugindir`"; \
55 mkdir
-p
"$$plugin_destdir"; \
56 find
"$$plugindir" -type f \
( -not
-name
'*.la' -and
-not
-name
'*.a' \
) -exec cp
-v
"{}" "$$plugin_destdir" \
; ;\
58 -cp
-r
$(prefix)/share
/locale
$(win32_destdir
)
61 -cp
$(CONTRIB_DIR
)/share
/java
/*.jar
$(win32_destdir
)/plugins
/access
/
64 mkdir
-p
$(win32_destdir
)/lua
/
65 cp
-r
$(pkglibexecdir
)/lua
/* $(win32_destdir
)/lua
/
66 cp
-r
$(prefix)/share
/vlc
/lua
/* $(win32_destdir
)/lua
/
70 rm -fr
$(win32_destdir
)/skins
71 cp
-r
$(prefix)/share
/vlc
/skins2
$(win32_destdir
)/skins
75 cp
-r
$(srcdir)/share
/hrtfs
$(win32_destdir
)/
77 # Convert to DOS line endings
78 find
$(win32_destdir
) -type f \
( -name
"*xml" -or
-name
"*html" -or
-name
'*js' -or
-name
'*css' -or
-name
'*hosts' -or
-iname
'*txt' -or
-name
'*.cfg' -or
-name
'*.lua' \
) -exec
$(U2D
) -q
{} \
;
80 package-win-npapi
: build-npapi
81 cp
"$(top_builddir)/npapi-vlc/installed/lib/axvlc.dll" "$(win32_destdir)/"
82 cp
"$(top_builddir)/npapi-vlc/installed/lib/npvlc.dll" "$(win32_destdir)/"
83 mkdir
-p
"$(win32_destdir)/sdk/activex/"
84 cp
$(top_builddir
)/npapi-vlc
/activex
/README.TXT
$(top_builddir
)/npapi-vlc
/share
/test/test.html
$(win32_destdir
)/sdk
/activex
/
86 package-win-strip
: package-win-common package-win-npapi
87 mkdir
-p
"$(win32_debugdir)"/
88 find
$(win32_destdir
) -type f \
( -name
'*$(LIBEXT)' -or
-name
'*$(EXEEXT)' \
) | while read i
; \
89 do if
test -n
"$$i" ; then \
90 $(OBJCOPY
) --only-keep-debug
"$$i" "$(win32_debugdir)/`basename $$i.dbg`"; \
91 $(OBJCOPY
) --strip-all
"$$i" ; \
92 $(OBJCOPY
) --add-gnu-debuglink
="$(win32_debugdir)/`basename $$i.dbg`" "$$i" ; \
96 package-win32-webplugin-common
: package-win-strip
97 mkdir
-p
"$(win32_xpi_destdir)/plugins/"
98 cp
-r
$(win32_destdir
)/plugins
/ "$(win32_xpi_destdir)/plugins/"
99 cp
"$(win32_destdir)/libvlc.dll" "$(win32_destdir)/libvlccore.dll" "$(win32_destdir)/npvlc.dll" "$(win32_xpi_destdir)/plugins/"
100 rm -rf
"$(win32_xpi_destdir)/plugins/plugins/gui/"
103 package-win32-xpi
: package-win32-webplugin-common
104 cp
$(top_builddir
)/npapi-vlc
/npapi
/package
/install.rdf
"$(win32_xpi_destdir)/"
105 zip
-r
-9 $(WINVERSION
).xpi
$(win32_xpi_destdir
)/install.rdf
$(win32_xpi_destdir
)/plugins
108 package-win32-crx
: package-win32-webplugin-common
109 cp
$(top_builddir
)/npapi-vlc
/npapi
/package
/manifest.json
"$(win32_xpi_destdir)/"
110 crxmake
--pack-extension
"$(win32_xpi_destdir)" \
111 --extension-output
"$(win32_destdir)/$(WINVERSION).crx" --ignore-file
install.rdf
114 $(win32_destdir
)/NSIS
/nsProcess.dll
: extras
/package
/win32
/NSIS
/nsProcess
/nsProcess.c extras
/package
/win32
/NSIS
/nsProcess
/pluginapi.c
115 mkdir
-p
"$(win32_destdir)/NSIS/"
117 i686-w64-mingw32-gcc
$^
-shared
-o
$@
-lole32
-static-libgcc
-D_UNICODE
=1 -DUNICODE
=1
118 i686-w64-mingw32-strip
$@
120 $(CC
) $^
-D_WIN32_IE
=0x0601 -shared
-o
$@
-lole32
-static-libgcc
-D_UNICODE
=1 -DUNICODE
=1
125 package-win32-exe
: package-win-strip
$(win32_destdir
)/NSIS
/nsProcess.dll extras
/package
/win32
/NSIS
/vlc.win32.nsi
127 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/vlc.win32.nsi
"$(win32_destdir)/"
128 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/spad.nsi
"$(win32_destdir)/"
129 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/languages
"$(win32_destdir)/"
130 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/helpers
"$(win32_destdir)/"
131 cp
"$(top_srcdir)/extras/package/win32/NSIS/nsProcess.nsh" "$(win32_destdir)/NSIS/"
132 cp
"$(top_srcdir)/extras/package/win32/NSIS/vlc_branding.bmp" "$(win32_destdir)/NSIS/"
135 if makensis
-VERSION
>/dev
/null
2>&1; then \
136 MAKENSIS
="makensis"; \
137 elif
[ -x
"$(PROGRAMFILES)/NSIS/makensis" ]; then \
138 MAKENSIS
="$(PROGRAMFILES)/NSIS/makensis"; \
140 echo
'Error: cannot locate makensis tool'; exit
1; \
142 MAKENSIS_VERSION
=`makensis -VERSION`; echo
$${MAKENSIS_VERSION
:1:1}; \
143 if
[ $${MAKENSIS_VERSION
:1:1} -lt
3 ]; then \
144 echo
'Please update your nsis packager';\
147 eval
"$$MAKENSIS $(win32_destdir)/spad.nsi"; \
148 eval
"$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
150 package-win32-zip
: package-win-strip
151 rm -f
-- $(WINVERSION
).zip
152 zip
-r
-9 $(WINVERSION
).zip vlc-
$(VERSION
) --exclude \
*.nsi \
*NSIS\
* \
*languages\
* \
*sdk\
* \
*helpers\
* spad\
*
154 package-win32-debug-zip
: package-win-common
155 rm -f
-- $(WINVERSION
)-debug.zip
156 zip
-r
-9 $(WINVERSION
)-debug.zip vlc-
$(VERSION
)
158 package-win32-7zip
: package-win-strip
159 7z a
$(7Z_OPTS
) $(WINVERSION
).7z vlc-
$(VERSION
)
161 package-win32-debug-7zip
: package-win-common
162 7z a
$(7Z_OPTS
) $(WINVERSION
)-debug
.7z vlc-
$(VERSION
)
164 package-win32-cleanup
:
165 rm -Rf
$(win32_destdir
) $(win32_debugdir
) $(win32_xpi_destdir
)
167 package-win32
: package-win32-zip package-win32-7zip package-win32-exe package-win32-xpi
169 package-win32-debug
: package-win32-debug-zip package-win32-debug-7zip
171 package-win32-release
: package-win-strip
$(win32_destdir
)/NSIS
/nsProcess.dll package-win-sdk
172 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/vlc.win32.nsi
"$(win32_destdir)/"
173 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/spad.nsi
"$(win32_destdir)/"
174 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/languages
"$(win32_destdir)/"
175 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/helpers
"$(win32_destdir)/"
176 cp
"$(top_srcdir)/extras/package/win32/NSIS/nsProcess.nsh" "$(win32_destdir)/NSIS/"
177 cp
"$(top_srcdir)/extras/package/win32/NSIS/vlc_branding.bmp" "$(win32_destdir)/NSIS/"
179 mkdir
-p
"$(win32_destdir)/msi/"
180 cp
$(top_builddir
)/extras
/package
/win32
/msi
/config.wxi
"$(win32_destdir)/msi/"
181 cp
$(top_srcdir
)/extras
/package
/win32
/msi
/axvlc.wxs
"$(win32_destdir)/msi/"
182 cp
$(top_srcdir
)/extras
/package
/win32
/msi
/bannrbmp.bmp
"$(win32_destdir)/msi/"
183 cp
$(top_srcdir
)/extras
/package
/win32
/msi
/extensions.wxs
"$(win32_destdir)/msi/"
184 cp
$(top_srcdir
)/extras
/package
/win32
/msi
/LICENSE.rtf
"$(win32_destdir)/msi/"
185 cp
$(top_srcdir
)/extras
/package
/win32
/msi
/product.wxs
"$(win32_destdir)/msi/"
187 7z a
$(7Z_OPTS
) $(WINVERSION
)-release
.7z
$(win32_debugdir
) "$(win32_destdir)/"
192 package-wince
: package-win-strip
193 rm -f
-- vlc-
$(VERSION
)-wince.zip
194 zip
-r
-9 vlc-
$(VERSION
)-wince.zip vlc-
$(VERSION
)
196 .PHONY
: package-win-install package-win-common package-win-strip package-win32-webplugin-common package-win32-xpi package-win32-crx package-win32-exe package-win32-zip package-win32-debug-zip package-win32-7zip package-win32-debug-7zip package-win32-cleanup package-win32 package-win32-debug package-wince
199 extras
/package
/win32
/vlc.exe.manifest \
200 extras
/package
/win32
/libvlc.dll.manifest \
201 extras
/package
/win32
/configure.sh \
202 extras
/package
/win32
/NSIS
/vlc.win32.nsi.in \
203 extras
/package
/win32
/NSIS
/spad.nsi.in \
204 extras
/package
/win32
/NSIS
/vlc_branding.bmp \
205 extras
/package
/win32
/NSIS
/languages
/BengaliExtra.nsh \
206 extras
/package
/win32
/NSIS
/languages
/BasqueExtra.nsh \
207 extras
/package
/win32
/NSIS
/languages
/PortugueseBRExtra.nsh \
208 extras
/package
/win32
/NSIS
/languages
/BulgarianExtra.nsh \
209 extras
/package
/win32
/NSIS
/languages
/CatalanExtra.nsh \
210 extras
/package
/win32
/NSIS
/languages
/DanishExtra.nsh \
211 extras
/package
/win32
/NSIS
/languages
/DutchExtra.nsh \
212 extras
/package
/win32
/NSIS
/languages
/EnglishExtra.nsh \
213 extras
/package
/win32
/NSIS
/languages
/EstonianExtra.nsh \
214 extras
/package
/win32
/NSIS
/languages
/FinnishExtra.nsh \
215 extras
/package
/win32
/NSIS
/languages
/FrenchExtra.nsh \
216 extras
/package
/win32
/NSIS
/languages
/GalicianExtra.nsh \
217 extras
/package
/win32
/NSIS
/languages
/GermanExtra.nsh \
218 extras
/package
/win32
/NSIS
/languages
/HebrewExtra.nsh \
219 extras
/package
/win32
/NSIS
/languages
/HungarianExtra.nsh \
220 extras
/package
/win32
/NSIS
/languages
/ItalianExtra.nsh \
221 extras
/package
/win32
/NSIS
/languages
/JapaneseExtra.nsh \
222 extras
/package
/win32
/NSIS
/languages
/LithuanianExtra.nsh \
223 extras
/package
/win32
/NSIS
/languages
/OccitanExtra.nsh \
224 extras
/package
/win32
/NSIS
/languages
/PolishExtra.nsh \
225 extras
/package
/win32
/NSIS
/languages
/PunjabiExtra.nsh \
226 extras
/package
/win32
/NSIS
/languages
/RussianExtra.nsh \
227 extras
/package
/win32
/NSIS
/languages
/RomanianExtra.nsh \
228 extras
/package
/win32
/NSIS
/languages
/SimpChineseExtra.nsh \
229 extras
/package
/win32
/NSIS
/languages
/SlovakExtra.nsh \
230 extras
/package
/win32
/NSIS
/languages
/SlovenianExtra.nsh \
231 extras
/package
/win32
/NSIS
/languages
/SoraniExtra.nsh \
232 extras
/package
/win32
/NSIS
/languages
/SpanishExtra.nsh \
233 extras
/package
/win32
/NSIS
/languages
/SwedishExtra.nsh \
234 extras
/package
/win32
/NSIS
/languages
/AfrikaansExtra.nsh \
235 extras
/package
/win32
/NSIS
/languages
/AlbanianExtra.nsh \
236 extras
/package
/win32
/NSIS
/languages
/CroatianExtra.nsh \
237 extras
/package
/win32
/NSIS
/languages
/IcelandicExtra.nsh \
238 extras
/package
/win32
/NSIS
/languages
/LatvianExtra.nsh \
239 extras
/package
/win32
/NSIS
/languages
/IndonesianExtra.nsh