mirror of
https://github.com/love2d/love.git
synced 2026-08-21 21:15:09 +02:00
Enabled headless build in autotools
This commit is contained in:
@@ -39,6 +39,9 @@ AC_SEARCH_LIBS([ModPlug_Load], [modplug], [], AC_MSG_ERROR([Can't LÖVE without
|
||||
AC_SEARCH_LIBS([mpg123_open_feed], [mpg123], [], AC_MSG_ERROR([Can't LÖVE without Mpg123]))
|
||||
AC_SEARCH_LIBS([mpg123_seek_64], [mpg123], AC_SUBST([FILE_OFFSET],[-D_FILE_OFFSET_BITS=64]), AC_SUBST([FILE_OFFSET],[]))
|
||||
AC_SEARCH_LIBS([ov_open], [vorbisfile], [], AC_MSG_ERROR([Can't LÖVE without VorbisFile]))
|
||||
AC_ARG_ENABLE([headless],
|
||||
[ --enable-headless Build with less SDL],
|
||||
AC_DEFINE([LOVE_HEADLESS], [], [Build with less SDL]), [])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
src/Makefile
|
||||
|
||||
@@ -68,4 +68,10 @@
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
|
||||
// Autotools config.h
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <../config.h>
|
||||
# undef VERSION
|
||||
#endif
|
||||
|
||||
#endif // LOVE_CONFIG_H
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
// STL
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
|
||||
// LOVE
|
||||
#include <filesystem/File.h>
|
||||
|
||||
Reference in New Issue
Block a user