summaryrefslogtreecommitdiffstats
path: root/browser/branding/shared/branding.mozbuild
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-18 10:38:55 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-18 10:38:55 +0100
commit5839763c827cc35973e419026f926e9b8ffc118d (patch)
tree11fd29c791adc491430a7a9b516224c2a724868e /browser/branding/shared/branding.mozbuild
parent83c4b04a70d2319d4c292e7aa0c8872e7c1cd7fa (diff)
parent45f2fcd80d2a7d536e8b486c18415a337b56cb46 (diff)
downloadUXP-5839763c827cc35973e419026f926e9b8ffc118d.tar
UXP-5839763c827cc35973e419026f926e9b8ffc118d.tar.gz
UXP-5839763c827cc35973e419026f926e9b8ffc118d.tar.lz
UXP-5839763c827cc35973e419026f926e9b8ffc118d.tar.xz
UXP-5839763c827cc35973e419026f926e9b8ffc118d.zip
Merge branch 'master' into ported-moebius
# Conflicts: # browser/installer/windows/nsis/stub.nsi
Diffstat (limited to 'browser/branding/shared/branding.mozbuild')
-rw-r--r--browser/branding/shared/branding.mozbuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/browser/branding/shared/branding.mozbuild b/browser/branding/shared/branding.mozbuild
new file mode 100644
index 000000000..29d25094f
--- /dev/null
+++ b/browser/branding/shared/branding.mozbuild
@@ -0,0 +1,56 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# 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/.
+
+@template
+def ApplicationBranding():
+ JS_PREFERENCE_PP_FILES += [
+ 'pref/firefox-branding.js',
+ ]
+
+ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+ FINAL_TARGET_FILES['..'] += [
+ 'basilisk.VisualElementsManifest.xml',
+ ]
+ FINAL_TARGET_FILES.VisualElements += [
+ 'VisualElements_150.png',
+ 'VisualElements_70.png',
+ ]
+ BRANDING_FILES += [
+ '../shared/newtab.ico',
+ '../shared/newwindow.ico',
+ '../shared/pbmode.ico',
+ 'appname.bmp',
+ 'branding.nsi',
+ 'document.ico',
+ 'firefox.ico',
+ 'wizHeader.bmp',
+ 'wizHeaderRTL.bmp',
+ 'wizWatermark.bmp',
+ ]
+ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ BRANDING_FILES += [
+ '../shared/dsstore',
+ 'disk.icns',
+ 'document.icns',
+ 'background.png',
+ 'firefox.icns',
+ ]
+ elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
+ BRANDING_FILES += [
+ 'default16.png',
+ 'default32.png',
+ 'default48.png',
+ 'mozicon128.png',
+ ]
+ FINAL_TARGET_FILES.icons += ['mozicon128.png']
+ FINAL_TARGET_FILES.chrome.icons.default += [
+ 'default16.png',
+ 'default32.png',
+ 'default48.png',
+ ]
+ DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
+ DEFINES['MOZ_BRANDING_DIRECTORY'] = CONFIG['MOZ_BRANDING_DIRECTORY']
+ DEFINES['MOZILLA_UAVERSION_U'] = CONFIG['MOZILLA_UAVERSION_U'] \ No newline at end of file