accessible/moz.build
author Emilio Cobos Álvarez <emilio@crisal.io>
Sun, 26 May 2019 13:10:00 +0000
changeset 475600 3415f556123b167f1bcde81e76d18037db3b2cb7
parent 437136 1b683d101ee9eae43d7fee0bf2c0b6065c50bb16
child 489301 51bf6a97396d96ddb82fa91c2cf9bd9f5bc9ae06
permissions -rw-r--r--
Bug 1554433 - Move system colors to values::specified::color. r=xidorn This should be an idempotent patch. The way to come up with this patch has been: * Run the first script attached to the bug and pipe it to xclip, then paste it in color.rs * Add the relevant #[derive] annotations and remove the color.mako.rs definition. * Reorder the values to match the ColorID definition, on which some widget prefs and caching stuff relies on. * Manually port some documentation from nsLookAndFeel.h * Run `rg 'eColorID_' | cut -d : -f 1 | sort | uniq >files` * Run the second script attached to the bug. * Manually fix usage of `LAST_COLOR` (adding the `End` variant), and adding casts to integer as needed. * Add an static assert so that people remember to update the prefs, rather than a comment on the definition :) Differential Revision: https://phabricator.services.mozilla.com/D32610

# -*- 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/.

toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']

if 'gtk' in toolkit:
    DIRS += ['atk']
elif toolkit == 'windows':
    DIRS += ['windows']
elif toolkit == 'cocoa':
    DIRS += ['mac']
elif toolkit == 'android':
    DIRS += ['android']
else:
    DIRS += ['other']

DIRS += [ 'aom',
          'base',
          'generic',
          'html',
          'interfaces',
          'ipc',
          'jsat',
          'xpcom'
]

if CONFIG['MOZ_XUL']:
    DIRS += ['xul']

TEST_DIRS += ['tests/mochitest']

BROWSER_CHROME_MANIFESTS += [
  'tests/browser/bounds/browser.ini',
  'tests/browser/browser.ini',
  'tests/browser/e10s/browser.ini',
  'tests/browser/events/browser.ini',
  'tests/browser/general/browser.ini',
  'tests/browser/scroll/browser.ini',
  'tests/browser/states/browser.ini',
  'tests/browser/tree/browser.ini'
]

with Files("**"):
    BUG_COMPONENT = ("Core", "Disability Access APIs")