List Info

Thread: Compiling Objective-C sources under Mac OS X




Compiling Objective-C sources under Mac OS X
user name
2006-08-28 04: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
  ;

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )