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 cd
$(prefix)/lib
&& cp
-rv libvlc.dll.a
"$(win32_destdir)/sdk/lib/libvlc.lib"
34 cd
$(prefix)/lib
&& cp
-rv 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 mkdir
-p
"$(win32_destdir)"/plugins
54 (cd
$(prefix)/lib
/vlc
/plugins
/ && find .
-type f \
( -not
-name
'*.la' -and
-not
-name
'*.a' \
) -exec cp
-v
--parents
"{}" "$(win32_destdir)/plugins/" \
;)
55 -cp
-r
$(prefix)/share
/locale
$(win32_destdir
)
58 -cp
$(CONTRIB_DIR
)/share
/java
/*.jar
$(win32_destdir
)/plugins
/access
/
61 mkdir
-p
$(win32_destdir
)/lua
/
62 cp
-r
$(pkglibexecdir
)/lua
/* $(win32_destdir
)/lua
/
63 cp
-r
$(prefix)/share
/vlc
/lua
/* $(win32_destdir
)/lua
/
67 rm -fr
$(win32_destdir
)/skins
68 cp
-r
$(prefix)/share
/vlc
/skins2
$(win32_destdir
)/skins
72 cp
-r
$(srcdir)/share
/hrtfs
$(win32_destdir
)/
74 # Convert to DOS line endings
75 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
{} \
;
77 package-win-npapi
: build-npapi
78 cp
"$(top_builddir)/npapi-vlc/installed/lib/axvlc.dll" "$(win32_destdir)/"
79 cp
"$(top_builddir)/npapi-vlc/installed/lib/npvlc.dll" "$(win32_destdir)/"
80 mkdir
-p
"$(win32_destdir)/sdk/activex/"
81 cd
$(top_builddir
)/npapi-vlc
&& cp activex
/README.TXT share
/test/test.html
$(win32_destdir
)/sdk
/activex
/
83 package-win-strip
: package-win-common package-win-npapi
84 mkdir
-p
"$(win32_debugdir)"/
85 cd
$(win32_destdir
); find .
-type f \
( -name
'*$(LIBEXT)' -or
-name
'*$(EXEEXT)' \
) | while read i
; \
86 do if
test -n
"$$i" ; then \
87 $(OBJCOPY
) --only-keep-debug
"$$i" "$(win32_debugdir)/`basename $$i.dbg`"; \
88 $(OBJCOPY
) --strip-all
"$$i" ; \
89 $(OBJCOPY
) --add-gnu-debuglink
="$(win32_debugdir)/`basename $$i.dbg`" "$$i" ; \
93 package-win32-webplugin-common
: package-win-strip
94 mkdir
-p
"$(win32_xpi_destdir)/plugins/"
95 cp
-r
$(win32_destdir
)/plugins
/ "$(win32_xpi_destdir)/plugins/"
96 cp
"$(win32_destdir)/libvlc.dll" "$(win32_destdir)/libvlccore.dll" "$(win32_destdir)/npvlc.dll" "$(win32_xpi_destdir)/plugins/"
97 rm -rf
"$(win32_xpi_destdir)/plugins/plugins/gui/"
100 package-win32-xpi
: package-win32-webplugin-common
101 cp
$(top_builddir
)/npapi-vlc
/npapi
/package
/install.rdf
"$(win32_xpi_destdir)/"
102 cd
$(win32_xpi_destdir
) && zip
-r
-9 "../$(WINVERSION).xpi" install.rdf plugins
105 package-win32-crx
: package-win32-webplugin-common
106 cp
$(top_builddir
)/npapi-vlc
/npapi
/package
/manifest.json
"$(win32_xpi_destdir)/"
107 crxmake
--pack-extension
"$(win32_xpi_destdir)" \
108 --extension-output
"$(win32_destdir)/$(WINVERSION).crx" --ignore-file
install.rdf
111 $(win32_destdir
)/NSIS
/nsProcess.dll
: extras
/package
/win32
/NSIS
/nsProcess
/nsProcess.c extras
/package
/win32
/NSIS
/nsProcess
/pluginapi.c
112 mkdir
-p
"$(win32_destdir)/NSIS/"
114 i686-w64-mingw32-gcc
$^
-shared
-o
$@
-lole32
-static-libgcc
-D_UNICODE
=1 -DUNICODE
=1
115 i686-w64-mingw32-strip
$@
117 $(CC
) $^
-D_WIN32_IE
=0x0601 -shared
-o
$@
-lole32
-static-libgcc
-D_UNICODE
=1 -DUNICODE
=1
122 package-win32-exe
: package-win-strip
$(win32_destdir
)/NSIS
/nsProcess.dll extras
/package
/win32
/NSIS
/vlc.win32.nsi
124 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/vlc.win32.nsi
"$(win32_destdir)/"
125 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/spad.nsi
"$(win32_destdir)/"
126 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/languages
"$(win32_destdir)/"
127 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/helpers
"$(win32_destdir)/"
128 cp
"$(top_srcdir)/extras/package/win32/NSIS/nsProcess.nsh" "$(win32_destdir)/NSIS/"
129 cp
"$(top_srcdir)/extras/package/win32/NSIS/vlc_branding.bmp" "$(win32_destdir)/NSIS/"
132 if makensis
-VERSION
>/dev
/null
2>&1; then \
133 MAKENSIS
="makensis"; \
134 elif
[ -x
"$(PROGRAMFILES)/NSIS/makensis" ]; then \
135 MAKENSIS
="$(PROGRAMFILES)/NSIS/makensis"; \
137 echo
'Error: cannot locate makensis tool'; exit
1; \
139 MAKENSIS_VERSION
=`makensis -VERSION`; echo
$${MAKENSIS_VERSION
:1:1}; \
140 if
[ $${MAKENSIS_VERSION
:1:1} -lt
3 ]; then \
141 echo
'Please update your nsis packager';\
144 eval
"$$MAKENSIS $(win32_destdir)/spad.nsi"; \
145 eval
"$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
147 package-win32-zip
: package-win-strip
148 rm -f
-- $(WINVERSION
).zip
149 zip
-r
-9 $(WINVERSION
).zip vlc-
$(VERSION
) --exclude \
*.nsi \
*NSIS\
* \
*languages\
* \
*sdk\
* \
*helpers\
* spad\
*
151 package-win32-debug-zip
: package-win-common
152 rm -f
-- $(WINVERSION
)-debug.zip
153 zip
-r
-9 $(WINVERSION
)-debug.zip vlc-
$(VERSION
)
155 package-win32-7zip
: package-win-strip
156 7z a
$(7Z_OPTS
) $(WINVERSION
).7z vlc-
$(VERSION
)
158 package-win32-debug-7zip
: package-win-common
159 7z a
$(7Z_OPTS
) $(WINVERSION
)-debug
.7z vlc-
$(VERSION
)
161 package-win32-cleanup
:
162 rm -Rf
$(win32_destdir
) $(win32_debugdir
) $(win32_xpi_destdir
)
164 package-win32
: package-win32-zip package-win32-7zip package-win32-exe package-win32-xpi
166 package-win32-debug
: package-win32-debug-zip package-win32-debug-7zip
168 package-win32-release
: package-win-strip
$(win32_destdir
)/NSIS
/nsProcess.dll package-win-sdk
169 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/vlc.win32.nsi
"$(win32_destdir)/"
170 cp
$(top_builddir
)/extras
/package
/win32
/NSIS
/spad.nsi
"$(win32_destdir)/"
171 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/languages
"$(win32_destdir)/"
172 cp
-r
$(srcdir)/extras
/package
/win32
/NSIS
/helpers
"$(win32_destdir)/"
173 cp
"$(top_srcdir)/extras/package/win32/NSIS/nsProcess.nsh" "$(win32_destdir)/NSIS/"
174 cp
"$(top_srcdir)/extras/package/win32/NSIS/vlc_branding.bmp" "$(win32_destdir)/NSIS/"
176 7z a
$(7Z_OPTS
) $(WINVERSION
)-release
.7z
$(win32_debugdir
) "$(win32_destdir)/"
181 package-wince
: package-win-strip
182 rm -f
-- vlc-
$(VERSION
)-wince.zip
183 zip
-r
-9 vlc-
$(VERSION
)-wince.zip vlc-
$(VERSION
)
185 .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
188 extras
/package
/win32
/vlc.exe.manifest \
189 extras
/package
/win32
/libvlc.dll.manifest \
190 extras
/package
/win32
/configure.sh \
191 extras
/package
/win32
/NSIS
/vlc.win32.nsi.in \
192 extras
/package
/win32
/NSIS
/spad.nsi.in \
193 extras
/package
/win32
/NSIS
/vlc_branding.bmp \
194 extras
/package
/win32
/NSIS
/languages
/BengaliExtra.nsh \
195 extras
/package
/win32
/NSIS
/languages
/BasqueExtra.nsh \
196 extras
/package
/win32
/NSIS
/languages
/PortugueseBRExtra.nsh \
197 extras
/package
/win32
/NSIS
/languages
/BulgarianExtra.nsh \
198 extras
/package
/win32
/NSIS
/languages
/CatalanExtra.nsh \
199 extras
/package
/win32
/NSIS
/languages
/DanishExtra.nsh \
200 extras
/package
/win32
/NSIS
/languages
/DutchExtra.nsh \
201 extras
/package
/win32
/NSIS
/languages
/EnglishExtra.nsh \
202 extras
/package
/win32
/NSIS
/languages
/EstonianExtra.nsh \
203 extras
/package
/win32
/NSIS
/languages
/FinnishExtra.nsh \
204 extras
/package
/win32
/NSIS
/languages
/FrenchExtra.nsh \
205 extras
/package
/win32
/NSIS
/languages
/GalicianExtra.nsh \
206 extras
/package
/win32
/NSIS
/languages
/GermanExtra.nsh \
207 extras
/package
/win32
/NSIS
/languages
/HebrewExtra.nsh \
208 extras
/package
/win32
/NSIS
/languages
/HungarianExtra.nsh \
209 extras
/package
/win32
/NSIS
/languages
/ItalianExtra.nsh \
210 extras
/package
/win32
/NSIS
/languages
/JapaneseExtra.nsh \
211 extras
/package
/win32
/NSIS
/languages
/LithuanianExtra.nsh \
212 extras
/package
/win32
/NSIS
/languages
/OccitanExtra.nsh \
213 extras
/package
/win32
/NSIS
/languages
/PolishExtra.nsh \
214 extras
/package
/win32
/NSIS
/languages
/PunjabiExtra.nsh \
215 extras
/package
/win32
/NSIS
/languages
/RussianExtra.nsh \
216 extras
/package
/win32
/NSIS
/languages
/RomanianExtra.nsh \
217 extras
/package
/win32
/NSIS
/languages
/SimpChineseExtra.nsh \
218 extras
/package
/win32
/NSIS
/languages
/SlovakExtra.nsh \
219 extras
/package
/win32
/NSIS
/languages
/SlovenianExtra.nsh \
220 extras
/package
/win32
/NSIS
/languages
/SoraniExtra.nsh \
221 extras
/package
/win32
/NSIS
/languages
/SpanishExtra.nsh \
222 extras
/package
/win32
/NSIS
/languages
/SwedishExtra.nsh \
223 extras
/package
/win32
/NSIS
/languages
/AfrikaansExtra.nsh \
224 extras
/package
/win32
/NSIS
/languages
/AlbanianExtra.nsh \
225 extras
/package
/win32
/NSIS
/languages
/CroatianExtra.nsh \
226 extras
/package
/win32
/NSIS
/languages
/IcelandicExtra.nsh \
227 extras
/package
/win32
/NSIS
/languages
/LatvianExtra.nsh \
228 extras
/package
/win32
/NSIS
/languages
/IndonesianExtra.nsh