Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-platform Linux/OS X Development w/ SDL



> From: Chris Scharver
> On Apr 23, 2005, at 3:36 PM, Keenan Crane wrote:
> 
> > Sounds like he still wants to go back and forth between platforms - is
> > there a good way to do this while using an XCode project?  I use
> > makefiles for this exact reason - I can switch back and forth from
> > Linux to Mac with no modification of code or makefile.
> 
> I haven't tested it yet, but CVS versions of CMake
> <http://www.cmake.org/> can apparently generate XCode projects.
> Depending on the project complexity, you could create a single
> CMakeLists.txt file for your project, and you could use CMake to
> generate whatever build setup you would like (e.g., Makefiles for
> Linux, Visual Studio projects or NMake files for Windows, and Makefiles
> or XCode projects for Mac OS X). I'm using it for several OpenGL
> projects on Mac OS X, IRIX, Linux, Windows 2000, and Windows XP at the
> moment, but I haven't tested the XCode project generation.

I've been playing with the Xcode generator off and on for the past
month. I found it surprisingly good at handling my projects. The big
thing that is missing for me is that for executables, it currently
only creates flat unix executable targets instead of app bundle
targets even if you specify the MACOSX_BUNDLE target. I haven't had a
chance to see if I could enhance the generator myself. I know they
would really like additional help.

But CMake is great because it makes that whole silly debate about
Makefiles vs IDE, command line vs GUI, etc,  a moot point. CMake lets
you decide what you want your build system to be. And if somebody else
doesn't like it, they can generate their own build system from the
same project description.

-Eric
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.