aboutsummaryrefslogtreecommitdiff
path: root/Src/installer/SDK/WA_SDK.nsi
blob: 17f2209ce0f576f37a5413ad033c4a825a5f42ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
; WA_SDK.nsi

; This script will collect the files in Winamp SDK and create an installer for them

;------------------------

!ifndef VERSION
  !define VERSION "5.9"
!endif

!define PRODUCT_NAME "Winamp ${VERSION} SDK"

; This is where all projects live.  Ensure this is the correct relative path.  
!ifndef PROJECTS
  !define PROJECTS "..\.."
!endif

; Hinterland repo
!ifndef Hinterland
  !define Hinterland "..\..\..\..\Hinterland"
!endif

; Path to SDK Plugins
!ifndef SDKPlugins
  !define SDKPlugins "..\..\Plugins\SDK"
!endif

; Path to Gen Plugins
!ifndef GenPlugins
  !define GenPlugins "..\..\Plugins\General"
!endif

; Path to Input Plugins
!ifndef InPlugins
  !define InPlugins "..\..\Plugins\Input"
!endif

; Path to Enc Plugins
!ifndef EncPlugins
  !define EncPlugins "..\..\Plugins\Encoder"
!endif

; Path to Library Plugins
!ifndef LibPlugins
  !define LibPlugins "..\..\Plugins\Library"
!endif

; Path to Output Plugins
!ifndef OutPlugins
  !define OutPlugins "..\..\Plugins\Output"
!endif

; Path to DSP Plugins
!ifndef DSPPlugins
  !define DSPPlugins "..\..\Plugins\DSP"
!endif

; Path to Portable Plugins
!ifndef PortablePlugins
  !define PortablePlugins "..\..\Plugins\Portable"
!endif

; Path to Vis Plugins
!ifndef VisPlugins
  !define VisPlugins "..\..\Plugins\Visualization"
!endif

!define old_stuff_for_reference

!define WINAMP "Winamp"
!define UNINSTALLER "WA${VERSION}_SDK_Uninstaller.exe"

;Set Compression
SetCompress force
SetCompressor /solid lzma

!include "sections.nsh"
!include "LogicLib.nsh"
!include "WordFunc.nsh"

XPStyle on

;Request Administrator Privileges
RequestExecutionLevel user

;Version information for Windows Explorer
VIProductVersion "5.9.0.0"
VIAddVersionKey "ProductName" "${PRODUCT_NAME}"
VIAddVersionKey "Comments" "Winamp SDK Installer"
VIAddVersionKey "LegalCopyright" "Copyright © 1997-2022 Winamp SA"
VIAddVersionKey "CompanyName" "Winamp SA"
VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer"
VIAddVersionKey "FileVersion" "5.9.0.0"
VIAddVersionKey "ProductVersion" "5.9.0.0"

;------------------------

Name "Winamp ${VERSION} SDK"
OutFile "WA${VERSION}_SDK.exe"
InstallDir "$PROGRAMFILES\Winamp SDK"

Page Directory
Page instfiles

Section ""

; APIs
!include "winamp_api.nsh"
!include "ml_api.nsh"
!include "wasabi.nsh"
!include "bfc.nsh"
!include "xml.nsh"
!include "playlist.nsh"
!include "nu.nsh"
!include "Agave.nsh"
!include "nsv.nsh"
!include "burner.nsh"

; examples
!include "gen_tray.nsh"
!include "enc_flac.nsh"
!include "in_flac.nsh"
!include "ml_bookmarks.nsh"
!include "xspf.nsh"

; Previously moved to Hinterland. Now updated / migrated to VS2019...
!include "ml_xmlex.nsh"
!include "plLoadEx.nsh"
!include "dsp_test.nsh"
!include "in_tone.nsh"
!include "coverdirectory.nsh"
!include "irctell.nsh"
!include "ml_iso.nsh"
!include "out_null.nsh"
!include "gen_classicart.nsh"

; These old plugins were moved to Hinterland and do not compile under VS2019, so let's remove them from the SDK
;!include "in_chain.nsh"
;!include "in_raw.nsh"
;!include "ml_http.nsh"
;!include "mlExplorer.nsh"

; skinning
!include "maki.nsh"

; open source
!include "ReplayGainAnalysis.nsh"
!include "nde.nsh"

; TODO
; example using api_tagz
; example using hotkeys
; example using api_decodefile
; vis_avs
; jnetlib (but which one? dll or w5s?)
; file reader API
; example using api_random (maybe by adding noise generator to dsp_test)

!ifdef old_stuff_for_reference

SetOutPath $INSTDIR\gen_ml
File ${GenPlugins}\gen_ml\gaystring.h ; this needs replacing
File ${GenPlugins}\gen_ml\gaystring.cpp ; this needs replacing
File ${GenPlugins}\gen_ml\itemlist.cpp
File ${GenPlugins}\gen_ml\itemlist.h
File ${GenPlugins}\gen_ml\listview.cpp
File ${GenPlugins}\gen_ml\listview.h
File ${GenPlugins}\gen_ml\ml_ipc.h
File ${GenPlugins}\gen_ml\ml_lib.cpp

SetOutPath $INSTDIR\vis
File ${PROJECTS}\resources\SDK\wa5vis.txt
SetOutPath $INSTDIR\vis\vis_avs\apesdk
File /x CVS ${VisPlugins}\vis_avs\apesdk\*.*
SetOutPath $INSTDIR\vis\vis_avs\ns-eel2
File /x CVS ${PROJECTS}\ns-eel2\*.*
SetOutPath $INSTDIR\vis\vis_test
File ${Hinterland}\vis_milkdrop\svis.mak

SetOutPath $INSTDIR\Winamp
File ${GenPlugins}\gen_hotkeys\wa_hotkeys.h
File ${PROJECTS}\Winamp\api_random.h
File ${PROJECTS}\Winamp\api_decodefile.h
File ${PROJECTS}\Winamp\api_audiostream.h

SetOutPath $INSTDIR\tagz
File ${PROJECTS}\tagz\api_tagz.h
File ${PROJECTS}\tagz\ifc_tagprovider.h
File ${PROJECTS}\tagz\ifc_tagparams.h

File /oname=$INSTDIR\readme.txt ${PROJECTS}\Resources\SDK\sdkreadme.txt
!endif

WriteUninstaller "$INSTDIR\${UNINSTALLER}"

SectionEnd

Section "Uninstall"
Delete $INSTDIR\*.*
RMDir $INSTDIR
SectionEnd