15 Commits

Author SHA1 Message Date
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Celtic Minstrel
5aa1b738cf Fix Wesnoth crashing upon encountering XCode debug arguments 2016-03-22 00:55:12 -04:00
Andreas Löf
358bd1235f Remove SDL1.2 code
This removes all legacy SDL1.2 code. It was done by invoking:
coan source --replace --no-transients -D"SDL_VERSION_ATLEAST(X, Y, Z)"=1 <file>
on each file.
2016-03-13 11:34:34 +13:00
Martin Proud
44cf166010 Update SDLMain.m
Fixes crash on launch for SDL2 on OS X.
2015-12-29 08:14:12 -06:00
Celtic Minstrel
eebe3cfb75 Revert f0a837227824a055362296b7db423bcdc7354c38 for SDL1.2 only 2015-09-23 23:34:24 -04:00
Celtic Minstrel
f0a8372278 OSX: Remove SDLApplication class as SDL2 also implements it
This fixes a runtime warning about duplicate class definitions
(All the menu stuff still works.)
2015-09-23 23:26:27 -04:00
Celtic Minstrel
b0ecf09ee9 Finish changes for XCode SDL2 compilation to work 2015-09-09 11:42:35 -04:00
Andreas Löf
9204d0af45 Remove SDL_main from OSX entry point under SDL2
SDL_main is not used any longer in SDL2. These changes instead call
direcly into the wesnoth main function after setting up the OSX
environment.
2015-09-09 11:42:27 -04:00
Alarantalara
48b286328c Move apple_notifications.mm somewhere easy to find for scons. 2014-12-17 20:26:11 -05:00
Alarantalara
758fce774f Avoid multiple string conversions to post Growl notifications (std::string -> C string -> NSString *) 2014-12-13 10:00:35 -05:00
Alarantalara
2a23585dd1 Add autorelease pool to clean up memory in case there is no such pool in OS X implementation of SDL. 2014-12-13 10:00:35 -05:00
Alarantalara
c73215ecb9 Allow compilers that don't support OS X 10.8 to compile notifications. 2014-12-13 10:00:35 -05:00
Alarantalara
7cb0f5c86a Support new versions of Growl and Apple notification center. 2014-12-11 23:27:07 -05:00
mattsc
1945c1f492 Upgrade Xcode project to enable both i386 and x86_64 builds
The largest part of this consist of upgrading the boost and pango/cairo
libraries together with their dependencies, supporting files and
project settings. In addition, architecture, SDK and compiler options
are set to use the native versions of the given OS X version for debug
builds. The OS X deployment target is set to OS X 10.8, because of a
change in the default libraries used by OS X from 10.8 to 10.9.
For this to work, the resources in  wesnoth_compile_mac_1.13.zip need
to be installed as well.
Some other settings, e.g. font defaults, still need to be adjusted.
This will be done in separate commits. Settings for release builds will
be changed later as well.
2014-04-07 09:15:09 -07:00
Ben Anderman
c3533ffc5a Added Xcode project files in projectfiles/...
...and removed macproject/ and the readme pointing to it.
2010-08-12 20:37:31 +00:00