mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 815581 - Fixed accessible compilation on mingw (makefiles part) r=ted
This commit is contained in:
parent
dc68e67f03
commit
d27389e850
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
19
configure.in
19
configure.in
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user