Boost logo

Boost-Build :

From: Steve (rev_benny_hinn_at_[hidden])
Date: 2006-08-28 00:45:21


Hi all,

Is it currently possible to compile Objective-C (.m) sources using
boost-build?
 I'm trying to build an SDL application on Mac OS X using bjam and the
darwin
toolset.

darwin.jam seems to support frameworks fine - I've managed to get
OpenGL and
OpenAL working without any issues. However, SDL requires SDLMain.m to
be
compiled and linked if you're using their framework [in order to hook
up the
main() entry point correctly, I think.]

As it stands, I can't find any mention of Objective-C sources in
darwin.jam or
the types folder. Would someone be able to suggest how I can add .m
support?

Many thanks,
Steve

PS: Here's what I have in my SDL jamfile so far.
Any style tips and/or corrections would be very welcome.

# -----------------------------------------------------------
# SDL Jamfile
# -----------------------------------------------------------

project
  : usage-requirements
      <include>include
      <define>NO_STDIO_REDIRECT
  ;

lib lib_SDL
  :
  : <toolset>msvc
    <file>lib/sdl.lib
    <file>bin/sdl.dll
  ;

lib lib_SDLmain
  :
  : <toolset>msvc
    <file>lib/SDLmain.lib
  ;
  
alias lib_SDL
  :
  : <toolset>darwin
  :
  : <framework>SDL
  ;

lib lib_SDLmain
  : source/SDLMain.m
  : <toolset>darwin
    <framework>Cocoa
  ;

# -----------------------------------------------------------


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk