Bug 844270 - Move visual manifests into branding, and set custom background colors for each release. r=glandium
--- a/browser/branding/aurora/Makefile.in
+++ b/browser/branding/aurora/Makefile.in
@@ -64,9 +64,16 @@ BRANDING_FILES := \
document-os2.ico \
$(NULL)
endif
BRANDING_DEST := $(DIST)/branding
BRANDING_TARGET := export
INSTALL_TARGETS += BRANDING
+ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
+VISUALMANIFEST := VisualElementsManifest.xml
+VISUALMANIFEST_FLAGS := -Fsubstitution -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME}
+VISUALMANIFEST_PATH := $(DIST)/bin
+PP_TARGETS += VISUALMANIFEST
+endif
+
include $(topsrcdir)/config/rules.mk
new file mode 100644
--- /dev/null
+++ b/browser/branding/aurora/VisualElementsManifest.xml
@@ -0,0 +1,16 @@
+<Application
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <VisualElements
+ DisplayName="@MOZ_APP_DISPLAYNAME@"
+ Logo="tileresources\VisualElements_logo.png"
+ SmallLogo="tileresources\VisualElements_smalllogo.png"
+ ForegroundText="light"
+ BackgroundColor="#1c112e">
+ <DefaultTile
+ ShortName="@MOZ_APP_DISPLAYNAME@"
+ ShowName="allLogos"
+ />
+ <SplashScreen
+ Image="tileresources\VisualElements_splashscreen.png" />
+ </VisualElements>
+</Application>
--- a/browser/branding/nightly/Makefile.in
+++ b/browser/branding/nightly/Makefile.in
@@ -64,9 +64,16 @@ BRANDING_FILES := \
document-os2.ico \
$(NULL)
endif
BRANDING_DEST := $(DIST)/branding
BRANDING_TARGET := export
INSTALL_TARGETS += BRANDING
+ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
+VISUALMANIFEST := VisualElementsManifest.xml
+VISUALMANIFEST_FLAGS := -Fsubstitution -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME}
+VISUALMANIFEST_PATH := $(DIST)/bin
+PP_TARGETS += VISUALMANIFEST
+endif
+
include $(topsrcdir)/config/rules.mk
new file mode 100644
--- /dev/null
+++ b/browser/branding/nightly/VisualElementsManifest.xml
@@ -0,0 +1,16 @@
+<Application
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <VisualElements
+ DisplayName="@MOZ_APP_DISPLAYNAME@"
+ Logo="tileresources\VisualElements_logo.png"
+ SmallLogo="tileresources\VisualElements_smalllogo.png"
+ ForegroundText="light"
+ BackgroundColor="#001226">
+ <DefaultTile
+ ShortName="@MOZ_APP_DISPLAYNAME@"
+ ShowName="allLogos"
+ />
+ <SplashScreen
+ Image="tileresources\VisualElements_splashscreen.png" />
+ </VisualElements>
+</Application>
--- a/browser/branding/official/Makefile.in
+++ b/browser/branding/official/Makefile.in
@@ -64,9 +64,16 @@ BRANDING_FILES := \
document-os2.ico \
$(NULL)
endif
BRANDING_DEST := $(DIST)/branding
BRANDING_TARGET := export
INSTALL_TARGETS += BRANDING
+ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
+VISUALMANIFEST := VisualElementsManifest.xml
+VISUALMANIFEST_FLAGS := -Fsubstitution -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME}
+VISUALMANIFEST_PATH := $(DIST)/bin
+PP_TARGETS += VISUALMANIFEST
+endif
+
include $(topsrcdir)/config/rules.mk
new file mode 100644
--- /dev/null
+++ b/browser/branding/official/VisualElementsManifest.xml
@@ -0,0 +1,16 @@
+<Application
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <VisualElements
+ DisplayName="@MOZ_APP_DISPLAYNAME@"
+ Logo="tileresources\VisualElements_logo.png"
+ SmallLogo="tileresources\VisualElements_smalllogo.png"
+ ForegroundText="light"
+ BackgroundColor="#1895f5">
+ <DefaultTile
+ ShortName="@MOZ_APP_DISPLAYNAME@"
+ ShowName="allLogos"
+ />
+ <SplashScreen
+ Image="tileresources\VisualElements_splashscreen.png" />
+ </VisualElements>
+</Application>
--- a/browser/branding/unofficial/Makefile.in
+++ b/browser/branding/unofficial/Makefile.in
@@ -64,9 +64,16 @@ BRANDING_FILES := \
document-os2.ico \
$(NULL)
endif
BRANDING_DEST := $(DIST)/branding
BRANDING_TARGET := export
INSTALL_TARGETS += BRANDING
+ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
+VISUALMANIFEST := VisualElementsManifest.xml
+VISUALMANIFEST_FLAGS := -Fsubstitution -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME}
+VISUALMANIFEST_PATH := $(DIST)/bin
+PP_TARGETS += VISUALMANIFEST
+endif
+
include $(topsrcdir)/config/rules.mk
new file mode 100644
--- /dev/null
+++ b/browser/branding/unofficial/VisualElementsManifest.xml
@@ -0,0 +1,16 @@
+<Application
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <VisualElements
+ DisplayName="@MOZ_APP_DISPLAYNAME@"
+ Logo="tileresources\VisualElements_logo.png"
+ SmallLogo="tileresources\VisualElements_smalllogo.png"
+ ForegroundText="light"
+ BackgroundColor="#001226">
+ <DefaultTile
+ ShortName="@MOZ_APP_DISPLAYNAME@"
+ ShowName="allLogos"
+ />
+ <SplashScreen
+ Image="tileresources\VisualElements_splashscreen.png" />
+ </VisualElements>
+</Application>
--- a/browser/metro/shell/Makefile.in
+++ b/browser/metro/shell/Makefile.in
@@ -14,20 +14,13 @@ include $(DEPTH)/config/autoconf.mk
DIRS = commandexecutehandler linktool
ifdef ENABLE_TESTS
DIRS += testing
endif
export::
$(NSINSTALL) $(srcdir)/resources.pri $(DIST)/bin
- $(RM) $(DIST)/bin/VisualElementsManifest.xml
- $(PYTHON) $(topsrcdir)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME} \
- $(srcdir)/VisualElementsManifest.xml.in > $(DIST)/bin/VisualElementsManifest.xml
install::
$(NSINSTALL) $(srcdir)/resources.pri $(DIST)/bin
-# bug 744566
-# $(RM) $(DIST)/bin/resources.pri
-# $(MAKEPRI) new -v -pr $(srcdir)/tileresources -cf $(srcdir)/priconfig.xml -mn $(srcdir)/AppManifest.xml -of $(DIST)/bin/resources.pri -o
-
include $(topsrcdir)/config/rules.mk
deleted file mode 100644
--- a/browser/metro/shell/VisualElementsManifest.xml.in
+++ /dev/null
@@ -1,16 +0,0 @@
-<Application
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <VisualElements
- DisplayName="@MOZ_APP_DISPLAYNAME@"
- Logo="tileresources\VisualElements_logo.png"
- SmallLogo="tileresources\VisualElements_smalllogo.png"
- ForegroundText="light"
- BackgroundColor="#1895f5">
- <DefaultTile
- ShortName="@MOZ_APP_DISPLAYNAME@"
- ShowName="allLogos"
- />
- <SplashScreen
- Image="tileresources\VisualElements_splashscreen.png" />
- </VisualElements>
-</Application>