Ralf Gerlich: add headless mode to SimGear (merging simgear-cs)
This commit is contained in:
+10
-2
@@ -24,6 +24,14 @@ AC_ARG_WITH(cxx,
|
|||||||
esac
|
esac
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(headless,
|
||||||
|
AS_HELP_STRING([--enable-headless],[Enable only packages for headless build]))
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for headless mode])
|
||||||
|
AC_MSG_RESULT([$enable_headless])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(WANT_HEADLESS,[test "x$enable_headless" = "xyes"])
|
||||||
|
|
||||||
AC_MSG_CHECKING([CXX])
|
AC_MSG_CHECKING([CXX])
|
||||||
AC_MSG_RESULT([$CXX])
|
AC_MSG_RESULT([$CXX])
|
||||||
AC_MSG_CHECKING([CC])
|
AC_MSG_CHECKING([CC])
|
||||||
@@ -379,7 +387,7 @@ case "${host}" in
|
|||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test "$OPENAL_OK" == "no"; then
|
if test "$OPENAL_OK" == "no" -a "x$enable_headless" != "xyes"; then
|
||||||
echo
|
echo
|
||||||
echo "You *must* have the openal library installed on your system to build"
|
echo "You *must* have the openal library installed on your system to build"
|
||||||
echo "SimGear!"
|
echo "SimGear!"
|
||||||
@@ -390,7 +398,7 @@ if test "$OPENAL_OK" == "no"; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ALUT_OK" == "no"; then
|
if test "$ALUT_OK" == "no" -a "x$enable_headless" != "xyes"; then
|
||||||
echo
|
echo
|
||||||
echo "You *must* have the alut library installed on your system to build"
|
echo "You *must* have the alut library installed on your system to build"
|
||||||
echo "SimGear!"
|
echo "SimGear!"
|
||||||
|
|||||||
+16
-7
@@ -1,11 +1,22 @@
|
|||||||
# METAR_DIRS =
|
|
||||||
METAR_DIRS = environment
|
|
||||||
|
|
||||||
EXTRA_DIST = simgear_config.h.vc5 simgear_config.h-msvc71 version.h.in
|
EXTRA_DIST = simgear_config.h.vc5 simgear_config.h-msvc71 version.h.in
|
||||||
|
|
||||||
include_HEADERS = \
|
include_HEADERS = \
|
||||||
compiler.h constants.h sg_inlines.h version.h
|
compiler.h constants.h sg_inlines.h version.h
|
||||||
|
|
||||||
|
if WANT_HEADLESS
|
||||||
|
METAR_DIRS =
|
||||||
|
SG_EXTRA_DIRS =
|
||||||
|
else
|
||||||
|
SG_EXTRA_DIRS = scene sound screen
|
||||||
|
METAR_DIRS = environment
|
||||||
|
endif
|
||||||
|
|
||||||
|
if HAVE_THREADS
|
||||||
|
SGTHREAD_DIR = threads
|
||||||
|
else
|
||||||
|
SGTHREAD_DIR =
|
||||||
|
endif
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
$(compatibility_DIR) \
|
$(compatibility_DIR) \
|
||||||
xml \
|
xml \
|
||||||
@@ -21,11 +32,9 @@ SUBDIRS = \
|
|||||||
nasal \
|
nasal \
|
||||||
props \
|
props \
|
||||||
route \
|
route \
|
||||||
scene \
|
$(SG_EXTRA_DIRS) \
|
||||||
screen \
|
$(SGTHREAD_DIR) \
|
||||||
serial \
|
serial \
|
||||||
threads \
|
|
||||||
timing \
|
timing \
|
||||||
sound
|
|
||||||
|
|
||||||
DIST_SUBDIRS = $(SUBDIRS) compatibility
|
DIST_SUBDIRS = $(SUBDIRS) compatibility
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ void sgBucketDiff( const SGBucket& b1, const SGBucket& b2, int *dx, int *dy );
|
|||||||
inline std::ostream&
|
inline std::ostream&
|
||||||
operator<< ( std::ostream& out, const SGBucket& b )
|
operator<< ( std::ostream& out, const SGBucket& b )
|
||||||
{
|
{
|
||||||
return out << b.lon << ":" << b.x << ", " << b.lat << ":" << b.y;
|
return out << b.lon << ":" << (int)b.x << ", " << b.lat << ":" << (int)b.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user