BuildAndTest
From BlueObelisk
This page is intended to provide a resource for developers to place useful information to do with building and testing codes on different platforms.
Contents |
Building
Mac OSX
Building
OSX is a unix system, but the build experience is rather different from Linux and uses different tools.
A list of the command-line tools available on OSX is available from Apple here
Since Apple made the jump from PPC to Intel chips, it's advisable to package your application as a "Universal Binary" that includes the code to run on both architectures. Apple has some guidelines on building Universal Binares under Xcode here.
It's possible to build universal binaries without using Xcode and just using the standard command-line tools. There are some helpful notes on how to do this here.
Packaging
Programs on OSX are usually distributed as 'Application Bundles'. Apple's notes on programming bundles can be found here.
For Python programmers, py2app can take your Python programmers and convert it into a bundle, provided that you have a suitable setup.py script.
Once you've packaged your application into a bundle, it can be distributed as a Disk Image. The command to create Disk Image from a folder is:
hdiutil create -srcfolder <path_to_folder> <name_of_image>
Testing
Someone who has actually got some experience of these technologies needs to add stuff here.

