Bug 815581 - Fixed accessible compilation on mingw (makefiles part) r=ted

This commit is contained in:
Jacek Caban 2012-11-30 15:20:00 +01:00
parent dc68e67f03
commit d27389e850
3 changed files with 21 additions and 13 deletions

View File

@ -72,13 +72,7 @@ EMBED_MANIFEST_AT = 2
include $(topsrcdir)/config/rules.mk
OS_LIBS = \
kernel32.lib \
rpcns4.lib \
rpcrt4.lib \
ole32.lib \
oleaut32.lib \
$(NULL)
OS_LIBS = $(call EXPAND_LIBNAME,uuid kernel32 rpcns4 rpcrt4 ole32 oleaut32)
# generate list of to-be-generated files that are missing
# but ignore special file dlldata.c

View File

@ -51,12 +51,7 @@ MIDL_GENERATED_FILES = \
SRCDIR_CSRCS = $(addprefix $(srcdir)/,$(CSRCS))
OS_LIBS = \
kernel32.lib \
rpcns4.lib \
rpcrt4.lib \
oleaut32.lib \
$(NULL)
OS_LIBS = $(call EXPAND_LIBNAME,kernel32 rpcns4 rpcrt4 oleaut32)
$(MIDL_GENERATED_FILES): done_gen

View File

@ -745,6 +745,18 @@ EOF
AC_MSG_ERROR([windres version $WINDRES_VERSION or higher is required to build.])
fi
AC_CHECK_PROGS(MIDL, $target-widl widl)
if test -n "$MIDL"; then
case "$target" in
i*86-*)
MIDL_FLAGS="$MIDL_FLAGS --win32 -m32"
;;
x86_64-*)
MIDL_FLAGS="$MIDL_FLAGS --win64 -m64"
;;
esac
fi
MOZ_WINSDK_MAXVER=0x06020000
fi # !GNU_CC
@ -5182,6 +5194,13 @@ MOZ_ARG_DISABLE_BOOL(accessibility,
ACCESSIBILITY=,
ACCESSIBILITY=1 )
if test "$ACCESSIBILITY"; then
if test -z "$MIDL"; then
if test "$GCC" != "yes"; then
AC_MSG_ERROR([MIDL could not be found. Building accessibility without MIDL is not supported.])
else
AC_MSG_ERROR([You have accessibility enabled, but widl could not be found. Add --dissable-accessibility to your mozconfig or install widl. See https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32 for details.])
fi
fi
AC_DEFINE(ACCESSIBILITY)
fi