Turn on use of Unicode. (Still not actually used.)
This commit is contained in:
parent
edd1239f01
commit
1f3f1d46b1
|
@ -84,6 +84,8 @@ Project: Starfighter depends on the following libraries to build:
|
|||
* SDL2 <http://libsdl.org>
|
||||
* SDL2_image <http://www.libsdl.org/projects/SDL_image/>
|
||||
* SDL2_mixer <http://www.libsdl.org/projects/SDL_mixer/>
|
||||
* SDL2_ttf <http://www.libsdl.org/projects/SDL_ttf/>
|
||||
* utf8proc <https://juliastrings.github.io/utf8proc/>
|
||||
|
||||
Once you have all dependencies installed, you can do the following from
|
||||
a terminal window:
|
||||
|
|
21
configure.ac
21
configure.ac
|
@ -21,12 +21,29 @@ STARFIGHTER_CFLAGS="-DVERSION=\\\"$PACKAGE_VERSION\\\""
|
|||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_EXISTS([SDL2_mixer], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image SDL2_mixer])
|
||||
PKG_CHECK_EXISTS([SDL2_ttf], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image SDL2_mixer SDL2_ttf])
|
||||
], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image SDL2_mixer])
|
||||
STARFIGHTER_CFLAGS="$STARFIGHTER_CFLAGS -DNOFONT"
|
||||
echo "Note: SDL_ttf not found; Unicode will not be supported."
|
||||
])
|
||||
], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image])
|
||||
PKG_CHECK_EXISTS([SDL2_ttf], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image SDL2_ttf])
|
||||
], [
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 SDL2_image])
|
||||
STARFIGHTER_CFLAGS="$STARFIGHTER_CFLAGS -DNOFONT"
|
||||
echo "Note: SDL_ttf not found; Unicode will not be supported."
|
||||
])
|
||||
STARFIGHTER_CFLAGS="$STARFIGHTER_CFLAGS -DNOSOUND"
|
||||
echo "Note: SDL_mixer not found; audio will not be supported."
|
||||
])
|
||||
PKG_CHECK_MODULES([UTF8PROC], [libutf8proc], [
|
||||
], [
|
||||
STARFIGHTER_CFLAGS="$STARFIGHTER_CFLAGS -DNOFONT"
|
||||
echo "Note: utf8proc not found; Unicode will not be supported."
|
||||
])
|
||||
|
||||
AC_ARG_VAR([SF_SCREEN_WIDTH], [The width of the game window in pixels])
|
||||
AC_ARG_VAR([SF_SCREEN_HEIGHT], [The height of the game window in pixels])
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
bin_PROGRAMS = starfighter
|
||||
|
||||
starfighter_CPPFLAGS = $(STARFIGHTER_CFLAGS) -DDATADIR=\"$(pkgdatadir)\" -Wall
|
||||
starfighter_CFLAGS = $(SDL_CFLAGS) -lm
|
||||
starfighter_LDADD = $(SDL_LIBS)
|
||||
starfighter_CFLAGS = $(SDL_CFLAGS) $(UTF8PROC_CFLAGS) -lm
|
||||
starfighter_LDADD = $(SDL_LIBS) $(UTF8PROC_LIBS)
|
||||
|
||||
starfighter_SOURCES = \
|
||||
Starfighter.c \
|
||||
|
|
Loading…
Reference in New Issue