Hello,
I try to make nightly for MAC (look at http://forum.simutrans.com/index.php?topic=2084.0 (http://forum.simutrans.com/index.php?topic=2084.0))
But for nightlys I must patch every day the Makefile because .. the MACSound in the nightly use quicktime, but I only can use SDL
so I must patche the Lines:
ifeq ($(OSTYPE),mac)
# Core Audio (Quicktime) base sound system routines
SOURCES += sound/core-audio_sound.mm
SOURCES += music/core-audio_midi.mm
else
to
ifeq ($(OSTYPE),mac)
# Core Audio (Quicktime) base sound system routines
SOURCES += sound/sdl_sound.cc
SOURCES += music/no_midi.cc
else
so .. can we us a parameter like "quicktime" ore .. to change the lines?
Werner
Sorry for the pushing, but I got no answer ..
Do you need a patchfile?
Maybe rather an SDL_OnLY switch to cater also for Windows and other applications?
this bit may well be my fault, I think I added that bit, well at least I added the two audio files. should be possible though for someone to sort that bit out with a command parameter, when I compile here (on a mac) I use a seperate batchfile to call the make script (since the single file has 'issues' building for both PPC & Intel, i.e. building two binaries)
suggested solution, split the BACKEND=cocoa option in the config file to two seperate sections
BACKEND=cocoaqt
BACKEND=cocoasdl
or just add an option thus
MACAUDIO=quicktime
MACAUDIO=sdl
?
and the relevent options in the makefile to use these parameters?
@prissi:
But I donĀ“t know what you want to change in the Windows-Part of the Makefile