b=477727; add WINCE_WINDOWS_MOBILE define and associated configure flag; r=ted

This commit is contained in:
Vladimir Vukicevic 2009-02-12 18:26:01 -08:00
parent 82c4c4b2e1
commit 9f362eae15
7 changed files with 49 additions and 5 deletions

View File

@ -622,7 +622,8 @@ MOZ_MAPINFO = @MOZ_MAPINFO@
MOZ_PHOENIX = @MOZ_PHOENIX@
MOZ_XULRUNNER = @MOZ_XULRUNNER@
WINCE = @WINCE@
WINCE_SDK_DIR = @WINCE_SDK_DIR@
WINCE_SDK_DIR = @WINCE_SDK_DIR@
WINCE_WINDOWS_MOBILE = @WINCE_WINDOWS_MOBILE@
MOZ_DISTRIBUTION_ID = @MOZ_DISTRIBUTION_ID@

View File

@ -235,9 +235,24 @@ case "$target" in
MOZ_ARG_WITH_STRING(wince-sdk,
[ --with-wince-sdk=WINCE_SDK_DIR
The path to the windows mobile sdk],
The path to the Windows CE SDK],
WINCE_SDK_DIR=$withval)
dnl Default to Windows Mobile components enabled
WINCE_WINDOWS_MOBILE=1
MOZ_ARG_DISABLE_BOOL(windows-mobile-components,
[ --disable-windows-mobile-components
Disable Windows Mobile specific components from CE build],
WINCE_WINDOWS_MOBILE=,
WINCE_WINDOWS_MOBILE=1)
if test "$WINCE_WINDOWS_MOBILE"; then
AC_DEFINE(WINCE_WINDOWS_MOBILE)
fi
AC_SUBST(WINCE_WINDOWS_MOBILE)
export WINCE=1
echo -----------------------------------------------------------------------------
@ -253,7 +268,8 @@ case "$target" in
CC="$_pwd/dist/sdk/bin/arm-wince-gcc"
CXX="$_pwd/dist/sdk/bin/arm-wince-gcc"
CPP="$_pwd/dist/sdk/bin/arm-wince-gcc"
CPP="$_pwd/dist/sdk/bin/arm-wince-gcc -E -nologo"
CXXCPP="$_pwd/dist/sdk/bin/arm-wince-gcc -TP -E -nologo"
LD="$_pwd/dist/sdk/bin/arm-wince-link"
AR="$_pwd/dist/sdk/bin/arm-wince-lib"
AS="$_pwd/dist/sdk/bin/arm-wince-as"
@ -2024,6 +2040,12 @@ case "$target" in
MOZ_USER_DIR="Mozilla"
MOZ_GFX_OPTIMIZE_MOBILE=1
# Sanity check for WINCE_WINDOWS_MOBILE
if test "$WINCE_WINDOWS_MOBILE"; then
AC_CHECK_HEADER(tpcshell.h, [],
AC_MSG_ERROR([Can't find tpcshell.h in your SDK; are you sure you don't need --disable-windos-mobile-components?]))
fi
;;

View File

@ -109,5 +109,7 @@ EXTRA_DSO_LDOPTS += \
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
ifndef WINCE
OS_LIBS += $(call EXPAND_LIBNAME,usp10)
endif
endif

View File

@ -53,6 +53,12 @@ LIBS = $(NSPR_LIBS) $(EDITLINE_LIBS) $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_
LOCAL_INCLUDES += -I$(topsrcdir) -I..
ifdef _MSC_VER
ifdef WINCE
WIN32_EXE_LDFLAGS += -ENTRY:mainACRTStartup
endif
endif
include $(topsrcdir)/config/rules.mk
ifdef MOZ_SHARK

View File

@ -68,6 +68,12 @@ LIBS = \
NSDISTMODE = copy
ifdef _MSC_VER
ifdef WINCE
WIN32_EXE_LDFLAGS += -ENTRY:mainACRTStartup
endif
endif
include $(topsrcdir)/config/rules.mk
DEFINES += -DJS_THREADSAFE

View File

@ -209,7 +209,7 @@ EXTRA_DSO_LDOPTS += \
ifdef MOZ_SYDNEYAUDIO
EXTRA_DSO_LDOPTS += \
-framework CoreAudio \
-framework AudioToolbox \
-framework AudioToolbox \
-framework AudioUnit \
$(NULL)
endif
@ -262,7 +262,10 @@ EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,imagehlp)
endif
endif # WINNT
ifeq ($(OS_ARCH),WINCE)
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME, aygshell cellcore uuid ole32 oleaut32 Ws2)
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME, aygshell uuid ole32 oleaut32 Ws2)
ifdef WINCE_WINDOWS_MOBILE
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME, cellcore)
endif
endif

View File

@ -192,5 +192,9 @@ EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,imagehlp)
endif
endif # WINNT
ifeq ($(OS_ARCH),WINCE)
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,ole32)
endif # WINCE
export:: $(XPCOM_GLUE_SRC_CSRCS) $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS)
$(INSTALL) $^ .