branding-common.mozbuild 1.14 KB
Newer Older
1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
3
4
5
6
# 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/.

7
8
@template
def FirefoxBranding():
9
10
11
12
13
14
15
16
    if CONFIG['MOZ_BRANDING_DIRECTORY'] == 'browser/branding/official':
        JS_PREFERENCE_PP_FILES += [
            'pref/firefox-branding.js',
        ]
    else:
        JS_PREFERENCE_FILES += [
            'pref/firefox-branding.js',
        ]
17
18

    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
19
20
21
22
23
24
25
        FINAL_TARGET_FILES['..'] += [
            'firefox.VisualElementsManifest.xml',
        ]
        FINAL_TARGET_FILES.VisualElements += [
            'VisualElements_150.png',
            'VisualElements_70.png',
        ]
26
    elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
27
        FINAL_TARGET_FILES.chrome.icons.default += [
28
            'default128.png',
29
            'default16.png',
30
            'default256.png',
31
32
            'default32.png',
            'default48.png',
33
            'default512.png',
34
            'default64.png',
35
        ]