Bläddra i källkod

build: allow to build without the PS3-specific files.

legacy
Sam Hocevar sam 13 år sedan
förälder
incheckning
e62b840f7e
3 ändrade filer med 26 tillägg och 5 borttagningar
  1. +10
    -0
      bootstrap
  2. +4
    -0
      configure.ac
  3. +12
    -5
      src/Makefile.am

+ 10
- 0
bootstrap Visa fil

@@ -16,6 +16,16 @@
# Die if an error occurs
set -e

# LolEngine specific:
sed -ne '/AC_CONFIG_FILES/,$p' configure.ac \
| sed -ne 's/[ \[*]*\([a-z].*\).Makefile.*/\1/p' | while read p; do
if [ ! -f "$p/Makefile.am" ]; then
echo "bootstrap: $p/Makefile.am does not exist -- creating stub"
mkdir -p "$p"
echo "# Stub created by bootstrap" > "$p/Makefile.am"
fi
done

# Guess whether we are using configure.ac or configure.in
if test -f configure.ac; then
conffile="configure.ac"


+ 4
- 0
configure.ac Visa fil

@@ -42,6 +42,10 @@ dnl PKG_PROG_PKG_CONFIG which needs to be called first.
AC_EGREP_CPP(yes, foo)
PKG_PROG_PKG_CONFIG()

dnl Available platforms: some of these are not public
AM_CONDITIONAL(HAVE_PS3, test -f src/platform/ps3/ps3app.cpp)

AM_CONDITIONAL(USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
dnl conditional builds
AC_ARG_ENABLE(debug,
[ --enable-debug build debug versions of the game (default no)])


+ 12
- 5
src/Makefile.am Visa fil

@@ -17,11 +17,8 @@ liblol_a_SOURCES = \
\
eglapp.cpp eglapp.h \
\
platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h \
\
platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
platform/ps3/ps3input.cpp platform/ps3/ps3input.h \
$(ps3_sources) \
$(sdl_sources) \
\
shader/shader.cpp shader/shader.h \
\
@@ -39,3 +36,13 @@ liblol_a_SOURCES = \
debug/quad.cpp debug/quad.h
liblol_a_CPPFLAGS = @LOL_CFLAGS@

sdl_sources = \
platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \
platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h

if HAVE_PS3
ps3_sources = \
platform/ps3/ps3app.cpp platform/ps3/ps3app.h \
platform/ps3/ps3input.cpp platform/ps3/ps3input.h
endif


Laddar…
Avbryt
Spara