moz.build (1074B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 with Files("**"): 8 BUG_COMPONENT = ("Firefox", "Theme") 9 10 with Files("ThemeVariableMap.sys.mjs"): 11 BUG_COMPONENT = ("WebExtensions", "Themes") 12 13 MOZ_SRC_FILES += [ 14 "ToolbarIconColor.sys.mjs", 15 ] 16 17 EXTRA_JS_MODULES += [ 18 "BuiltInThemeConfig.sys.mjs", 19 "BuiltInThemes.sys.mjs", 20 "ThemeVariableMap.sys.mjs", 21 ] 22 23 BROWSER_CHROME_MANIFESTS += [ 24 "test/browser/browser.toml", 25 ] 26 27 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"] 28 29 if toolkit == "cocoa": 30 DIRS += ["osx"] 31 elif toolkit == "gtk": 32 DIRS += ["linux"] 33 else: 34 DIRS += ["windows"] 35 36 DIRS += ["addons", "shared/app-marketplace-icons"] 37 38 with Files("osx/**"): 39 SCHEDULES.exclusive = ["macosx"] 40 41 with Files("linux/**"): 42 SCHEDULES.exclusive = ["linux"] 43 44 with Files("windows/**"): 45 SCHEDULES.exclusive = ["windows"]