The International Simutrans Forum

Development => Bug Reports => Topic started by: wernieman on May 13, 2009, 09:44:15 AM

Title: Makefile and Mac
Post by: wernieman on May 13, 2009, 09:44:15 AM
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
Title: Re: Makefile and Mac
Post by: wernieman on May 14, 2009, 04:04:09 PM
Sorry for the pushing, but I got no answer ..

Do you need a patchfile?
Title: Re: Makefile and Mac
Post by: prissi on May 14, 2009, 07:59:48 PM
Maybe rather an SDL_OnLY switch to cater also for Windows and other applications?
Title: Re: Makefile and Mac
Post by: leopard on May 14, 2009, 08:54:01 PM
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?
Title: Re: Makefile and Mac
Post by: wernieman on May 15, 2009, 07:10:37 AM
@prissi:
But I donĀ“t know what you want to change in the Windows-Part of the Makefile