2001-11-06 15:46:50 +00:00
|
|
|
#
|
2012-05-21 11:12:37 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2001-11-06 15:46:50 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2001-11-06 15:46:50 +00:00
|
|
|
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
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
|
2006-09-11 15:47:35 +00:00
|
|
|
|
2002-04-25 22:40:00 +00:00
|
|
|
EXPORTS = \
|
|
|
|
mozView.h \
|
2008-01-23 04:04:15 +00:00
|
|
|
nsChangeObserver.h \
|
2010-08-13 16:45:50 +00:00
|
|
|
nsCocoaUtils.h \
|
2011-08-05 18:36:51 +00:00
|
|
|
nsCocoaFeatures.h \
|
2002-04-25 22:40:00 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
CMMSRCS = \
|
2011-03-03 16:20:02 +00:00
|
|
|
nsBidiKeyboard.mm \
|
|
|
|
nsClipboard.mm \
|
|
|
|
nsMenuX.mm \
|
|
|
|
nsMenuBarX.mm \
|
|
|
|
nsMenuItemX.mm \
|
|
|
|
nsMenuItemIconX.mm \
|
|
|
|
nsMenuUtilsX.mm \
|
|
|
|
nsMenuGroupOwnerX.mm \
|
|
|
|
nsFilePicker.mm \
|
|
|
|
nsDragService.mm \
|
|
|
|
nsToolkit.mm \
|
|
|
|
nsAppShell.mm \
|
2011-08-05 18:36:51 +00:00
|
|
|
nsCocoaFeatures.mm \
|
2011-03-03 16:20:02 +00:00
|
|
|
nsCocoaUtils.mm \
|
|
|
|
nsCocoaWindow.mm \
|
|
|
|
nsChildView.mm \
|
|
|
|
nsWindowMap.mm \
|
|
|
|
nsWidgetFactory.mm \
|
|
|
|
nsCursorManager.mm \
|
|
|
|
nsMacCursor.mm \
|
|
|
|
nsScreenCocoa.mm \
|
|
|
|
nsScreenManagerCocoa.mm \
|
|
|
|
nsSound.mm \
|
|
|
|
nsLookAndFeel.mm \
|
|
|
|
nsNativeThemeCocoa.mm \
|
|
|
|
nsDeviceContextSpecX.mm \
|
|
|
|
nsPrintDialogX.mm \
|
|
|
|
nsPrintOptionsX.mm \
|
|
|
|
nsPrintSettingsX.mm \
|
|
|
|
nsIdleServiceX.mm \
|
2011-05-08 10:19:15 +00:00
|
|
|
TextInputHandler.mm \
|
2011-03-03 16:20:02 +00:00
|
|
|
nsMacDockSupport.mm \
|
|
|
|
nsStandaloneNativeMenu.mm \
|
2012-06-21 00:19:13 +00:00
|
|
|
nsMacWebAppUtils.mm \
|
2011-03-03 16:20:02 +00:00
|
|
|
GfxInfo.mm \
|
|
|
|
WidgetTraceEvent.mm \
|
|
|
|
$(NULL)
|
2006-01-11 21:56:25 +00:00
|
|
|
|
2010-06-10 00:56:17 +00:00
|
|
|
ifeq (x86_64,$(TARGET_CPU))
|
|
|
|
CMMSRCS += ComplexTextInputPanel.mm
|
|
|
|
endif
|
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
XPIDLSRCS += \
|
2006-05-17 18:53:58 +00:00
|
|
|
nsPIWidgetCocoa.idl \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
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
|
|
|
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)
|
|
|
|
|
2005-01-16 21:15:43 +00:00
|
|
|
# for objdir builds, symlink the cursors dir
|
2012-05-07 22:21:11 +00:00
|
|
|
ABS_topsrcdir := $(call core_abspath,$(topsrcdir))
|
2005-01-16 21:15:43 +00:00
|
|
|
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
|
|
|
export::
|
|
|
|
ln -fs $(srcdir)/cursors
|
|
|
|
endif
|
2007-04-03 22:19:48 +00:00
|
|
|
|
|
|
|
export::
|
2007-04-03 20:19:36 +00:00
|
|
|
$(INSTALL) $(srcdir)/cursors $(DIST)/bin/res
|
2005-01-16 21:15:43 +00:00
|
|
|
|
2001-11-06 15:46:50 +00:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
$(TK_CFLAGS) \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
2012-05-17 07:04:16 +00:00
|
|
|
-I$(srcdir)/../shared \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LDFLAGS += \
|
|
|
|
-framework QuickTime \
|
2003-10-31 02:30:22 +00:00
|
|
|
-framework IOKit \
|
2011-08-08 14:42:20 +00:00
|
|
|
-F/System/Library/PrivateFrameworks -framework CoreUI \
|
2001-11-06 15:46:50 +00:00
|
|
|
$(NULL)
|