2001-11-06 15:46:50 +00:00
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public License
|
|
|
|
# Version 1.1 (the "NPL"); you may not use this file except in
|
|
|
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
# http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# NPL.
|
|
|
|
#
|
|
|
|
# The Initial Developer of this code under the NPL is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
# Reserved.
|
|
|
|
#
|
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = widget
|
|
|
|
LIBRARY_NAME = widget_mac
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsWidgetMacModule
|
2001-12-07 22:01:26 +00:00
|
|
|
XPIDL_MODULE = widget_cocoa
|
2001-11-06 15:46:50 +00:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
gfx \
|
|
|
|
string \
|
|
|
|
uconv \
|
|
|
|
dom \
|
|
|
|
webshell \
|
|
|
|
docshell \
|
|
|
|
plugin \
|
|
|
|
content \
|
|
|
|
layout \
|
|
|
|
view \
|
|
|
|
xul \
|
|
|
|
necko \
|
|
|
|
nkcache \
|
|
|
|
locale \
|
|
|
|
pref \
|
|
|
|
appshell \
|
|
|
|
intl \
|
|
|
|
mimetype \
|
2001-12-17 10:16:37 +00:00
|
|
|
unicharutil \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2002-04-25 22:40:00 +00:00
|
|
|
EXPORTS = \
|
|
|
|
mozView.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
GFX_LCPPSRCS = \
|
|
|
|
nsRegionMac.cpp \
|
|
|
|
nsWatchTask.cpp \
|
2002-01-18 00:55:49 +00:00
|
|
|
nsRepeater.cpp \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
nsBidiKeyboard.cpp \
|
|
|
|
nsClipboard.cpp \
|
|
|
|
nsDeleteObserver.cpp \
|
|
|
|
nsDragService.cpp \
|
2002-04-23 03:55:19 +00:00
|
|
|
nsDragHelperService.cpp \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsFilePicker.cpp \
|
|
|
|
nsLookAndFeel.cpp \
|
|
|
|
nsMacResources.cpp \
|
|
|
|
nsMenuX.cpp \
|
|
|
|
nsMenuBarX.cpp \
|
|
|
|
nsMenuItemX.cpp \
|
|
|
|
nsMimeMapper.cpp \
|
|
|
|
nsSound.cpp \
|
|
|
|
nsTSMStrategy.cpp \
|
|
|
|
$(GFX_LCPPSRCS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CMMSRCS = \
|
2001-11-14 22:29:25 +00:00
|
|
|
nsScrollbar.mm \
|
2001-11-06 22:52:52 +00:00
|
|
|
nsToolkit.mm \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsAppShellCocoa.mm \
|
|
|
|
nsCocoaWindow.mm \
|
|
|
|
nsChildView.mm \
|
|
|
|
nsWidgetFactory.mm \
|
2002-04-02 23:01:05 +00:00
|
|
|
nsNativeScrollbar.mm \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS += \
|
|
|
|
nsIChangeManager.idl \
|
|
|
|
nsIMenuCommandDispatcher.idl \
|
2002-04-23 03:55:19 +00:00
|
|
|
nsIDragHelperService.idl \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2002-06-03 09:17:13 +00:00
|
|
|
SHARED_LIBRARY_LIBS = $(DIST)/lib/libxpwidgets_s.a
|
2001-11-06 15:46:50 +00:00
|
|
|
|
2002-06-09 00:05:37 +00:00
|
|
|
# nsMacWidget.rsrc is an AppleSingle encoded resource file.
|
|
|
|
# For Mach-O, we want to decode it and copy it to a data-fork resource file
|
|
|
|
# that lives in the application directory.
|
|
|
|
|
|
|
|
RES_DEST = $(DIST)/bin/libwidget.rsrc
|
|
|
|
RES_SRC = $(srcdir)/../mac/nsMacWidget.rsrc
|
|
|
|
|
|
|
|
$(RES_DEST): $(RES_SRC)
|
|
|
|
$(DIST)/bin/asdecode $(RES_SRC) $(RES_DEST).tmp
|
|
|
|
rm -f $(RES_DEST)
|
|
|
|
cp $(RES_DEST).tmp/rsrc $(RES_DEST)
|
|
|
|
rm -rf $(RES_DEST).tmp
|
|
|
|
|
|
|
|
libs:: $(RES_DEST)
|
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
2001-12-17 10:16:37 +00:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(TK_LIBS) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
-lgkgfx \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-06-03 09:17:13 +00:00
|
|
|
GARBAGE += $(GFX_LCPPSRCS)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
export:: $(addprefix $(topsrcdir)/gfx/src/mac/,$(GFX_LCPPSRCS))
|
|
|
|
$(INSTALL) $^ .
|
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
$(TK_CFLAGS) \
|
|
|
|
-I$(topsrcdir)/gfx/src/mac \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
|
|
|
-I/System/Library/Frameworks/Carbon.Framework/Headers \
|
|
|
|
-I/System/Library/Frameworks/Cocoa.Framework/Headers \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# for "EnterMovies" in nsSound.cpp
|
|
|
|
LDFLAGS += \
|
|
|
|
-framework QuickTime \
|
|
|
|
-framework Cocoa \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CXXFLAGS += \
|
|
|
|
-DUSE_COCOA \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|