/
master.cfg
1865 lines (1593 loc) · 57.3 KB
/
master.cfg
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- python -*-
# ex: set syntax=python:
#######
####### ScummVM settings for buildbot
#######
import os, sys, copy
expanded_base_dir = os.path.expanduser(basedir)
sys.path.append(expanded_base_dir)
import scumm
import scummsecret
buildbot_www = "/var/www/buildbot"
# ScummVM Repository
scumm_changeurl = "https://github.com/scummvm/scummvm"
scumm_giturl = "%s.git" % scumm_changeurl
scumm_branch_master = "master"
scumm_branch_master_desc = "master"
scumm_branch_stable = "branch-1-9"
scumm_branch_stable_desc = "stable"
scumm_package_dst_master = os.path.join(buildbot_www, "snapshots/master")
scumm_package_dst_stable = os.path.join(buildbot_www, "snapshots/stable")
# ScummVM Tools Repository
scumm_tools_changeurl = "https://github.com/scummvm/scummvm-tools"
scumm_tools_giturl = "%s.git" % scumm_tools_changeurl
scumm_tools_branch_master = "master"
scumm_tools_branch_master_desc = "tools-master"
scumm_tools_package_dst_master = os.path.join(buildbot_www, "snapshots/tools-master")
# ScummVM "Other" Repository - Used for testing Extensive Changes, Pull Requests etc.
scumm_other_changeurl = "https://github.com/digitall/scummvm"
scumm_other_giturl = "%s.git" % scumm_other_changeurl
scumm_other_branch = "gsoc2012-scalers-cont"
scumm_other_branch_desc = "gsoc2012-scalers-cont"
scumm_other_package_dst = os.path.join(buildbot_www, "snapshots/other")
# Currently (2014-04-02), a buildset for all scummvm builds takes about 14 GB
# for temporary files. With the current disk space, this means only tools and
# _TWO_ scummvm buildsets can be active at any time.
#
# Also, it is required to purge the temporary files for the older buildset via
# SSH prior to switching over.
#
# TODO: Need to look at automatically purging temporary files for any buildset
# which is inactive for longer than 1 day i.e. stable/other to help avoid
# future disk space issues.
# toggle nightly builds
scumm_build_nightly_master = True
scumm_build_nightly_stable = True
scumm_tools_build_nightly_master = True
scumm_build_nightly_other = False
# toggle verbose builds
scumm_verbose_build_master = True
scumm_verbose_build_stable = True
scumm_tools_verbose_build_master = True
scumm_other_verbose_build = True
# Files to package for scummvm stable snapshots (common to all ports).
scumm_package_stable = [
"AUTHORS",
"COPYING",
"COPYING.LGPL",
"COPYING.BSD",
"COPYRIGHT",
"NEWS",
"README",
"gui/themes/translations.dat",
"gui/themes/scummclassic.zip",
"gui/themes/scummmodern.zip",
"dists/engine-data/access.dat",
"dists/engine-data/drascula.dat",
"dists/engine-data/hugo.dat",
"dists/engine-data/kyra.dat",
"dists/engine-data/lure.dat",
"dists/engine-data/mort.dat",
"dists/engine-data/neverhood.dat",
"dists/engine-data/queen.tbl",
"dists/engine-data/sky.cpt",
"dists/engine-data/teenagent.dat",
"dists/engine-data/tony.dat",
"dists/engine-data/toon.dat",
"dists/engine-data/wintermute.zip",
"dists/pred.dic"
]
# Files to package for scummvm master snapshots (common to all ports).
scumm_package_master = copy.deepcopy(scumm_package_stable)
#scumm_package_master.extend( [
#] )
# Files to package for scummvm other snapshots (common to all ports).
scumm_package_other = copy.deepcopy(scumm_package_master)
# Files to package for scummvm-tools master snapshots (common to all ports).
scumm_tools_package_master = [
"COPYING",
"NEWS",
"README",
"convert_dxa.sh",
"convert_dxa.bat"
]
DEFAULT_PATH = "/usr/bin:/bin"
#DEFAULT_PATH = os.environ["PATH"]
scumm_env = {
"LC_ALL": "C",
"CXX": "",
"CXXFLAGS": "",
"CPPFLAGS": "",
"LDFLAGS": "",
"CCACHE_COMPRESS": "1",
"PATH": DEFAULT_PATH
}
# These engines can't be used on some platforms due to CPU/Video requirements
scumm_disable_heavy_engines_master = "--disable-engines=sword25,wintermute"
scumm_disable_heavy_engines_stable = "--disable-engines=sword25,wintermute"
# Our platform definitions.
scumm_platforms_master = {}
scumm_platforms_stable = {}
# These platforms are defined as "Desktop" and so will have tools built for them
scumm_desktop_platforms = []
# These platforms are defined as "Build Only" and thus will not be packaged for download.
scumm_buildonly_platforms = []
# These platforms are defined as "unable to run tests" and thus will not build or run tests
scumm_untestable_platforms = []
# Native build (for triggering tests - Can't run cross compiled binaries, so can only run test on native)
scumm_native_buildname = "debian-x86_64"
# debian x86 32bit.
scumm_root_debian_x86 = "/opt/toolchains/debian-i386-linux-gnu"
scumm_env_debian_x86 = copy.deepcopy(scumm_env)
scumm_env_debian_x86["PATH"] = "%s/usr/bin:%s" % (scumm_root_debian_x86, DEFAULT_PATH)
scumm_env_debian_x86["CXX"] = "ccache g++"
scumm_env_debian_x86["CPPFLAGS"] = "-isystem %s/usr/include" % scumm_root_debian_x86
scumm_env_debian_x86["CXXFLAGS"] = "-m32"
scumm_env_debian_x86["LDFLAGS"] = "-m32 -Wl,-rpath,%s/lib/i386-linux-gnu -Wl,-rpath,%s/usr/lib/i386-linux-gnu -L%s/usr/lib/i386-linux-gnu" % \
(scumm_root_debian_x86, scumm_root_debian_x86, scumm_root_debian_x86)
p = {
"configureargs": [
"--host=i386-linux-gnu"
],
"configureargs-tools": [
"--host=i386-linux-gnu"
],
"env": scumm_env_debian_x86,
"package": [ "scummvm" ],
"package-tools": [
"construct_mohawk",
"create_sjisfnt",
"decine",
#"decompile", # Decompiler currently not built - BOOST library not present
"degob",
"dekyra",
"deriven",
"descumm",
"desword2",
"extract_mohawk",
"gob_loadcalc",
#"scummvm-tools", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli"
],
"archive_format": "tar.xz"
}
scumm_platforms_master["debian-x86"] = p
scumm_platforms_stable["debian-x86"] = p
scumm_desktop_platforms.append("debian-x86")
# debian x86 32bit - testing null backend build.
p_nullbackend = copy.deepcopy(p)
p_nullbackend["configureargs"].extend( [
"--backend=null"
] )
scumm_platforms_master["debian-x86-nullbackend"] = p_nullbackend
scumm_platforms_stable["debian-x86-nullbackend"] = p_nullbackend
scumm_buildonly_platforms.append("debian-x86-nullbackend")
# debian x86 64bit.
scumm_root_debian_x86_64 = "/opt/toolchains/debian-x86_64-linux-gnu"
scumm_env_debian_x86_64 = copy.deepcopy(scumm_env)
scumm_env_debian_x86_64["PATH"] = "%s/usr/bin:%s" % (scumm_root_debian_x86_64, DEFAULT_PATH)
scumm_env_debian_x86_64["CXX"] = "ccache g++"
scumm_env_debian_x86_64["CPPFLAGS"] = "-isystem %s/usr/include" % scumm_root_debian_x86_64
scumm_env_debian_x86_64["CXXFLAGS"] = "-m64"
scumm_env_debian_x86_64["LDFLAGS"] = "-m64 -Wl,-rpath,%s/lib/x86_64-linux-gnu -Wl,-rpath,%s/usr/lib/x86_64-linux-gnu -L%s/usr/lib/x86_64-linux-gnu" % \
(scumm_root_debian_x86_64, scumm_root_debian_x86_64, scumm_root_debian_x86_64)
p = {
"configureargs": [
"--host=x86_64-linux-gnu"
],
"configureargs-tools": [
"--host=x86_64-linux-gnu"
],
"env": scumm_env_debian_x86_64,
"package": [ "scummvm" ],
"package-tools": [
"construct_mohawk",
"create_sjisfnt",
"decine",
#"decompile", # Decompiler currently not built - BOOST library not present
"degob",
"dekyra",
"deriven",
"descumm",
"desword2",
"extract_mohawk",
"gob_loadcalc",
#"scummvm-tools", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli"
],
"archive_format": "tar.xz"
}
scumm_platforms_master["debian-x86_64"] = p
scumm_platforms_stable["debian-x86_64"] = p
scumm_desktop_platforms.append("debian-x86_64")
# debian x86 using LLVM Clang compiler.
scumm_root_debian_x86_clang = "/opt/toolchains/debian-i386-linux-gnu"
scumm_env_debian_x86_clang = copy.deepcopy(scumm_env)
scumm_env_debian_x86_clang["PATH"] = "%s/usr/bin:%s" % (scumm_root_debian_x86_clang, DEFAULT_PATH)
scumm_env_debian_x86_clang["CXX"] = "ccache clang++"
scumm_env_debian_x86_clang["CPPFLAGS"] = "-isystem %s/usr/include" % scumm_root_debian_x86_clang
scumm_env_debian_x86_clang["CXXFLAGS"] = "-m32 -Qunused-arguments"
scumm_env_debian_x86_clang["LDFLAGS"] = "-m32 -Wl,-rpath,%s/lib/i386-linux-gnu -Wl,-rpath,%s/usr/lib/i386-linux-gnu -L%s/usr/lib/i386-linux-gnu" % \
(scumm_root_debian_x86_clang, scumm_root_debian_x86_clang, scumm_root_debian_x86_clang)
p = {
"configureargs": [
"--host=i386-linux-gnu"
],
"configureargs-tools": [
"--host=i386-linux-gnu"
],
"env": scumm_env_debian_x86_clang,
"package": [ "scummvm" ],
"package-tools": [
"construct_mohawk",
"create_sjisfnt",
"decine",
#"decompile", # Decompiler currently not built - BOOST library not present
"degob",
"dekyra",
"deriven",
"descumm",
"desword2",
"extract_mohawk",
"gob_loadcalc",
#"scummvm-tools", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli"
],
"archive_format": "tar.xz"
}
scumm_platforms_master["debian-x86-clang"] = p
scumm_platforms_stable["debian-x86-clang"] = p
# Desktop omitted as covered by debian-x86 build
scumm_buildonly_platforms.append("debian-x86-clang")
# MinGW 32bit, using the Win32 targetting MinGW-w64 compiler from the Debian repositories.
scumm_root_mingw_w32 = "/opt/toolchains/i686-w64-mingw32"
scumm_env_mingw_w32 = copy.deepcopy(scumm_env)
scumm_env_mingw_w32["PATH"] = "%s/bin:%s" % (scumm_root_mingw_w32, DEFAULT_PATH)
scumm_env_mingw_w32["CXX"] = "ccache i686-w64-mingw32-g++"
scumm_env_mingw_w32["CXXFLAGS"] = "-isystem %s/include" % scumm_root_mingw_w32
scumm_env_mingw_w32["LDFLAGS"] = "-L%s/lib" % scumm_root_mingw_w32
p = {
"configureargs": [
"--host=i686-w64-mingw32"
],
"configureargs-tools": [
"--host=i686-w64-mingw32"
],
"env": scumm_env_mingw_w32,
"strip": "i686-w64-mingw32-strip scummvm.exe",
"package": [
"scummvm.exe",
"%s/bin/SDL.dll" % scumm_root_mingw_w32
],
"package-tools": [
"construct_mohawk.exe",
"create_sjisfnt.exe",
"decine.exe",
#"decompile.exe", # Decompiler currently not built - BOOST library not present
"degob.exe",
"dekyra.exe",
"deriven.exe",
"descumm.exe",
"desword2.exe",
"extract_mohawk.exe",
"gob_loadcalc.exe",
#"scummvm-tools.exe", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli.exe"
],
"archive_format": "zip"
}
scumm_platforms_master["mingw-w32"] = p
scumm_platforms_stable["mingw-w32"] = p
scumm_desktop_platforms.append("mingw-w32")
# MinGW 64bit, using the Win64 targetting MinGW-w64 compiler from the Debian repositories.
scumm_root_mingw_w64 = "/opt/toolchains/x86_64-w64-mingw32"
scumm_env_mingw_w64 = copy.deepcopy(scumm_env)
scumm_env_mingw_w64["PATH"] = "%s/bin:%s" % (scumm_root_mingw_w64, DEFAULT_PATH)
scumm_env_mingw_w64["CXX"] = "ccache x86_64-w64-mingw32-g++"
scumm_env_mingw_w64["CXXFLAGS"] = "-isystem %s/include" % scumm_root_mingw_w64
scumm_env_mingw_w64["LDFLAGS"] = "-L%s/lib" % scumm_root_mingw_w64
p = {
"configureargs": [
"--host=x86_64-w64-mingw32"
],
"configureargs-tools": [
"--host=x86_64-w64-mingw32"
],
"env": scumm_env_mingw_w64,
"strip": "x86_64-w64-mingw32-strip scummvm.exe",
"package": [
"scummvm.exe",
"%s/bin/SDL.dll" % scumm_root_mingw_w64
],
"package-tools": [
"construct_mohawk.exe",
"create_sjisfnt.exe",
"decine.exe",
#"decompile.exe", # Decompiler currently not built - BOOST library not present
"degob.exe",
"dekyra.exe",
"deriven.exe",
"descumm.exe",
"desword2.exe",
"extract_mohawk.exe",
"gob_loadcalc.exe",
#"scummvm-tools.exe", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli.exe"
],
"archive_format": "zip"
}
scumm_platforms_master["mingw-w64"] = p
scumm_platforms_stable["mingw-w64"] = p
scumm_desktop_platforms.append("mingw-w64")
p_cplusplus11 = copy.deepcopy(p)
p_cplusplus11["configureargs"].extend( [
"--enable-c++11"
] )
scumm_platforms_master["mingw-w64-cplusplus11"] = p_cplusplus11
scumm_platforms_stable["mingw-w64-cplusplus11"] = p_cplusplus11
scumm_buildonly_platforms.append("mingw-w64-cplusplus11")
# wii
scumm_root_wii = "/opt/toolchains/devkitPPC-r26"
scumm_env_wii = copy.deepcopy(scumm_env)
scumm_env_wii["PATH"] = "%s/devkitPPC/bin:%s" % (scumm_root_wii, DEFAULT_PATH)
scumm_env_wii["CXX"] = "ccache powerpc-eabi-g++"
scumm_env_wii["CXXFLAGS"] = "-isystem %s/3rd/include" % scumm_root_wii
scumm_env_wii["LDFLAGS"] = "-L%s/3rd/lib" % scumm_root_wii
scumm_env_wii["DEVKITPRO"] = "%s" % scumm_root_wii
scumm_env_wii["DEVKITPPC"] = "%s/devkitPPC" % scumm_root_wii
p = {
"configureargs": [
"--host=wii",
"--enable-plugins",
"--default-dynamic",
"--enable-vkeybd"
],
"env": scumm_env_wii,
"disttarget": "wiidist",
"package": [ "wiidist/scummvm" ],
"archive_format": "tar.xz"
}
scumm_platforms_master["wii"] = p
scumm_platforms_stable["wii"] = p
# gamecube
scumm_root_gc = "/opt/toolchains/devkitPPC-r26"
scumm_env_gc = copy.deepcopy(scumm_env)
scumm_env_gc["PATH"] = "%s/devkitPPC/bin:%s" % (scumm_root_gc, DEFAULT_PATH)
scumm_env_gc["CXX"] = "ccache powerpc-eabi-g++"
scumm_env_gc["CXXFLAGS"] = "-isystem %s/3rd/include" % scumm_root_gc
scumm_env_gc["LDFLAGS"] = "-L%s/3rd/lib" % scumm_root_gc
scumm_env_gc["DEVKITPRO"] = "%s" % scumm_root_gc
scumm_env_gc["DEVKITPPC"] = "%s/devkitPPC" % scumm_root_gc
p = {
"configureargs": [
"--host=gamecube",
"--enable-plugins",
"--default-dynamic",
"--enable-vkeybd",
],
"env": scumm_env_gc,
"disttarget": "wiidist",
"package": [ "wiidist/scummvm" ],
"archive_format": "tar.xz"
}
scumm_platforms_master["gamecube"] = p
scumm_platforms_stable["gamecube"] = p
# Nintendo DS
scumm_root_ds = "/opt/toolchains/devkitARM-r30"
scumm_env_ds = copy.deepcopy(scumm_env)
scumm_env_ds["PATH"] = "%s/devkitARM/bin:%s" % (scumm_root_ds, DEFAULT_PATH)
scumm_env_ds["CXX"] = "ccache arm-eabi-c++"
#scumm_env_ds["CXXFLAGS"] = "-isystem %s/include" % scumm_root_ds
#scumm_env_ds["LDFLAGS"] = "-L%s/lib" % scumm_root_ds
scumm_env_ds["DEVKITPRO"] = scumm_root_ds
scumm_env_ds["DEVKITARM"] = "%s/devkitARM" % scumm_root_ds
p_master = {
"configureargs": [
"--host=ds",
"--enable-plugins",
"--default-dynamic"
],
"env": scumm_env_ds,
#"strip": "%s/bin/arm-eabi-strip scummvm.elf" % scumm_root_ds,
"package": [
"scummvm.nds",
"scummvm.ds.gba",
"plugins"
],
"archive_format": "tar.xz"
}
p_stable = copy.deepcopy(p_master)
p_master["configureargs"].extend( [
scumm_disable_heavy_engines_master
] )
p_stable["configureargs"].extend( [
scumm_disable_heavy_engines_stable
] )
scumm_platforms_master["ds"] = p_master
scumm_platforms_stable["ds"] = p_stable
scumm_untestable_platforms.append("ds")
# TODO: Add split static builds as per WinCE - See NDS backend makefile
# BASE_PARAM="--host=ds --disable-translation --disable-debug --disable-all-engines"
# a: EXTRA_PARAM="--enable-scumm"
# b: EXTRA_PARAM="--enable-sky --enable-queen"
# c: EXTRA_PARAM="--enable-agos"
# d: EXTRA_PARAM="--enable-gob --enable-cine --enable-agi"
# e: EXTRA_PARAM="--enable-saga --disable-mad"
# f: EXTRA_PARAM="--enable-kyra --disable-mad"
# g: EXTRA_PARAM="--enable-lure"
# h: EXTRA_PARAM="--enable-parallaction"
# i: EXTRA_PARAM="--enable-made --disable-mad"
# k: EXTRA_PARAM="--enable-cruise --disable-mad"
# Mac OS X Intel
scumm_root_osx_intel = "/opt/toolchains/i686-apple-darwin9-10.4"
scumm_env_osx_intel = copy.deepcopy(scumm_env)
scumm_env_osx_intel["PATH"] = "%s/bin:%s" % (scumm_root_osx_intel, DEFAULT_PATH)
scumm_env_osx_intel["CXX"] = "ccache i686-apple-darwin9-g++"
scumm_env_osx_intel["CXXFLAGS"] = "-I %s/include -I %s/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/ -I %s/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/i686-apple-darwin9" % (scumm_root_osx_intel,scumm_root_osx_intel,scumm_root_osx_intel)
scumm_env_osx_intel["LDFLAGS"] = "-L%s/lib" % scumm_root_osx_intel
p = {
"configureargs": [
"--host=i686-apple-darwin9",
"--disable-nasm",
"--with-staticlib-prefix=%s" % scumm_root_osx_intel
],
"configureargs-tools": [
"--host=i686-apple-darwin9"
],
"env": scumm_env_osx_intel,
"disttarget": "bundle",
#"disttarget-tools": "bundle", # bundle fails as GUI tools currently not built - WxWidgets library not present
"package": [ "ScummVM.app" ],
"package-tools": [
"construct_mohawk",
"create_sjisfnt",
"decine",
#"decompile", # Decompiler currently not built - BOOST library not present
"degob",
"dekyra",
"deriven",
"descumm",
"desword2",
"extract_mohawk",
"gob_loadcalc",
"pegasus_save_types",
#"scummvm-tools.app", # GUI tools currently not built - WxWidgets library not present
"scummvm-tools-cli"
],
"archive_format": "tar.xz"
}
scumm_platforms_master["osx_intel"] = p
scumm_platforms_stable["osx_intel"] = p
scumm_desktop_platforms.append("osx_intel")
# Mac OS X PPC
#
# FIXME: Due to toolchain issues and broken SDL development headers OS X PPC
# builds fail. If we can get the toolchain and the SDL development headers
# fixed we can enable this again.
#
#scumm_root_osx_ppc = "/opt/toolchains/powerpc-apple-darwin8-10.2"
#scumm_env_osx_ppc = copy.deepcopy(scumm_env)
#scumm_env_osx_ppc["PATH"] = "%s/bin:%s" % (scumm_root_osx_ppc, DEFAULT_PATH)
#scumm_env_osx_ppc["CXX"] = "ccache ppc-apple-darwin8-g++"
#scumm_env_osx_ppc["CXXFLAGS"] = "-fabi-version=1 -fno-use-cxa-atexit -I %s/include" % scumm_root_osx_ppc
#scumm_env_osx_ppc["LDFLAGS"] = "-L%s/lib -static-libgcc -ldl" % scumm_root_osx_ppc
#scumm_env_osx_ppc["MACOSX_DEPLOYMENT_TARGET"] = "10.2"
#
#scumm_tools_env_osx_ppc = copy.deepcopy(scumm_env_osx_ppc)
#scumm_tools_env_osx_ppc["CXXFLAGS"] += " -I %s/include/stlport" % scumm_root_osx_ppc
#scumm_tools_env_osx_ppc["LDFLAGS"] += " -lstlport"
#
#p = {
# "configureargs": [
# "--host=ppc-apple-darwin8",
# "--disable-freetype2", # 2014-04-18 Linking fails at packaging for nightly builds if Freetype library is enabled with errors of type "relocation overflow for relocation entry XX in section (__TEXT,__textcoal_nt) (displacement too large)"
# "--disable-engines=mads", # 2014-05-26 Linking fails at packaging with similar error - FIXME: Need better solution longterm
# "--with-staticlib-prefix=%s" % scumm_root_osx_ppc
# ],
# "configureargs-tools": [
# "--host=ppc-apple-darwin8"
# ],
# "env": scumm_env_osx_ppc,
# "env-tools": scumm_tools_env_osx_ppc,
# "disttarget": "bundle",
# #"disttarget-tools": "bundle", # bundle fails as GUI tools currently not built - WxWidgets library not present
# "package": [ "ScummVM.app" ],
# "package-tools": [
# "construct_mohawk",
# "create_sjisfnt",
# "decine",
# #"decompile", # Decompiler currently not built - BOOST library not present
# "degob",
# "dekyra",
# "deriven",
# "descumm",
# "desword2",
# "extract_mohawk",
# "gob_loadcalc",
# "pegasus_save_types",
# #"scummvm-tools.app", # GUI tools currently not built - WxWidgets library not present
# "scummvm-tools-cli"
# ],
# "archive_format": "tar.xz"
#}
#
#scumm_platforms_master["osx_ppc"] = p
#scumm_platforms_stable["osx_ppc"] = p
#scumm_desktop_platforms.append("osx_ppc")
# iOS - Supposed to work on all devices. Targetting iOS 3.1.
scumm_root_ios = "/opt/toolchains/apple-ios"
scumm_root_ios_arch = "%s/arm-apple-darwin9" % scumm_root_ios
scumm_root_ios_libs = "%s/usr" % scumm_root_ios_arch
scumm_env_ios = copy.deepcopy(scumm_env)
scumm_env_ios["PATH"] = "%s/bin:%s/bin:%s/bin:%s" % (scumm_root_ios_libs, scumm_root_ios_arch, scumm_root_ios, DEFAULT_PATH)
scumm_env_ios["CXX"] = "ccache arm-apple-darwin9-clang++"
scumm_env_ios["CPPFLAGS"] = "-isystem %s/include" % scumm_root_ios_libs
scumm_env_ios["CXXFLAGS"] = "-Qunused-arguments"
scumm_env_ios["LDFLAGS"] = "-L%s/lib" % scumm_root_ios_libs
p = {
"configureargs": [
"--host=iphone",
"--with-staticlib-prefix=%s" % scumm_root_ios_libs,
"--disable-debug", # llvm-dsymutil isn't working in the llvm version we use. Thus, disable debug information.
"--enable-optimizations" # Performance without optimizations is rather bad on older devices, thus we enable them.
# TODO: If debug information work again at some point we should think of disabling
# optimizations again. Or at least switch to "-Og".
],
"env": scumm_env_ios,
"disttarget": "iphonebundle",
"package": [ "ScummVM.app" ],
"archive_format": "tar.bz2"
}
scumm_platforms_master["ios"] = p
scumm_platforms_stable["ios"] = p
# iOS7 - Supposed to work on modern (iOS 7.1+) devices only. Targetting iOS 7.1.
scumm_root_ios7 = "/opt/toolchains/apple-ios"
scumm_root_ios7_arch = "%s/arm-apple-darwin11" % scumm_root_ios7
scumm_root_ios7_libs = "%s/usr" % scumm_root_ios7_arch
scumm_env_ios7 = copy.deepcopy(scumm_env)
scumm_env_ios7["PATH"] = "%s/bin:%s/bin:%s/bin:%s" % (scumm_root_ios7_libs, scumm_root_ios7_arch, scumm_root_ios7, DEFAULT_PATH)
scumm_env_ios7["CXX"] = "ccache arm-apple-darwin11-clang++"
scumm_env_ios7["CPPFLAGS"] = "-isystem %s/include" % scumm_root_ios7_libs
scumm_env_ios7["CXXFLAGS"] = "-Qunused-arguments"
scumm_env_ios7["LDFLAGS"] = "-L%s/lib" % scumm_root_ios7_libs
p = {
"configureargs": [
"--host=ios7",
"--with-staticlib-prefix=%s" % scumm_root_ios7_libs,
"--disable-debug" # llvm-dsymutil isn't working in the llvm version we use. Thus, disable debug information.
],
"env": scumm_env_ios7,
"disttarget": "ios7bundle",
"package": [ "ScummVM.app" ],
"archive_format": "tar.bz2"
}
scumm_platforms_master["ios7"] = p
scumm_platforms_stable["ios7"] = p
# iPhone - New Clang Toolchain as of 20140419
# Does not work on buildbot2 due to missing libraries. We could rebuild cctools
# to fix this and enable the toolchain again. Disabled for now.
# Disabled 20160212.
# TODO: Remove this in the future?
#scumm_root_iphone_clang = "/opt/toolchains/ios-clang3.3"
#scumm_libdir_iphone_clang = "%s/iPhoneOS3.1.2.sdk/usr/local" % scumm_root_iphone_clang
#scumm_env_iphone_clang = copy.deepcopy(scumm_env)
#scumm_env_iphone_clang["PATH"] = "%s/bin:%s/bin:%s" % (scumm_root_iphone_clang, scumm_libdir_iphone_clang, DEFAULT_PATH)
#scumm_env_iphone_clang["CXX"] = "ccache ios-clang++"
#scumm_env_iphone_clang["CXXFLAGS"] = "-Qunused-arguments -I%s/include" % scumm_libdir_iphone_clang
#scumm_env_iphone_clang["LDFLAGS"] = "-L%s/lib" % scumm_libdir_iphone_clang
#
#p = {
# "configureargs": [
# "--host=iphone",
# "--with-staticlib-prefix=%s" % scumm_libdir_iphone_clang,
# "--disable-debug" # dsymutil-osx fails breaking build. Disabling DWARF debug data with this avoids the use of this.
# ],
# "env": scumm_env_iphone_clang,
# "disttarget": "iphonebundle",
# "package": [ "ScummVM.app" ],
# "archive_format": "tar.bz2"
#}
#
#scumm_platforms_master["iphone-clang"] = p
#scumm_platforms_stable["iphone-clang"] = p
# PSP
scumm_root_psp = "/opt/toolchains/psp"
scumm_env_psp = copy.deepcopy(scumm_env)
scumm_env_psp["PATH"] = "%s/bin:%s" % (scumm_root_psp, DEFAULT_PATH)
scumm_env_psp["CXX"] = "ccache psp-g++"
scumm_env_psp["CXXFLAGS"] = "-isystem %s/include" % scumm_root_psp
scumm_env_psp["LDFLAGS"] = "-L%s/lib" % scumm_root_psp
scumm_env_psp["PSPDEV"] = scumm_root_psp
# HACK: The toolchain was built using libraries not available in recent Debian
# releases. We keep a copy of the old libraries around and use LD_LIBRARY_PATH
# to have ld.so find them.
scumm_env_psp["LD_LIBRARY_PATH"] = "/opt/toolchains/legacy-shared-objects"
p_master = {
"configureargs": [
"--host=psp",
"--disable-debug",
"--enable-plugins",
"--default-dynamic"
],
"env": scumm_env_psp,
"package": [
"EBOOT.PBP",
"plugins"
],
"archive_format": "tar.xz"
}
p_stable = copy.deepcopy(p_master)
p_master["package"].extend( [
"../../src-master/src/backends/platform/psp/kbd.zip"
] )
p_stable["package"].extend( [
"../../src-stable/src/backends/platform/psp/kbd.zip"
] )
scumm_platforms_master["psp"] = p_master
scumm_platforms_stable["psp"] = p_stable
# PSP2
scumm_root_psp2 = "/opt/toolchains/psp2"
scumm_env_psp2 = copy.deepcopy(scumm_env)
scumm_env_psp2["PATH"] = "%s/vitasdk/bin:%s" % (scumm_root_psp2, DEFAULT_PATH)
scumm_env_psp2["VITASDK"] = "%s/vitasdk" % (scumm_root_psp2)
# HACK: disable the unstable engines to prevent memory-related crash on startup
# that seems related to the size of the executable file, which grows with number
# of engines
p_master = {
"configureargs": [
"--disable-all-unstable-engines",
"--host=psp2"
],
"env": scumm_env_psp2,
"disttarget": "psp2vpk",
"package": [ "scummvm.vpk" ],
"archive_format": "zip"
}
p_stable = copy.deepcopy(p_master)
scumm_platforms_master["psp2"] = p_master
scumm_platforms_stable["psp2"] = p_stable
scumm_untestable_platforms.append("psp2")
# PS2
scumm_root_ps2 = "/opt/toolchains/ps2"
scumm_env_ps2 = copy.deepcopy(scumm_env)
scumm_env_ps2["PATH"] = "%s/tools/bin:%s/tools/ee/bin:%s/tools/iop/bin:%s/tools/dvp/bin:%s/sdk/bin:%s" % \
(scumm_root_ps2, scumm_root_ps2, scumm_root_ps2, scumm_root_ps2, scumm_root_ps2, DEFAULT_PATH)
scumm_env_ps2["CXX"] = "ccache ee-g++"
#scumm_env_ps2["CXXFLAGS"] = "-isystem %s/include" % scumm_root_ps2
#scumm_env_ps2["LDFLAGS"] = "-L%s/lib" % scumm_root_ps2
scumm_env_ps2["PS2DEV"] = "%s/tools" % scumm_root_ps2
scumm_env_ps2["PS2SDK"] = "%s/sdk" % scumm_root_ps2
scumm_env_ps2["PS2SDK_OLD"] = "1"
p = {
"configureargs": [
"--host=ps2",
"--enable-plugins",
"--default-dynamic"
],
"env": scumm_env_ps2,
"strip": "%s/tools/ee/bin/ee-strip --strip-debug scummvm.elf" % scumm_root_ps2,
"package": [
"scummvm.elf",
"plugins"
], # TODO/FIXME: What to package?
"archive_format": "tar.xz"
}
scumm_platforms_master["ps2"] = p
scumm_platforms_stable["ps2"] = p
scumm_untestable_platforms.append("ps2")
# GP2X
scumm_root_gp2x = "/opt/toolchains/open2x-gcc-4.1.1"
scumm_env_gp2x = copy.deepcopy(scumm_env)
scumm_env_gp2x["PATH"] = "%s/bin:%s" % (scumm_root_gp2x, DEFAULT_PATH)
scumm_env_gp2x["CXX"] = "ccache arm-open2x-linux-g++"
scumm_env_gp2x["CXXFLAGS"] = "-isystem %s/include" % scumm_root_gp2x
scumm_env_gp2x["LDFLAGS"] = "-L%s/lib" % scumm_root_gp2x
p_master = {
"configureargs": [
"--host=gp2x",
"--enable-vkeybd"
],
"env": scumm_env_gp2x,
"disttarget": "gp2x-bundle",
"package": [ "release/scummvm-gp2x.tar.bz2" ],
"archive_format": "tar.bz2"
}
p_stable = copy.deepcopy(p_master)
p_master["configureargs"].extend( [
scumm_disable_heavy_engines_master
] )
p_stable["configureargs"].extend( [
scumm_disable_heavy_engines_stable
] )
scumm_platforms_master["gp2x"] = p_master
scumm_platforms_stable["gp2x"] = p_stable
# GP2X Wiz
scumm_root_gp2xwiz = "/opt/toolchains/open2x-gcc-4.1.1"
scumm_env_gp2xwiz = copy.deepcopy(scumm_env)
scumm_env_gp2xwiz["PATH"] = "%s/bin:%s" % (scumm_root_gp2xwiz, DEFAULT_PATH)
scumm_env_gp2xwiz["CXX"] = "ccache arm-open2x-linux-g++"
scumm_env_gp2xwiz["CXXFLAGS"] = "-isystem %s/include" % scumm_root_gp2xwiz
scumm_env_gp2xwiz["LDFLAGS"] = "-L%s/lib" % scumm_root_gp2xwiz
p_master = {
"configureargs": [
"--host=gp2xwiz",
"--enable-vkeybd",
"--enable-plugins",
"--default-dynamic"
],
"env": scumm_env_gp2xwiz,
"disttarget": "gp2xwiz-bundle",
"package": [ "release/scummvm-gp2xwiz.tar.bz2" ],
"archive_format": "tar.bz2"
}
p_stable = copy.deepcopy(p_master)
p_master["configureargs"].extend( [
scumm_disable_heavy_engines_master
] )
p_stable["configureargs"].extend( [
scumm_disable_heavy_engines_stable
] )
scumm_platforms_master["gp2xwiz"] = p_master
scumm_platforms_stable["gp2xwiz"] = p_stable
# DC
scumm_root_dc = "/opt/toolchains/dc"
scumm_env_dc = copy.deepcopy(scumm_env)
scumm_env_dc["PATH"] = "%s/bin:%s" % (scumm_root_dc, DEFAULT_PATH)
scumm_env_dc["CXX"] = "ccache sh-elf-g++"
scumm_env_dc["RONINDIR"] = "%s/ronin" % scumm_root_dc
scumm_env_dc["IP_TEMPLATE_FILE"] = "/opt/extras-dc/IP.TMPL"
scumm_env_dc["DC_IMAGE_EXTRA_DIR"] = "/opt/extras-dc/demos"
p = {
"configureargs": [
"--host=dreamcast",
"--enable-plugins",
"--default-dynamic"
],
"env": scumm_env_dc,
"disttarget": "dcdist",
"package": [ "dcdist/scummvm" ],
"archive_format": "tar.xz"
}
scumm_platforms_master["dc"] = p
scumm_platforms_stable["dc"] = p
p_serial = copy.deepcopy(p)
p_serial["configureargs"].extend( [
"--enable-debug"
] )
scumm_platforms_master["dc-serial"] = p_serial
scumm_platforms_stable["dc-serial"] = p_serial
# Windows CE
scumm_root_wince = "/opt/toolchains/mingw32ce-0.59.1"
scumm_env_wince = copy.deepcopy(scumm_env)
scumm_env_wince["PATH"] = "%s/bin:%s" % (scumm_root_wince, DEFAULT_PATH)
scumm_env_wince["CXX"] = "ccache arm-mingw32ce-g++"
scumm_env_wince["CXXFLAGS"] = "-isystem %s/arm-mingw32ce/include -I%s/libraries/include -I%s/libraries/include/SDL" % (scumm_root_wince, scumm_root_wince, scumm_root_wince)
scumm_env_wince["LDFLAGS"] = "-L%s/arm-mingw32ce/lib -L%s/libraries/lib" % (scumm_root_wince, scumm_root_wince)
# HACK: The toolchain was built using libraries not available in recent Debian
# releases. We keep a copy of the old libraries around and use LD_LIBRARY_PATH
# to have ld.so find them.
scumm_env_wince["LD_LIBRARY_PATH"] = "/opt/toolchains/legacy-shared-objects"
p = {
"configureargs": [
"--host=wince"
],
"env": scumm_env_wince,
"strip": "%s/bin/arm-mingw32ce-strip scummvm.exe" % scumm_root_wince,
"package": [ "scummvm.exe" ],
"archive_format": "zip"
}
# scumm_platforms_master["wince"] = p
# scumm_platforms_stable["wince"] = p
p_split1 = copy.deepcopy(p)
p_split1["configureargs"].extend( [
"--disable-all-engines",
"--enable-engines=scumm,agi,cruise,draci,lure,queen,sky,sword1,tinsel,touche"
] )
# scumm_platforms_master["wince-split1"] = p_split1
# scumm_platforms_stable["wince-split1"] = p_split1
p_split2 = copy.deepcopy(p)
p_split2["configureargs"].extend( [
"--disable-all-engines",
"--enable-engines=agos,cine,drascula,gob,groovie,kyra,lol,made,parallaction,saga,teenagent,tucker"
] )
# scumm_platforms_master["wince-split2"] = p_split2
# scumm_platforms_stable["wince-split2"] = p_split2
p_split3 = copy.deepcopy(p)
p_split3["configureargs"].extend( [
"--disable-all-engines",
"--enable-engines=hugo,mohawk,sci,sword2,toon,tsage,cge,composer,dreamweb"
] )
# scumm_platforms_master["wince-split3"] = p_split3
# scumm_platforms_stable["wince-split3"] = p_split3
# motoezx
scumm_root_motoezx = "/opt/toolchains/motoezx"
scumm_env_motoezx = copy.deepcopy(scumm_env)
scumm_env_motoezx["PATH"] = "%s/bin:%s/crosstool/bin:%s" % (scumm_root_motoezx, scumm_root_motoezx, DEFAULT_PATH)
scumm_env_motoezx["CXX"] = "ccache arm-linux-gnu-g++"
scumm_env_motoezx["CXXFLAGS"] = "-isystem %s/include" % (scumm_root_motoezx)
scumm_env_motoezx["LDFLAGS"] = "-L%s/lib" % scumm_root_motoezx
p = {
"configureargs": [
"--host=motoezx",
"--enable-vkeybd"
],
"env": scumm_env_motoezx,
"disttarget": "motoezx",
"package": [ "release/ScummVM-motoezx.pkg" ],
"archive_format": "tar.xz"
}
#scumm_platforms_master["motoezx"] = p
#scumm_platforms_stable["motoezx"] = p
# motomagx
scumm_root_motomagx = "/opt/toolchains/motomagx/arm-eabi2"
scumm_env_motomagx = copy.deepcopy(scumm_env)
scumm_env_motomagx["PATH"] = "%s/bin:%s" % (scumm_root_motomagx, DEFAULT_PATH)
scumm_env_motomagx["CXX"] = "ccache arm-linux-gnueabi-g++"
scumm_env_motomagx["CXXFLAGS"] = "-isystem %s/include" % (scumm_root_motomagx)
scumm_env_motomagx["LDFLAGS"] = "-L%s/lib" % scumm_root_motomagx
p = {
"configureargs": [
"--host=motomagx",
"--enable-vkeybd"
],
"env": scumm_env_motomagx,
"disttarget": "motomagx-mpkg",
"package": [ "release/ScummVM-motomagx.mpkg" ],
"archive_format": "tar.xz"
}
#scumm_platforms_master["motomagx"] = p
#scumm_platforms_stable["motomagx"] = p
# n64
scumm_root_n64 = "/opt/toolchains/mips64-n64"
scumm_env_n64 = copy.deepcopy(scumm_env)
scumm_env_n64["PATH"] = "%s/bin:%s" % (scumm_root_n64, DEFAULT_PATH)
scumm_env_n64["CXX"] = "ccache mips64-g++"
scumm_env_n64["N64SDK"] = "/opt/toolchains/mips64-n64"
# HACK: The toolchain was built using libraries not available in recent Debian
# releases. We keep a copy of the old libraries around and use LD_LIBRARY_PATH
# to have ld.so find them.
scumm_env_n64["LD_LIBRARY_PATH"] = "/opt/toolchains/legacy-shared-objects"
p = {
"configureargs": [
"--host=n64",
"--disable-all-engines",
"--enable-engine=scumm,gob",
"--enable-vkeybd"
],
"env": scumm_env_n64,
"strip": "%s/bin/mips64-strip scummvm.elf" % scumm_root_n64,
"package": [ "scummvm.elf" ],
"archive_format": "tar.xz"
}
scumm_platforms_master["n64"] = p
scumm_platforms_stable["n64"] = p
# dingux
scumm_root_dingux = "/opt/toolchains/dingux-mipsel"
scumm_env_dingux = copy.deepcopy(scumm_env)
scumm_env_dingux["PATH"] = "%s/usr/bin:%s" % (scumm_root_dingux, DEFAULT_PATH)
scumm_env_dingux["CXX"] = "ccache mipsel-linux-g++"