Development:IDE:XCode: Difference between revisions
Asipicabad (talk | contribs) No edit summary |
m Reverted edits by Asipicabad (talk) to last revision by Ksterker |
||
Line 1: | Line 1: | ||
''This article is a work in progress'' | ''This article is a work in progress'' | ||
Line 23: | Line 15: | ||
== Creating An App Bundle == | == Creating An App Bundle == | ||
To package Adonthell, all its [[Architecture:Overview|modules]] and [[Development:Dependency_Matrix|dependencies]] need to be included in the Application bundle. The script [http://cvs.savannah.nongnu.org/viewvc/adonthell/scripts/make-bundle.sh?root=adonthell& | To package Adonthell, all its [[Architecture:Overview|modules]] and [[Development:Dependency_Matrix|dependencies]] need to be included in the Application bundle. The script [http://cvs.savannah.nongnu.org/viewvc/adonthell/scripts/make-bundle.sh?root=adonthell&view=markup make-bundle.sh] exists to mostly automate this process. It (currently) relies on adonthell and all its dependencies being installed to ''/usr/local'' and can be executed as follows | ||
install-bundle.sh /path/to/executable/ | install-bundle.sh /path/to/executable/ | ||
Line 35: | Line 27: | ||
# Install jhbuild into ~/bin: | # Install jhbuild into ~/bin: | ||
svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild | svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild | ||
cd jhbuild & | cd jhbuild && make -f Makefile.plain install | ||
# Get GTK+ jhbuild configuration for OSX | # Get GTK+ jhbuild configuration for OSX |
Revision as of 18:13, 27 November 2010
This article is a work in progress
Creating XCode Project Files
This requires CMake. Open a terminal and cd into the adonthell directory. Then run
cmake -G XCode .
to generate the Adonthell.xcproj that can be opened by XCode. Note that you might have to repeat this step as new source files get added (or you need to add them manually later on).
Creating Universal Binaries
No perfect way to do this yet. Adonthell PPC binaries run fine on Intel Macs, however.
Creating An App Bundle
To package Adonthell, all its modules and dependencies need to be included in the Application bundle. The script make-bundle.sh exists to mostly automate this process. It (currently) relies on adonthell and all its dependencies being installed to /usr/local and can be executed as follows
install-bundle.sh /path/to/executable/
to create Executable.app in the current directory.
Building Adonthell Tools
The tools used to create content for Adonthell rely on GTK+, which used to require X11 to run. However, there is Gtk+ for Mac OS X, which provides GTK+ with a native Cocoa backend. It also has simple installation instructions, summarized below:
# Install jhbuild into ~/bin: svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild cd jhbuild && make -f Makefile.plain install # Get GTK+ jhbuild configuration for OSX svn co http://developer.imendio.com/svn/gtk-osx-build/ ln -s gtk-osx-build/jhbuildrc-gtk-osx ~/.jhbuildrc # Bootstrap build environment (required once) ~/bin/jhbuild bootstrap # Install GTK+ in /opt/gtk ~/bin/jhbuild build