aboutsummaryrefslogtreecommitdiff
path: root/backends/symbian/BuildPackageUpload_LocalSettings.pl
blob: a357b836db9a1cf11987598f82e9451f28518e6c (plain)
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
##################################################################################################################

	# you can use these below for speed & clarity or override with custom settings	
	$DefaultTopMacros = "
		MACRO			USE_ZLIB			// LIB:zlib.lib
		MACRO			USE_MAD				// LIB:libmad.lib
		//MACRO			USE_TREMOR			// LIB:libtremor.lib
	";
		
	$DefaultBottomMacros = "
		MACRO			DISABLE_SWORD1		// LIB:scummvm_sword1.lib
		MACRO			DISABLE_SWORD2		// LIB:scummvm_sword2.lib
		MACRO			DISABLE_LURE		// LIB:scummvm_lure.lib
		MACRO			DISABLE_CINE		// LIB:scummvm_cine.lib
	";

	##
	## General system information:
	##

	# this way you can use the same LocalSettings.pl file on multiple machines!
	if ($ENV{'COMPUTERNAME'} eq "MYCOMPUTER")
	{
		# might use this string for file/dir naming in the future :)
		$Producer = "BUILDERNAME";
		$RedirectSTDERR = 0;
		$HaltOnError = 1;
		$SkipExistingPackages = 0;
		$ReallyQuiet = 0;
		
		# specify an optional FTP server to upload to after each Build+Package (can leave empty)
		#$FTP_Host = "ftp.myftp.net";
		#$FTP_User = "user";
		#$FTP_Pass = "pass";
		#$FTP_Dir  = "directory";
	
		# possible SDKs: ("UIQ2", UIQ3", "S60v1", "S60v2", "S60v3", "S80", "S90")
		# Note1: the \epoc32 directory needs to be in these rootdirs
		# Note2: these paths do NOT end in a backslash!
		$SDK_RootDirs{'UIQ2'}	= "C:\\S\\UIQ_21";
		$SDK_RootDirs{'S60v1'}	= "C:\\S\\S60v1";
		$SDK_RootDirs{'S60v2'}	= "C:\\S\\S60v2";
		$SDK_RootDirs{'S80'}	= "C:\\S\\S80";
		$SDK_RootDirs{'S90'}	= "C:\\S\\S90";
		$ECompXL_BinDir			= "C:\\S\\ECompXL\\bin"; # only needed for UIQ
		# you need to specify each of the SDKs used in the blocks below!

		# these supporting libraries get built first, then all the Variations
		# Note: the string {'xxx.lib'} is used in checking in build success: so needs to be accurate!
		if (0) # so we can turn them on/off easily
		{
			#$SDK_LibraryDirs{'ALL'}{'zlib.lib'}		= "C:\\S\\zlib-1.2.2\\epoc";
			#$SDK_LibraryDirs{'ALL'}{'libmad.lib'}	= "C:\\S\\libmad-0.15.1b\\group";
			#$SDK_LibraryDirs{'ALL'}{'libtremor.lib'}= "C:\\S\\tremor\\epoc";
			$SDK_LibraryDirs{'UIQ2'}{'esdl.lib'}	= $SDK_LibraryDirs{'UIQ3'}{'esdl.lib'} = "C:\\S\\ESDL\\epoc\\UIQ";
			#$SDK_LibraryDirs{'S60v1'}{'esdl.lib'}	= $SDK_LibraryDirs{'S60v2'}{'esdl.lib'} = $SDK_LibraryDirs{'S60v3'}{'esdl.lib'} = "C:\\S\\ESDL\\epoc\\S60";
			#$SDK_LibraryDirs{'S80'}{'esdl.lib'}		= "C:\\S\\ESDL\\epoc\\S80";
			#$SDK_LibraryDirs{'S90'}{'esdl.lib'}		= "C:\\S\\ESDL\\epoc\\S90";
			#$SDK_LibraryDirs{'ALL'}{'libmpeg2.lib'} = "C:\\S\\mpeg2dec-0.4.0\\epoc";
		}
			
		# backup :P
		#Path=C:\Progra~1\Active\Python24\.;C:\Program Files\Active\Tcl\bin;C:\Progra~1\Active\Perl\bin\;C:\WINDOWS\system32;C:\W
		#INDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\GNU\cvsnt;C:\Progra
		#m Files\WinSCP3\;"C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv\";"c:\Program Files\Microsoft Visual Stu
		#dio 8\VC\bin";"C:\Program Files\UltraEdit-32"		
	}
	elsif ($ENV{'COMPUTERNAME'} eq "OTHERCOMPUTER")
	{
#see previous section						
		# now you can add $SDK_Variations only built on this PC here :)
	}
	else
	{
		print "ERROR: Computer name ".$ENV{'COMPUTERNAME'}." not recognized! Plz edit _LocalSettings.pl!"; 
		exit 1;
	}

	##
	## Variation defines:
	##

	# second hash index = literal string used in .sis file created.
	# empty string also removes the trailing '_'. Some 051101 examples:
	
	# $SDK_Variations{'UIQ2'}{''} would produce:
	#   scummvm-051101-SymbianUIQ2.sis

	# $SDK_Variations{'S60v2'}{'simon'} would produce:
	#   scummvm-051101-SymbianS60v2_simon.sis

	# $SDK_Variations{'ALL'}{'queen'} with all $SDK_RootDirs defined would produce:
	#   scummvm-051101-SymbianUIQ2_queen.sis
	#   scummvm-051101-SymbianUIQ3_queen.sis
	#   scummvm-051101-SymbianS60v1_queen.sis
	#   scummvm-051101-SymbianS60v2_queen.sis
	#   scummvm-051101-SymbianS60v3_queen.sis
	#   scummvm-051101-SymbianS80_queen.sis
	#   scummvm-051101-SymbianS90_queen.sis

	$SDK_Variations{'UIQ2'}{'test'} = "$DefaultTopMacro
		MACRO			USE_TREMOR			// LIB:libtremor.lib
		//MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		//MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		//MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		//MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		//MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		//MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		//MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";
