wesnoth/projectfiles/Xcode
Celtic Minstrel 8122039707 Rename .tpp -> .hpp
Several header files used the .tpp extension, which means that they are not correctly detected as C++ (though this can be overridden and has been for one case in the XCode project). The .tpp extension is one of several intended for private template instantiations, but these headers were topleve headers included in many places.
2016-03-19 21:57:03 -04:00
..
English.lproj Updated version number; set High Resolution Capable per SDL2 guidelines; updated copyright date 2016-01-02 00:40:40 -06:00
Mac Sources Remove SDL1.2 code 2016-03-13 11:34:34 +13:00
Resources New hi-res icon using new logo for OS X 2015-12-29 19:36:09 -06:00
Wesnoth.xcodeproj Rename .tpp -> .hpp 2016-03-19 21:57:03 -04:00
Info.plist XCode: Fix bundle signature warning 2016-01-13 12:15:49 -05:00
readme.md Convert /projectfles readme's to markdown 2015-04-08 22:57:15 +02:00

Building with Xcode

Requirements

Once you download the zip, unzip it and move Headers and lib into the same folder as the Xcode project.

Targets

  • Wesnoth: Builds the actual game, depends on wesnothd. If you don't want to build wesnothd, get info on the Wesnoth target, go to the General tab, and remove wesnothd from its dependencies.

  • wesnothd: Builds the multiplayer server. The MP server is needed for hosting a local MP server, not for connecting to the official one.

  • unit_tests: Builds the unit tests, but probably doesn't work currently. If it does build, there's still no good way to run it.

Configurations

  • Release: Builds for maximum (runtime) speed and compatibility; it builds for PPC and i386 (Intel), and with the 10.4 SDK, and targets 10.4. Consequently, you need 10.4 to build it. This is what's used for official releases.

  • Debug: Builds for maximum compiling speed, and uses the current OS as the SDK. If you just want to compile for testing things yourself, this is the way to go.

Translations

To compile translations you need gettext-tools and scons. In the Terminal, cd to the Wesnoth root directory, and run scons translations. This will compile all the translations into a translations directory, and then you can move this into Wesnoth.app/Contents/Resources/ to use it.

Packaging

  • Update version numbers in Info.plist
  • Update the changelog in SDLMain.nib with player_changelog
  • Rebuild all in XCode (clean all, then build)
  • Rebuild translations, and move to Resources (see above)
  • Make dmg with Wesnoth.dmgCanvas (also included in the zip), after updating the volume name with the version number

~ Ben Anderman / crimson_penguin ben@happyspork.com, August 12 2010 --