зеркало из https://github.com/mozilla/pjs.git
Bug 351715 Build Chatzilla as extension for suiterunner (toolkit/ style seamonkey) - not currently including locales changes, that will be done as part of bug 397246. r=silver
This commit is contained in:
Родитель
b2291bb938
Коммит
1d51084071
|
@ -47,12 +47,22 @@ MODULE = chatzilla
|
|||
PACKAGE_FILE = chatzilla.pkg
|
||||
|
||||
EXTRA_COMPONENTS = js/lib/chatzilla-service.js
|
||||
DIST_FILES = xpi/resources/install.rdf
|
||||
|
||||
ifdef MOZ_PHOENIX
|
||||
DIRS += ff
|
||||
else
|
||||
DIRS += sm
|
||||
endif
|
||||
DIRS += locales
|
||||
CHATZILLA_VERSION=$(shell grep "const __cz_version" "$(srcdir)/xul/content/static.js" | sed "s|.*\"\([^\"]\{1,\}\)\".*|\1|")
|
||||
|
||||
XPI_NAME = chatzilla
|
||||
USE_EXTENSION_MANIFEST = 1
|
||||
NO_JAR_AUTO_REG = 1
|
||||
INSTALL_EXTENSION_ID = {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}
|
||||
XPI_PKGNAME = chatzilla-$(CHATZILLA_VERSION)
|
||||
|
||||
DIRS += locales ff sm
|
||||
|
||||
DEFINES += -DCHATZILLA_VERSION=$(CHATZILLA_VERSION)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
export::
|
||||
$(NSINSTALL) -D $(FINAL_TARGET)/chrome/icons/default
|
||||
$(INSTALL) $(srcdir)/xpi/resources/chatzilla-window* $(FINAL_TARGET)/chrome/icons/default
|
||||
|
|
|
@ -41,4 +41,12 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
CHATZILLA_VERSION=$(shell grep "const __cz_version" "$(srcdir)/../xul/content/static.js" | sed "s|.*\"\([^\"]\{1,\}\)\".*|\1|")
|
||||
|
||||
XPI_NAME = chatzilla
|
||||
USE_EXTENSION_MANIFEST = 1
|
||||
NO_JAR_AUTO_REG = 1
|
||||
INSTALL_EXTENSION_ID = {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}
|
||||
XPI_PKGNAME = chatzilla-$(CHATZILLA_VERSION)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# The registation of the overlays specific to Firefox below should match
|
||||
# the ../xul/content/ff/contents.rdf file.
|
||||
chatzilla.jar:
|
||||
% content chatzilla-ff %content/chatzilla/ff/
|
||||
% overlay chrome://chatzilla/content/chatzilla.xul chrome://chatzilla/content/ff/overlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
content/chatzilla/ff/contents.rdf (../xul/content/ff/contents.rdf)
|
||||
content/chatzilla/ff/overlay.xul (../xul/content/ff/overlay.xul)
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
chatzilla.jar:
|
||||
% content chatzilla %content/chatzilla/
|
||||
% skin chatzilla modern/1.0 %skin/modern/chatzilla/
|
||||
% overlay chrome://browser/content/browser.xul chrome://chatzilla/content/browserOverlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
% overlay chrome://editor/content/editorTasksOverlay.xul chrome://chatzilla/content/chatzillaOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
% overlay chrome://communicator/content/pref/preftree.xul chrome://chatzilla/content/prefsOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
% overlay chrome://communicator/content/pref/pref-appearance.xul chrome://chatzilla/content/prefsOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
% style chrome://browser/content/browser.xul chrome://chatzilla/skin/browserOverlay.css
|
||||
% style chrome://global/content/customizeToolbar.xul chrome://chatzilla/skin/browserOverlay.css
|
||||
* content/chatzilla/contents.rdf (xul/content/contents.rdf)
|
||||
skin/modern/chatzilla/contents.rdf (xul/skin/contents.rdf)
|
||||
content/chatzilla/lib/js/utils.js (js/lib/utils.js)
|
||||
|
|
|
@ -41,4 +41,12 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
CHATZILLA_VERSION=$(shell grep "const __cz_version" "$(srcdir)/../xul/content/static.js" | sed "s|.*\"\([^\"]\{1,\}\)\".*|\1|")
|
||||
|
||||
XPI_NAME = chatzilla
|
||||
USE_EXTENSION_MANIFEST = 1
|
||||
NO_JAR_AUTO_REG = 1
|
||||
INSTALL_EXTENSION_ID = {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}
|
||||
XPI_PKGNAME = chatzilla-$(CHATZILLA_VERSION)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
# The registation of the overlays specific to SeaMonkey below should match
|
||||
# the ../xul/content/sm/contents.rdf file.
|
||||
chatzilla.jar:
|
||||
% content chatzilla-sm %content/chatzilla/sm/
|
||||
% overlay chrome://chatzilla/content/chatzilla.xul chrome://chatzilla/content/sm/overlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
% overlay chrome://chatzilla/content/chatzilla.xul chrome://communicator/content/utilityOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
% overlay chrome://chatzilla/content/menus.xul chrome://communicator/content/tasksOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
|
||||
content/chatzilla/sm/contents.rdf (../xul/content/sm/contents.rdf)
|
||||
content/chatzilla/sm/overlay.xul (../xul/content/sm/overlay.xul)
|
||||
|
|
|
@ -204,7 +204,7 @@ echo ". done"
|
|||
# Make Firefox updates.
|
||||
echo -n " Updating Firefox Extension files"
|
||||
echo -n .
|
||||
safeCommand sed "s|@REVISION@|$VERSION|g" '<' "$XPIFILES/install.rdf" '>' "$XPIROOT/install.rdf"
|
||||
safeCommand $PERL $CONFIGDIR/preprocessor.pl -DCHATZILLA_VERSION=$VERSION "$XPIFILES/install.rdf" '>' "$XPIROOT/install.rdf"
|
||||
echo -n .
|
||||
safeCommand cp "$XPIFILES/chatzilla-window.ico" "$XPIROOT/chrome/icons/default/chatzilla-window.ico"
|
||||
echo -n .
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
#filter substitution
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||
<Description about="urn:mozilla:install-manifest">
|
||||
<!-- core data -->
|
||||
<em:id>{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}</em:id>
|
||||
<em:version>@REVISION@</em:version>
|
||||
<em:version>@CHATZILLA_VERSION@</em:version>
|
||||
|
||||
<!-- target: Mozilla, version 1.0 to 1.8 -->
|
||||
<em:targetApplication>
|
||||
|
|
Загрузка…
Ссылка в новой задаче