#	$SDK_Variations{'S60v1'}{'test'} = $SDK_Variations{'UIQ2'}{'test'};

if (0) # all regular combo's
{
	# the first one includes all SDKs & engines
	
	$SDK_Variations{'ALL'}{'all'} = "$DefaultTopMacros
		//MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		//MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		//MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		//MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		//MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		//MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		//MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	# now one for each ready-for-release engine
	
	$SDK_Variations{'ALL'}{'scumm'} = "$DefaultTopMacros
		//MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'simon'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		//MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'sky'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		//MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'queen'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		//MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'gob'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		//MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'saga'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		//MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'kyra'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		//MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
	$DefaultBottomMacros";

	# below here you could specify weird & experimental combinations, non-ready engines

	$SDK_Variations{'ALL'}{'test_lure'} = "$DefaultTopMacros
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
		MACRO			DISABLE_SWORD1		// LIB:scummvm_sword1.lib
		MACRO			DISABLE_SWORD2		// LIB:scummvm_sword2.lib
		//MACRO			DISABLE_LURE		// LIB:scummvm_lure.lib
		MACRO			DISABLE_CINE	
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'saga_mini'} = "
		//MACRO			USE_ZLIB			// LIB:zlib.lib
		//MACRO			USE_MAD				// LIB:libmad.lib
		//MACRO			USE_TREMOR			// LIB:libtremor.lib
		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		//MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
		MACRO			DISABLE_CINE	
	$DefaultBottomMacros";

	$SDK_Variations{'ALL'}{'scumm_no78he'} = "
		MACRO			USE_ZLIB			// LIB:zlib.lib
		MACRO			USE_MAD				// LIB:libmad.lib
		//MACRO			USE_TREMOR			// LIB:libtremor.lib
		//MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
		MACRO			DISABLE_SCUMM_7_8
		MACRO			DISABLE_SCUMM_HE
		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
		MACRO			DISABLE_CINE		
	$DefaultBottomMacros";
	
#	$SDK_Variations{'ALL'}{'all_vorbis'} = "
#		MACRO			USE_ZLIB			// LIB:zlib.lib
#		MACRO			USE_MAD				// LIB:libmad.lib
#		MACRO			USE_TREMOR			// LIB:libtremor.lib
#		//MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
#		//MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
#		//MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
#		//MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
#		//MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
#		//MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
#	$DefaultBottomMacros";
}

#
#	$SDK_Variations{'S60v2'}{'test_sword'} = "$DefaultTopMacros
#		MACRO			USE_MPEG2			// LIB:libmpeg2.lib
#		MACRO			USE_TREMOR			// LIB:libtremor.lib
#		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
#		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
#		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
#		MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
#		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
#		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
#		MACRO			DISABLE_KYRA		// LIB:scummvm_kyra.lib
#		//MACRO			DISABLE_SWORD1		// LIB:scummvm_sword1.lib
#		//MACRO			DISABLE_SWORD2		// LIB:scummvm_sword2.lib
#	";
#	$SDK_Variations{'UIQ2'}{'test_sword'} = $SDK_Variations{'S60v2'}{'test_sword'}
#

# for mega-fast-testing only plz!
#	$SDK_Variations{'UIQ2'}{'(fast_empty)'} = "
#		//MACRO			USE_ZLIB			// LIB:zlib.lib
#		//MACRO			USE_MAD				// LIB:libmad.lib
#		//MACRO			USE_TREMOR			// LIB:libtremor.lib
#		MACRO			USE_UIQ_SE_VIBRA	// LIB:vibration.lib
#		MACRO			DISABLE_SCUMM		// LIB:scummvm_scumm.lib
#		MACRO			DISABLE_SIMON		// LIB:scummvm_simon.lib
#		MACRO			DISABLE_SKY			// LIB:scummvm_sky.lib
#		//MACRO			DISABLE_QUEEN		// LIB:scummvm_queen.lib
#		MACRO			DISABLE_GOB			// LIB:scummvm_gob.lib
#		MACRO			DISABLE_SAGA		// LIB:scummvm_saga.lib
#	$DefaultBottomMacros";

##################################################################################################################

1;