Copy configure.ac's platform-specific checks.

This commit is contained in:
Eric S. Raymond 2008-03-28 09:15:19 +00:00
parent 874524c957
commit 9306210729
2 changed files with 6 additions and 1 deletions

View file

@ -220,6 +220,12 @@ commonlibs = SDL_libs + boost_libs + ["pthread", "png", "-lpython"+sys.version[:
wesnothdlibs = ["SDL_net", "boost_iostreams-mt", "pthread"]
commonpath = ['src', '/usr/include/SDL', '/usr/include/python%s' % sys.version[:3]]
# Platform-specific support, straight from configure.ac
if sys.platform == 'win32': # Microsoft Windows
commonlibs.append("unicows") # Windows Unicode lib
elif sys.platform == 'darwin': # Mac OS X
event["CXXFLAGS"].append("-framework Carbon") # Carbon GUI
#color_range.cpp should be removed, but game_config depends on it.
#game_config has very few things that are needed elsewhere, it should be
#removed. Requires moving path and version at least to other files.

View file

@ -669,7 +669,6 @@ if test -n "$LDPREFIX" -a -r `$SDL_CONFIG --prefix`/lib/libSDL.la
then SDL_LIBS=`$SDL_CONFIG --prefix`/lib/libSDL.la
else SDL_LIBS=`$SDL_CONFIG --libs`
fi
# *** Not yet covered by scons recipe
case $host_os in
darwin*)
SDL_LIBS="-framework Carbon $SDL_LIBS"