News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Makefile and Mac

Started by wernieman, May 13, 2009, 09:44:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wernieman

Hello,

I try to make nightly for MAC (look at 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
I hope you understand my English

wernieman

Sorry for the pushing, but I got no answer ..

Do you need a patchfile?
I hope you understand my English

prissi

Maybe rather an SDL_OnLY switch to cater also for Windows and other applications?

leopard

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?
My Simutrans on the apple mac homepage http://www.aleopardstail.com/simutrans/Index.html

wernieman

@prissi:
But I don´t know what you want to change in the Windows-Part of the Makefile

I hope you understand my English