2001-11-06 15:46:50 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-11-06 15:46:50 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
2001-11-06 15:46:50 +00:00
|
|
|
# for the specific language governing rights and limitations under the
|
2004-04-18 22:01:16 +00:00
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org Code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2001-11-06 15:46:50 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
2001-11-06 15:46:50 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-11-06 15:46:50 +00:00
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = widget
|
|
|
|
LIBRARY_NAME = widget_mac
|
2006-04-19 23:32:07 +00:00
|
|
|
EXPORT_LIBRARY = 1
|
2001-11-06 15:46:50 +00:00
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsWidgetMacModule
|
2001-12-07 22:01:26 +00:00
|
|
|
XPIDL_MODULE = widget_cocoa
|
2002-12-28 01:15:07 +00:00
|
|
|
GRE_MODULE = 1
|
2004-12-09 19:28:35 +00:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-12-28 01:15:07 +00:00
|
|
|
|
2003-04-21 22:24:12 +00:00
|
|
|
REQUIRES = xpcom \
|
2001-11-06 15:46:50 +00:00
|
|
|
gfx \
|
|
|
|
string \
|
|
|
|
uconv \
|
|
|
|
dom \
|
|
|
|
webshell \
|
|
|
|
docshell \
|
|
|
|
plugin \
|
|
|
|
content \
|
|
|
|
layout \
|
|
|
|
view \
|
|
|
|
xul \
|
|
|
|
necko \
|
2003-04-21 22:24:12 +00:00
|
|
|
nkcache \
|
2001-11-06 15:46:50 +00:00
|
|
|
locale \
|
2003-04-21 22:24:12 +00:00
|
|
|
pref \
|
|
|
|
intl \
|
|
|
|
mimetype \
|
2001-12-17 10:16:37 +00:00
|
|
|
unicharutil \
|
2003-04-21 22:24:12 +00:00
|
|
|
exthandler \
|
2006-04-06 07:41:34 +00:00
|
|
|
appshell \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-22 01:31:14 +00:00
|
|
|
ifdef MOZ_ENABLE_CAIRO_GFX
|
|
|
|
REQUIRES += thebes cairo
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GLITZ
|
|
|
|
REQUIRES += glitz glitzagl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2002-04-25 22:40:00 +00:00
|
|
|
EXPORTS = \
|
|
|
|
mozView.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2003-04-21 22:24:12 +00:00
|
|
|
MAC_LCPPSRCS = \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsBidiKeyboard.cpp \
|
|
|
|
nsClipboard.cpp \
|
|
|
|
nsDragService.cpp \
|
2002-04-23 03:55:19 +00:00
|
|
|
nsDragHelperService.cpp \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsLookAndFeel.cpp \
|
2003-04-21 22:24:12 +00:00
|
|
|
nsMacNativeUnicodeConverter.cpp \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsMacResources.cpp \
|
|
|
|
nsMimeMapper.cpp \
|
2003-04-21 22:24:12 +00:00
|
|
|
nsStylClipboardUtils.cpp \
|
2003-10-31 02:30:22 +00:00
|
|
|
nsToolkitBase.cpp \
|
2001-11-06 15:46:50 +00:00
|
|
|
nsTSMStrategy.cpp \
|
2006-01-11 21:56:25 +00:00
|
|
|
nsScreenMac.cpp \
|
|
|
|
nsScreenManagerMac.cpp \
|
2006-02-10 23:00:23 +00:00
|
|
|
nsDeviceContextSpecFactoryM.cpp \
|
|
|
|
nsDeviceContextSpecX.cpp \
|
|
|
|
nsPrintOptionsX.cpp \
|
|
|
|
nsPrintSettingsX.cpp \
|
|
|
|
nsPrintSessionX.cpp \
|
2003-04-21 22:24:12 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
2006-03-17 23:35:39 +00:00
|
|
|
ifndef MOZ_ENABLE_CAIRO_GFX
|
|
|
|
MAC_LCPPSRCS += nsNativeThemeMac.cpp \
|
|
|
|
nsSound.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2003-04-21 22:24:12 +00:00
|
|
|
CPPSRCS = \
|
|
|
|
$(MAC_LCPPSRCS) \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CMMSRCS = \
|
2005-10-19 22:27:32 +00:00
|
|
|
nsMenuX.mm \
|
2005-10-19 21:16:05 +00:00
|
|
|
nsMenuBarX.mm \
|
|
|
|
nsMenuItemX.mm \
|
2003-04-21 22:24:12 +00:00
|
|
|
nsFilePicker.mm \
|
|
|
|
nsToolkit.mm \
|
2006-05-10 17:30:15 +00:00
|
|
|
nsAppShell.mm \
|
2003-04-21 22:24:12 +00:00
|
|
|
nsCocoaWindow.mm \
|
|
|
|
nsChildView.mm \
|
2005-06-26 03:25:52 +00:00
|
|
|
nsWindowMap.mm \
|
2003-04-21 22:24:12 +00:00
|
|
|
nsWidgetFactory.mm \
|
|
|
|
nsNativeScrollbar.mm \
|
2004-04-29 03:14:21 +00:00
|
|
|
nsCursorManager.mm \
|
|
|
|
nsMacCursor.mm \
|
2003-04-21 22:24:12 +00:00
|
|
|
$(NULL)
|
2006-01-11 21:56:25 +00:00
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
XPIDLSRCS += \
|
|
|
|
nsIChangeManager.idl \
|
|
|
|
nsIMenuCommandDispatcher.idl \
|
2002-04-23 03:55:19 +00:00
|
|
|
nsIDragHelperService.idl \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2003-04-21 22:24:12 +00:00
|
|
|
GFX_CPPSRCS := $(addprefix $(topsrcdir)/gfx/src/mac/,$(GFX_LCPPSRCS))
|
|
|
|
MAC_CPP_CSRCS := $(addprefix $(srcdir)/../mac/,$(MAC_LCPPSRCS))
|
|
|
|
|
2006-05-03 22:18:39 +00:00
|
|
|
SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a
|
2001-11-06 15:46:50 +00:00
|
|
|
|
2002-06-11 20:35:22 +00:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2003-04-21 22:24:12 +00:00
|
|
|
$(TK_LIBS) \
|
2006-05-03 22:18:39 +00:00
|
|
|
$(call EXPAND_LIBNAME_PATH,gkgfx,$(DEPTH)/gfx/src) \
|
2003-04-21 22:24:12 +00:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(NULL)
|
2002-06-11 20:35:22 +00:00
|
|
|
|
2006-02-22 01:31:14 +00:00
|
|
|
ifdef MOZ_ENABLE_CAIRO_GFX
|
|
|
|
EXTRA_DSO_LDOPTS += -lthebes
|
|
|
|
endif
|
|
|
|
|
2003-04-21 22:24:12 +00:00
|
|
|
GARBAGE += $(GFX_LCPPSRCS) $(MAC_LCPPSRCS)
|
2002-06-11 20:35:22 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2006-01-09 23:02:06 +00:00
|
|
|
NIB_FILES = \
|
|
|
|
classes.nib \
|
|
|
|
info.nib \
|
|
|
|
keyedobjects.nib \
|
|
|
|
$(NULL)
|
|
|
|
NIB_DEST = $(DIST)/bin/res/MainMenu.nib
|
|
|
|
|
|
|
|
libs:: $(addprefix $(NIB_DEST)/,$(NIB_FILES))
|
|
|
|
|
|
|
|
$(NIB_DEST):
|
|
|
|
$(NSINSTALL) -D $@
|
|
|
|
|
|
|
|
$(NIB_DEST)/%: $(srcdir)/resources/MainMenu.nib/% $(NIB_DEST)
|
|
|
|
$(INSTALL) $< $(NIB_DEST)
|
|
|
|
|
2006-04-19 23:32:07 +00:00
|
|
|
RESOURCE = libwidget.rsrc
|
2003-05-09 22:05:31 +00:00
|
|
|
RES_SRC = nsMacWidget.r
|
2003-04-21 22:24:12 +00:00
|
|
|
|
2003-05-09 22:05:31 +00:00
|
|
|
export:: $(GFX_CPPSRCS) $(MAC_CPP_CSRCS) $(srcdir)/../mac/$(RES_SRC)
|
2002-06-11 20:35:22 +00:00
|
|
|
$(INSTALL) $^ .
|
|
|
|
|
2005-01-16 21:15:43 +00:00
|
|
|
# for objdir builds, symlink the cursors dir
|
|
|
|
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
|
|
|
|
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
|
|
|
export::
|
|
|
|
ln -fs $(srcdir)/cursors
|
|
|
|
endif
|
|
|
|
|
2006-04-19 23:32:07 +00:00
|
|
|
$(RESOURCE): $(RES_SRC)
|
|
|
|
/Developer/Tools/Rez -i /Developer/Headers/FlatCarbon -useDF $< -o $@
|
2002-06-09 00:05:37 +00:00
|
|
|
|
2006-04-19 23:32:07 +00:00
|
|
|
libs:: $(RESOURCE)
|
|
|
|
$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin
|
2002-06-09 00:05:37 +00:00
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
$(TK_CFLAGS) \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
2003-04-21 22:24:12 +00:00
|
|
|
-I$(srcdir)/../mac \
|
2001-11-06 15:46:50 +00:00
|
|
|
-I/System/Library/Frameworks/Carbon.Framework/Headers \
|
|
|
|
-I/System/Library/Frameworks/Cocoa.Framework/Headers \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LDFLAGS += \
|
|
|
|
-framework QuickTime \
|
2003-10-31 02:30:22 +00:00
|
|
|
-framework IOKit \
|
2001-11-06 15:46:50 +00:00
|
|
|
-framework Cocoa \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CXXFLAGS += \
|
|
|
|
-DUSE_COCOA \
|
|
|
|
$(NULL)
|
|
|
|
|