Land the simple OSX Mach-O build changes.

Bug #75653 r=cls
This commit is contained in:
seawood%netscape.com 2001-10-25 08:55:53 +00:00
Родитель 674d745ef3
Коммит 0f535e7061
8 изменённых файлов: 76 добавлений и 16 удалений

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

@ -70,10 +70,6 @@ ifeq ($(OS_CONFIG),SunOS4.1)
NSPR_CFLAGS += -I$(srcdir)/../nsprpub/pr/include/md
endif
ifeq ($(OS_CONFIG),Rhapsody10.0)
NSPR_CFLAGS += -DGETCWD_CANT_MALLOC
endif
HEADERS = nsBuildID.h
ifeq ($(MOZ_OS2_TOOLS),VACPP)
HEADERS += $(srcdir)/os2/dirent.h

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

@ -132,11 +132,6 @@ ifeq ($(OS_ARCH),OS_2)
OS_ARCH := OS2
OS_RELEASE := $(shell uname -v)
endif
ifeq ($(OS_ARCH),Mac OS)
ifeq ($(OS_RELEASE),10.0)
OS_ARCH := Rhapsody
endif
endif
ifeq ($(OS_ARCH),BeOS)
BEOS_ADDON_WORKAROUND = 1
endif

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

@ -29,8 +29,12 @@ include $(DEPTH)/config/autoconf.mk
ifeq ($(OS_ARCH),OS2)
DIRS = win
else
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
DIRS = mac
else
DIRS = unix
endif
endif
include $(topsrcdir)/config/rules.mk

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

@ -28,6 +28,32 @@ EXPORT_LIBRARY = 1
IS_COMPONENT = 1
MODULE_NAME = nsWidgetMacModule
XPIDL_MODULE = widget
REQUIRES = xpcom \
gfx \
string \
uconv \
dom \
webshell \
docshell \
plugin \
content \
layout \
view \
xul \
necko \
nkcache \
locale \
pref \
appshell \
intl \
timer \
mimetype \
$(NULL)
GFX_LCPPSRCS = \
nsRegionMac.cpp \
nsWatchTask.cpp \
$(NULL)
CPPSRCS = nsAppShell.cpp \
nsBidiKeyboard.cpp \
@ -37,6 +63,7 @@ CPPSRCS = nsAppShell.cpp \
nsDeleteObserver.cpp \
nsDragService.cpp \
nsFilePicker.cpp \
nsLabel.cpp \
nsLookAndFeel.cpp \
nsMacControl.cpp \
nsMacEventHandler.cpp \
@ -49,29 +76,43 @@ CPPSRCS = nsAppShell.cpp \
nsMenuBarX.cpp \
nsMenuItemX.cpp \
nsMimeMapper.cpp \
$(topsrcdir)/gfx/src/mac/nsRegionMac.cpp \
nsScrollbar.cpp \
nsSound.cpp \
nsTextWidget.cpp \
nsTSMStrategy.cpp \
nsToolkit.cpp \
nsWidgetFactory.cpp \
nsWidgetSupport.cpp \
nsWindow.cpp \
$(GFX_LCPPSRCS) \
$(NULL)
XPIDLSRCS += \
nsIChangeManager.idl \
$(NULL)
GARBAGE += $(GFX_LCPPSRCS)
include $(topsrcdir)/config/rules.mk
export:: $(addprefix $(topsrcdir)/gfx/src/mac/,$(GFX_LCPPSRCS))
$(INSTALL) $^ .
EXTRA_DSO_LDOPTS += \
$(DIST)/lib/libxpwidgets_s.a \
$(TK_LIBS) \
-lgkgfx \
$(MOZ_COMPONENT_LIBS) \
-lgkgfx \
-ltimer_mac \
$(NULL)
INCLUDES += $(TK_CFLAGS) -I$(topsrcdir)/gfx/src/mac -I$(srcdir)/../xpwidgets \
-I$(topsrcdir)/widget/timer/src/mac \
$(NULL)
LOCAL_INCLUDES = \
$(TK_CFLAGS) \
-I$(topsrcdir)/gfx/src/mac \
-I$(srcdir)/../xpwidgets \
-I$(topsrcdir)/widget/timer/src/mac \
$(NULL)
# for "EnterMovies" in nsSound.cpp
LDFLAGS += -framework QuickTime

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

@ -25,16 +25,24 @@ include $(DEPTH)/config/autoconf.mk
MODULE = timer
LIBRARY_NAME = timer_mac
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
#IS_COMPONENT = 1
MODULE_NAME = nsMacTimerModule
REQUIRES = xpcom \
gfx \
$(NULL)
EXPORTS = $(srcdir)/../unix/nsUnixTimerCIID.h
GFX_LCPPSRCS = nsRepeater.cpp
CPPSRCS = nsTimerMac.cpp \
$(topsrcdir)/gfx/src/mac/nsRepeater.cpp \
nsTimerPeriodical.cpp \
$(GFX_LCPPSRCS) \
$(NULL)
GARBAGE += $(GFX_LCPPSRCS)
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_TIMER
@ -44,3 +52,7 @@ EXTRA_DSO_LDOPTS+= \
$(NULL)
INCLUDES += -I../../../public
export:: $(addprefix $(topsrcdir)/gfx/src/mac/, $(GFX_LCPPSRCS))
$(INSTALL) $^ .

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

@ -29,8 +29,12 @@ include $(DEPTH)/config/autoconf.mk
ifeq ($(OS_ARCH), OS2)
DIRS = win
else
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
DIRS = mac
else
DIRS = unix
endif
endif
include $(topsrcdir)/config/rules.mk

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

@ -29,8 +29,12 @@ include $(DEPTH)/config/autoconf.mk
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
DIRS = win
else
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
DIRS = mac
else
DIRS = unix
endif
endif
include $(topsrcdir)/config/rules.mk

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

@ -29,8 +29,12 @@ include $(DEPTH)/config/autoconf.mk
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
DIRS = win
else
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
DIRS = mac
else
DIRS = unix
endif
endif
include $(topsrcdir)/config/rules.mk