Backed out changeset 9e8936813ae1

This commit is contained in:
Anant Narayanan 2009-07-28 17:13:15 -07:00
Родитель d014c20001
Коммит 0470244603
3 изменённых файлов: 6 добавлений и 33 удалений

Просмотреть файл

@ -39,19 +39,8 @@
# OS detection
xpidl = $(sdkdir)/bin/xpidl
link = link
sys := $(shell uname -s)
wince = $(WINCE)
ifeq ($(wince), 1)
os = WINNT
cxx = $(sdkdir)/sdk/bin/arm-wince-gcc
xpidl = $(sdkdir)/host/bin/host_xpidl
link = $(sdkdir)/sdk/bin/arm-wince-link
so = dll
else
ifeq ($(sys), Darwin)
os = Darwin
compiler = gcc3
@ -66,7 +55,7 @@ ifeq ($(sys), Linux)
so = so
cppflags += -shared
else
ifeq ($(sys), MINGW32_NT-6.1)
ifeq ($(sys), MINGW32_NT-6.0)
os = WINNT
compiler = msvc
cxx = cl
@ -91,7 +80,6 @@ endif
endif
endif
endif
endif
# Arch detection
@ -165,6 +153,8 @@ sdkdir ?= ${MOZSDKDIR}
destdir = ..
platformdir = $(destdir)/platform/$(platform)
xpidl = $(sdkdir)/bin/xpidl
# FIXME: we don't actually require this for e.g. clean
ifeq ($(sdkdir),)
$(warning No 'sdkdir' variable given)
@ -190,17 +180,11 @@ headers = -I$(sdkdir)/include \
# libraries
libdirs := $(sdkdir)/lib $(sdkdir)/bin
ifeq ($(wince),1)
libs := xpcomglue_s xpcom nspr4 \
crmf smime3 ssl3 nss3 nssutil3 \
plds4 plc4
else
libs := xpcomglue xpcomglue_s nspr4 \
crmf smime3 ssl3 nss3 nssutil3 \
plds4 plc4
endif
ifeq ($(os), Linux)
ifeq ($(os), linux)
libs := xpcom_core $(libs)
endif
@ -272,16 +256,6 @@ ifeq ($(os), SunOS)
$(sdkdir)/lib/libxpcomglue_s.a \
$(libdirs) $(libs)
else
ifneq ($(wince),)
libdirs := $(patsubst %,-LIBPATH:%,$(libdirs))
libs := $(patsubst %,$(sdkdir)/lib/%.lib,$(libs))
cppflags += -c -nologo -O1 -GR- -TP -Zc:wchar_t- -W3 -Gy $(headers) \
-DMOZILLA_STRICT_API \
-D"_WIN32_WCE=0x502" -D"UNDER_CE" -D"WIN32_PLATFORM_PSPC" \
-D"WINCE" -D"ARM" -D"_ARM_" -D"POCKETPC2003_UI_MODEL" -DXP_WIN
ldflags += -DLL $(libdirs) $(libs)
rcflags := -r $(headers)
else
ifeq ($(os), WINNT)
libdirs := $(patsubst %,-LIBPATH:%,$(libdirs))
libs := $(patsubst %,$(sdkdir)/lib/%.lib,$(libs))
@ -302,7 +276,6 @@ endif
endif
endif
endif
endif
######################################################################
@ -374,7 +347,7 @@ ifeq ($(os), WINNT)
$(cxx) -Fo$@ -Fd$(@:.o=.pdb) $(cppflags) $(@:.o=.cpp)
$(so_target): $(idl_headers) $(cpp_objects) $(target:=.res)
$(link) -OUT:$@ -PDB:$(@:.dll=.pdb) $(cpp_objects) $(target:=.res) $(ldflags)
link -OUT:$@ -PDB:$(@:.dll=.pdb) $(cpp_objects) $(target:=.res) $(ldflags)
chmod +x $@
endif
endif

Двоичный файл не отображается.

Просмотреть файл

@ -10,7 +10,7 @@ else
ifeq ($(sys), Linux)
os = Linux
else
ifeq ($(sys), MINGW32_NT-6.1)
ifeq ($(sys), MINGW32_NT-6.0)
os = WINNT
else
ifeq ($(sys), MINGW32_NT-5.1)