aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2015-03-06 22:03:23 +0100
committermontellese <montellese@xbmc.org>2015-03-14 09:13:13 +0100
commit14b4d2f90ab271a8a8f542be55333e7e28695c45 (patch)
treefe6b2ef9855da7255f01e9b5f1cd88a4663c5afd /project
parent927e5af632fc9ad75fb6039d28e00407d8104a75 (diff)
[win32] integrate audiodecoders into the installer
Diffstat (limited to 'project')
-rw-r--r--project/Win32BuildSetup/genNsisIncludes.bat16
-rw-r--r--project/Win32BuildSetup/genNsisInstaller.nsi1
2 files changed, 17 insertions, 0 deletions
diff --git a/project/Win32BuildSetup/genNsisIncludes.bat b/project/Win32BuildSetup/genNsisIncludes.bat
index 61b5bc935c..a238f38441 100644
--- a/project/Win32BuildSetup/genNsisIncludes.bat
+++ b/project/Win32BuildSetup/genNsisIncludes.bat
@@ -29,6 +29,22 @@ IF EXIST BUILD_WIN32\addons\pvr.* (
)
SET Counter=1
+IF EXIST BUILD_WIN32\addons\audiodecoder.* (
+ ECHO SectionGroup "Audio Decoder Add-ons" SecAudioDecoderAddons >> audiodecoder-addons.nsi
+ FOR /F "tokens=*" %%P IN ('dir /B /AD BUILD_WIN32\addons\audiodecoder.*') DO (
+ SET "output=%%P"
+ SET output=!output:audiodecoder.=!
+ ECHO Section "!output!" SecAudioDecoderAddons!Counter! >> audiodecoder-addons.nsi
+ ECHO SectionIn 1 2 3 #section is in installtype Full >> audiodecoder-addons.nsi
+ ECHO SetOutPath "$INSTDIR\addons\%%P" >> audiodecoder-addons.nsi
+ ECHO File /r "${app_root}\addons\%%P\*.*" >> audiodecoder-addons.nsi
+ ECHO SectionEnd >> audiodecoder-addons.nsi
+ SET /A Counter = !Counter! + 1
+ )
+ ECHO SectionGroupEnd >> audiodecoder-addons.nsi
+)
+
+SET Counter=1
IF EXIST BUILD_WIN32\addons\audioencoder.* (
ECHO SectionGroup "Audio Encoder Add-ons" SecAudioEncoderAddons >> audioencoder-addons.nsi
FOR /F "tokens=*" %%P IN ('dir /B /AD BUILD_WIN32\addons\audioencoder.*') DO (
diff --git a/project/Win32BuildSetup/genNsisInstaller.nsi b/project/Win32BuildSetup/genNsisInstaller.nsi
index 9764303715..6288e2c588 100644
--- a/project/Win32BuildSetup/genNsisInstaller.nsi
+++ b/project/Win32BuildSetup/genNsisInstaller.nsi
@@ -277,6 +277,7 @@ Section "${APP_NAME}" SecAPP
SectionEnd
;*-addons.nsi are generated by genNsisIncludes.bat
+!include /nonfatal "audiodecoder-addons.nsi"
!include /nonfatal "audioencoder-addons.nsi"
!include /nonfatal "pvr-addons.nsi"
!include /nonfatal "skin-addons.nsi"