Building same code for Mac & iOS

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

Building same code for Mac & iOS

Post by d000hg »

Not sure if this is a Mobile or Help topic...

I want to be able to build my app for both iOS and Mac (as well as Win32). iOS and Mac are two totally separate targets and there are project templates for both for XCode... but how should I best handle the same code being used for both? Will this prove obvious when I start working on it, or there any special issues I should know about up front?

Thanks.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Building same code for Mac & iOS

Post by masterfalcon »

The only way to accomplish this would be to have two separate project files. But you can add the same source files to both.