[vlc-devel] commit: win32/nsis: Don't try to install --disabled features ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Jul 2 10:35:39 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 2 10:33:18 2009 +0200| [599883e018cc397d0d016d3297396fad65281551] | committer: Jean-Baptiste Kempf
win32/nsis: Don't try to install --disabled features
This commit create conditional lines in the Windows
installer script to not try to install some features if
they have not been compiled.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=599883e018cc397d0d016d3297396fad65281551
---
extras/package/win32/vlc.win32.nsi.in | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/extras/package/win32/vlc.win32.nsi.in b/extras/package/win32/vlc.win32.nsi.in
index e949e34..c805ee0 100644
--- a/extras/package/win32/vlc.win32.nsi.in
+++ b/extras/package/win32/vlc.win32.nsi.in
@@ -20,6 +20,9 @@
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_DIR_REGKEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Language"
+ at BUILD_ACTIVEX_TRUE@ !define INSTALL_ACTIVEX
+ at BUILD_MOZILLA_TRUE@ !define INSTALL_MOZILLA
+
@FILE_LIBVLCCORE_DLL@
@FILE_LIBVLC_DLL@
@@ -417,10 +420,11 @@ Section $Name_Section01 SEC01
; Subfolders
!insertmacro InstallFolder plugins
!insertmacro InstallFolder locale
- !insertmacro InstallFolder osdmenu
- !insertmacro InstallFolder skins
- !insertmacro InstallFolder http
- !insertmacro InstallFolder lua
+ at BUILD_OSDMENU_TRUE@ !insertmacro InstallFolder osdmenu
+ at BUILD_SKINS_TRUE@ !insertmacro InstallFolder skins
+ at BUILD_HTTPD_TRUE@ !insertmacro InstallFolder http
+ at BUILD_LUA_TRUE@ !insertmacro InstallFolder lua
+
; URLs
WriteIniStr "$INSTDIR\${PRODUCT_GROUP} Website.url" "InternetShortcut" "URL" \
@@ -467,8 +471,8 @@ Section $Name_Section02a SEC02a
CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Audio\Set Audio mode to Waveout.lnk" \
"$INSTDIR\vlc.exe" "--aout waveout --save-config vlc://quit"
CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings\Interface"
- CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Interface\Set Main Interface to Skinnable.lnk" \
- "$INSTDIR\vlc.exe" "-I skins --save-config vlc://quit"
+ at BUILD_SKINS_TRUE@ CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Interface\Set Main Interface to Skinnable.lnk" \
+ at BUILD_SKINS_TRUE@ "$INSTDIR\vlc.exe" "-I skins --save-config vlc://quit"
CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Interface\Set Main Interface to Qt (default).lnk" \
"$INSTDIR\vlc.exe" "-I qt --save-config vlc://quit"
CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings\Video"
@@ -503,6 +507,7 @@ Section $Name_Section02b SEC02b
"$INSTDIR\vlc.exe" ""
SectionEnd
+!ifdef INSTALL_MOZILLA
Section /o $Name_Section03 SEC03
SectionIn 3
@@ -549,7 +554,9 @@ Section /o $Name_Section03 SEC03
;!undef Index
SectionEnd
+!endif
+!ifdef INSTALL_ACTIVEX
Section $Name_Section04 SEC04
SectionIn 3
SetOutPath "$INSTDIR"
@@ -559,6 +566,7 @@ Section $Name_Section04 SEC04
!insertmacro CloseUninstallLog
RegDLL "$INSTDIR\axvlc.dll"
SectionEnd
+!endif
Section $Name_Section05 SEC05
@@ -624,8 +632,8 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} $Desc_Section01
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02a} $Desc_Section02a
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02b} $Desc_Section02b
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $Desc_Section03
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} $Desc_Section04
+ at BUILD_MOZILLA_TRUE@ !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $Desc_Section03
+ at BUILD_ACTIVEX_TRUE@ !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} $Desc_Section04
!insertmacro MUI_DESCRIPTION_TEXT ${SEC05} $Desc_Section05
!insertmacro MUI_DESCRIPTION_TEXT ${SEC06} $Desc_Section06
!insertmacro MUI_DESCRIPTION_TEXT ${SEC07} $Desc_Section07
More information about the vlc-devel
mailing list