Bug 1254987 - Port bug 1256988 to c-c, GTK changes. r=clokep a=aleth CLOSED TREE
--HG-- extra : rebase_source : c8deb1894d3b970e51ead947c1af0913a078d770
This commit is contained in:
Родитель
a96045d895
Коммит
2bef9e59c6
|
@ -86,7 +86,7 @@ else
|
|||
ICON_SUFFIX=.png
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
ICON_DIR=gtk
|
||||
else
|
||||
ICON_DIR=$(MOZ_WIDGET_TOOLKIT)
|
||||
|
@ -118,7 +118,7 @@ libs:: $(addprefix $(DIST)/branding/,$(BRANDED_ICON_FILES))
|
|||
$(INSTALL) $^ $(DIST)/bin/chrome/icons/default
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
libs::
|
||||
$(INSTALL) $(DIST)/branding/default16.png $(DIST)/bin/chrome/icons/default
|
||||
endif
|
||||
|
@ -128,7 +128,7 @@ GARBAGE += $(MOZ_APP_NAME)
|
|||
GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/, all.js all-instantbird.js channel-prefs.js)
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
ICON_FILES = \
|
||||
$(DIST)/branding/default16.png \
|
||||
$(DIST)/branding/mozicon128.png \
|
||||
|
|
|
@ -23,7 +23,7 @@ ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
# cp $(srcdir)/license.r $(DIST)/branding/license.r
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mozicon128.png $(DIST)/branding/mozicon128.png
|
||||
cp $(srcdir)/mozicon16.xpm $(DIST)/branding/mozicon16.xpm
|
||||
cp $(srcdir)/mozicon50.xpm $(DIST)/branding/mozicon50.xpm
|
||||
|
@ -36,7 +36,7 @@ ifeq ($(OS_ARCH),WINNT)
|
|||
cp $(srcdir)/windows/convWindow.ico $(DIST)/branding/convWindow.ico
|
||||
cp $(srcdir)/windows/default.ico $(DIST)/branding/default.ico
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/gtk/blistWindow.png $(DIST)/branding/blistWindow.png
|
||||
cp $(srcdir)/gtk/blistWindow16.png $(DIST)/branding/blistWindow16.png
|
||||
cp $(srcdir)/gtk/blistWindow48.png $(DIST)/branding/blistWindow48.png
|
||||
|
|
|
@ -23,7 +23,7 @@ ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
# cp $(srcdir)/license.r $(DIST)/branding/license.r
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mozicon128.png $(DIST)/branding/mozicon128.png
|
||||
cp $(srcdir)/mozicon16.xpm $(DIST)/branding/mozicon16.xpm
|
||||
cp $(srcdir)/mozicon50.xpm $(DIST)/branding/mozicon50.xpm
|
||||
|
@ -36,7 +36,7 @@ ifeq ($(OS_ARCH),WINNT)
|
|||
cp $(srcdir)/windows/convWindow.ico $(DIST)/branding/convWindow.ico
|
||||
cp $(srcdir)/windows/default.ico $(DIST)/branding/default.ico
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/gtk/blistWindow.png $(DIST)/branding/blistWindow.png
|
||||
cp $(srcdir)/gtk/blistWindow16.png $(DIST)/branding/blistWindow16.png
|
||||
cp $(srcdir)/gtk/blistWindow48.png $(DIST)/branding/blistWindow48.png
|
||||
|
|
|
@ -22,7 +22,7 @@ else
|
|||
ifeq ($(OS_ARCH),WINNT)
|
||||
PKG_SUFFIX = .zip
|
||||
else
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
PKG_SUFFIX = .tar.bz2
|
||||
else
|
||||
PKG_SUFFIX = .tar.gz
|
||||
|
|
|
@ -17,7 +17,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|||
RCFILE = 'resources.rc'
|
||||
RESFILE = 'resources.res'
|
||||
|
||||
elif CONFIG['MOZ_WIDGET_GTK']:
|
||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
SOURCES += ['trayPlatformGtk2.cpp']
|
||||
OS_LIBS += CONFIG['TK_LIBS']
|
||||
OS_LIBS += CONFIG['XLIBS']
|
||||
|
|
|
@ -31,9 +31,9 @@ ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|||
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
DEFINES += -DMOZ_GTK=1
|
||||
ifdef MOZ_ENABLE_GTK3
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk3)
|
||||
DEFINES += -DMOZ_GTK3=1
|
||||
endif
|
||||
endif
|
||||
|
@ -154,7 +154,7 @@ libs::
|
|||
$(MAKE) -C $(DEPTH)/im/locales langpack
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
PKGCOMP_FIND_OPTS =
|
||||
PKGCOMP_FIND_OPTS =
|
||||
else
|
||||
PKGCOMP_FIND_OPTS = -L
|
||||
endif
|
||||
|
|
|
@ -102,7 +102,7 @@ libs:: $(addprefix $(DIST)/branding/,$(BRANDED_ICON_FILES))
|
|||
$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/chrome/icons/default
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
libs::
|
||||
$(INSTALL) $(IFLAGS1) $(DIST)/branding/default* $(DIST)/bin/chrome/icons/default
|
||||
endif
|
||||
|
|
|
@ -21,7 +21,7 @@ ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
cp $(srcdir)/thunderbird.icns $(DIST)/branding/thunderbird.icns
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mailicon16.png $(DIST)/branding/default16.png
|
||||
cp $(srcdir)/mailicon22.png $(DIST)/branding/default22.png
|
||||
cp $(srcdir)/mailicon24.png $(DIST)/branding/default24.png
|
||||
|
|
|
@ -21,7 +21,7 @@ ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
cp $(srcdir)/thunderbird.icns $(DIST)/branding/thunderbird.icns
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mailicon16.png $(DIST)/branding/default16.png
|
||||
cp $(srcdir)/mailicon22.png $(DIST)/branding/default22.png
|
||||
cp $(srcdir)/mailicon24.png $(DIST)/branding/default24.png
|
||||
|
|
|
@ -14,7 +14,7 @@ DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']
|
|||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
SOURCES += ['nsMailWinIntegration.cpp']
|
||||
|
||||
if CONFIG['MOZ_WIDGET_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
SOURCES += ['nsMailGNOMEIntegration.cpp']
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||
|
|
|
@ -41,9 +41,9 @@ ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|||
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
DEFINES += -DMOZ_GTK=1
|
||||
ifdef MOZ_ENABLE_GTK3
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk3)
|
||||
DEFINES += -DMOZ_GTK3=1
|
||||
endif
|
||||
endif
|
||||
|
@ -152,7 +152,7 @@ libs::
|
|||
$(MAKE) -C $(DEPTH)/mail/locales langpack
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
PKGCOMP_FIND_OPTS =
|
||||
PKGCOMP_FIND_OPTS =
|
||||
else
|
||||
PKGCOMP_FIND_OPTS = -L
|
||||
endif
|
||||
|
|
|
@ -28,7 +28,7 @@ ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
# cp $(srcdir)/license.r $(DIST)/branding/license.r
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mozicon128.png $(DIST)/branding/mozicon128.png
|
||||
cp $(srcdir)/mozicon16.xpm $(DIST)/branding/mozicon16.xpm
|
||||
cp $(srcdir)/mozicon50.xpm $(DIST)/branding/mozicon50.xpm
|
||||
|
@ -41,7 +41,7 @@ ifeq ($(OS_ARCH),WINNT)
|
|||
cp $(srcdir)/windows/convWindow.ico $(DIST)/branding/convWindow.ico
|
||||
cp $(srcdir)/windows/default.ico $(DIST)/branding/default.ico
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/gtk/blistWindow.png $(DIST)/branding/blistWindow.png
|
||||
cp $(srcdir)/gtk/blistWindow16.png $(DIST)/branding/blistWindow16.png
|
||||
cp $(srcdir)/gtk/blistWindow48.png $(DIST)/branding/blistWindow48.png
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Branding Makefile
|
||||
# - jars chrome artwork
|
||||
# - copies artwork to appropriate places in objdir for bundling into app
|
||||
# - copies artwork to appropriate places in objdir for bundling into app
|
||||
# resources
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -21,7 +21,7 @@ ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|||
cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
|
||||
cp $(srcdir)/thunderbird.icns $(DIST)/branding/thunderbird.icns
|
||||
endif
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
cp $(srcdir)/mailicon16.png $(DIST)/branding/default16.png
|
||||
cp $(srcdir)/mailicon22.png $(DIST)/branding/default22.png
|
||||
cp $(srcdir)/mailicon24.png $(DIST)/branding/default24.png
|
||||
|
|
|
@ -13,7 +13,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'):
|
|||
else:
|
||||
icon_suffix = '.png'
|
||||
|
||||
if CONFIG['MOZ_WIDGET_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
icon_dir = 'gtk'
|
||||
else:
|
||||
icon_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
|
||||
|
|
|
@ -50,9 +50,9 @@ ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|||
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
||||
endif
|
||||
|
||||
ifdef MOZ_WIDGET_GTK
|
||||
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
|
||||
DEFINES += -DMOZ_GTK=1
|
||||
ifdef MOZ_ENABLE_GTK3
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk3)
|
||||
DEFINES += -DMOZ_GTK3=1
|
||||
endif
|
||||
endif
|
||||
|
@ -142,7 +142,7 @@ NON_OMNIJAR_FILES = \
|
|||
$(NULL)
|
||||
|
||||
INSTALL_SDK = 1
|
||||
|
||||
|
||||
include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/packager.mk
|
||||
|
||||
ifeq (Darwin, $(OS_ARCH))
|
||||
|
@ -187,7 +187,7 @@ libs::
|
|||
$(MAKE) -C $(DEPTH)/suite/locales langpack
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
PKGCOMP_FIND_OPTS =
|
||||
PKGCOMP_FIND_OPTS =
|
||||
else
|
||||
PKGCOMP_FIND_OPTS = -L
|
||||
endif
|
||||
|
|
|
@ -13,7 +13,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
]
|
||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||
SOURCES += ['nsMacShellService.cpp']
|
||||
elif CONFIG['MOZ_WIDGET_GTK']:
|
||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
SOURCES += ['nsGNOMEShellService.cpp']
|
||||
|
||||
if SOURCES:
|
||||
|
|
Загрузка…
Ссылка в новой задаче