Browse Source

build: minor tweaks for emscripten builds.

legacy
Sam Hocevar sam 11 years ago
parent
commit
5b8afad60a
3 changed files with 12 additions and 2 deletions
  1. +7
    -0
      build/autotools/common.am
  2. +1
    -1
      build/autotools/m4/lol-sdl.m4
  3. +4
    -1
      configure.ac

+ 7
- 0
build/autotools/common.am View File

@@ -106,6 +106,13 @@ CLEANFILES += $(PROGRAMS:%$(EXEEXT)=%.exe) \
$(noinst_PROGRAMS:%$(EXEEXT)=%.exe)


#
# Emscripten rules
#

CLEANFILES += $(PROGRAMS:%$(EXEEXT)=%.data) \
$(noinst_PROGRAMS:%$(EXEEXT)=%.data)

#
# Android rules
#


+ 1
- 1
build/autotools/m4/lol-sdl.m4 View File

@@ -62,7 +62,7 @@ fi
dnl Then the old sdl-config method
if test "x${cross_compiling}" != xyes -a "x${ac_cv_my_have_sdl}" = xno; then
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
if test "${SDL_CONFIG}" != "no"; then
if test "${SDL_CONFIG}" != "no" && "${SDL_CONFIG}" --version >/dev/null; then
ac_cv_my_have_sdl="yes"
SDL_CFLAGS="${SDL_CFLAGS} `${SDL_CONFIG} --cflags`"
SDL_LIBS="${SDL_LIBS} `${SDL_CONFIG} --libs`"


+ 4
- 1
configure.ac View File

@@ -310,7 +310,10 @@ AM_CONDITIONAL(USE_NACL, test "${ac_cv_my_have_nacl}" != "no")


dnl Use Emscripten?
AC_CHECK_HEADERS(emscripten.h)
ac_cv_my_have_emscripten="no"
AC_CHECK_HEADERS(emscripten.h,
[ac_cv_my_have_emscripten="yes"])
AM_CONDITIONAL(USE_EMSCRIPTEN, test "${ac_cv_my_have_emscripten}" != "no")


dnl Use Android? FIXME: super hacks!


Loading…
Cancel
Save