toolkit/themes/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 30 Oct 2015 11:31:14 +0900
changeset 306652 8f3b9c2b450c44d6835e88bf991fdf492c0185b0
parent 305938 98befa2ee036966fc2f21b674ed3c5dae680372d
child 307742 67a9dd1470e731be61744b89693dd2e4103fd9e7
permissions -rw-r--r--
Bug 1222323 - Avoid passing extra defines to the compiler from config.mk. r=gps C/C++ code should not be relying on XPI_NAME or AB_CD being defined, so moving them out works.

# -*- Mode: python; c-basic-offset: 4; 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/.

# Theme Selection
#
# Shared (toolkit/themes/shared/) is always included.
#
# MacOS X                 osx (toolkit/themes/osx)
# Windows                 windows (toolkit/themes/windows) +
#                         non-mac (toolkit/themes/shared/non-mac)
# GNOME/Linux             linux (toolkit/themes/linux)
#                         non-mac (toolkit/themes/shared/non-mac)
# faststripe              windows + faststripe (no native theme components)

toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']

if toolkit == 'cocoa':
    DIRS += ['osx']
elif toolkit in ('gtk2', 'gtk3', 'qt'):
    DIRS += ['linux']
else:
    DIRS += ['windows']

    if CONFIG['MOZ_THEME_FASTSTRIPE']:
        DIRS += ['faststripe/global']

with Files('**'):
    BUG_COMPONENT = ('Toolkit', 'Themes')