The International Simutrans Forum

 

Author Topic: Makefile and Mac  (Read 3214 times)

0 Members and 1 Guest are viewing this topic.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Makefile and Mac
« 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)

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:
Code: [Select]
  ifeq ($(OSTYPE),mac)
    # Core Audio (Quicktime) base sound system routines
    SOURCES += sound/core-audio_sound.mm
    SOURCES += music/core-audio_midi.mm
  else

to
Code: [Select]
  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

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Makefile and Mac
« Reply #1 on: May 14, 2009, 04:04:09 PM »
Sorry for the pushing, but I got no answer ..

Do you need a patchfile?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9567
  • Languages: De,EN,JP
Re: Makefile and Mac
« Reply #2 on: May 14, 2009, 07:59:48 PM »
Maybe rather an SDL_OnLY switch to cater also for Windows and other applications?

Offline leopard

  • Devotees (Inactive)
  • *
  • Posts: 97
  • Life in the Urban Jungle
    • A Leopard's Tail
Re: Makefile and Mac
« Reply #3 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?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Makefile and Mac
« Reply #4 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