Bug 1603309 - Make sure the Screenshots WebExtension is enabled during performance...
[gecko.git] / moz.build
blob8f6a16e2cb3d5f29fa41048fc70a37eb80f309e7
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/.
7 with Files('AUTHORS'):
8     BUG_COMPONENT = ('mozilla.org', 'Licensing')
10 with Files('LICENSE'):
11     BUG_COMPONENT = ('mozilla.org', 'Licensing')
13 with Files('LEGAL'):
14     BUG_COMPONENT = ('mozilla.org', 'Licensing')
16 with Files('aclocal.m4'):
17     BUG_COMPONENT = ('Firefox Build System', 'General')
19 with Files('Cargo.*'):
20     BUG_COMPONENT = ('Firefox Build System', 'General')
22 with Files('client.*'):
23     BUG_COMPONENT = ('Firefox Build System', 'General')
25 with Files('CLOBBER'):
26     BUG_COMPONENT = ('Firefox Build System', 'General')
28 with Files('*configure*'):
29     BUG_COMPONENT = ('Firefox Build System', 'General')
31 with Files('mach'):
32     BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
34 with Files('*moz*'):
35     BUG_COMPONENT = ('Firefox Build System', 'General')
37 with Files('GNUmakefile'):
38     BUG_COMPONENT = ('Firefox Build System', 'General')
40 with Files('*gradle*'):
41     BUG_COMPONENT = ('Firefox for Android', 'General')
42     SCHEDULES.exclusive = ['android']
44 with Files('*.json'):
45     BUG_COMPONENT = ('Firefox Build System', 'General')
47 with Files('**/l10n.toml'):
48     BUG_COMPONENT = ('Core', 'Localization')
49     FINAL = True
51 with Files('README.txt'):
52     BUG_COMPONENT = ('Core', 'General')
54 with Files("nsprpub/**"):
55     BUG_COMPONENT = ("NSPR", "NSPR")
57 with Files('**/Makefile.in'):
58     BUG_COMPONENT = ('Firefox Build System', 'General')
59     FINAL = True
61 with Files("**/*.js"):
62     SCHEDULES.inclusive += ['docs']
64 with Files("**/*.jsm"):
65     SCHEDULES.inclusive += ['docs']
67 with Files("**/*.rst"):
68     SCHEDULES.inclusive += ['docs']
70 with Files("**/*.md"):
71     SCHEDULES.inclusive += ['docs']
73 with Files("**/reftest.list"):
74     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
76 with Files("**/crashtest*.list"):
77     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
79 with Files("**/mochitest.ini"):
80     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
82 with Files("**/browser.ini"):
83     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
85 with Files("**/chrome.ini"):
86     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
88 with Files("**/xpcshell.ini"):
89     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
91 with Files("**/reftest*/**"):
92     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
94 with Files("**/crashtest*/**"):
95     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
97 with Files("**/mochitest*/**"):
98     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
100 with Files("**/xpcshell/**"):
101     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
103 with Files("**/tests/**"):
104     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
106 with Files("**/test/**"):
107     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
109 with Files("**/unit/**"):
110     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
112 with Files("**/browser/tools/mozscreenshots/**"):
113     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
115 with Files("**/devtools/shared/test-helpers/**"):
116     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
118 CONFIGURE_SUBST_FILES += [
119     'config/autoconf.mk',
120     'config/emptyvars.mk',
123 if CONFIG['ENABLE_CLANG_PLUGIN']:
124     DIRS += ['build/clang-plugin']
126 DIRS += [
127     'config',
128     'python',
129     'testing/mozbase',
130     'third_party/python',
133 if not CONFIG['JS_STANDALONE']:
134     DIRS += ['taskcluster']
136 if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
137     CONFIGURE_DEFINE_FILES += [
138         'mozilla-config.h',
139     ]
140     EXPORTS += [
141         '!buildid.h',
142         '!mozilla-config.h',
143         '!source-repo.h',
144     ]
146     GENERATED_FILES += [
147         'buildid.h',
148         'source-repo.h',
149     ]
151     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
152     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
154     DIRS += [
155         'build',
156     ]
158 DIRS += [
159     'mfbt',
162 if CONFIG['MOZ_BUILD_APP']:
163     # Bring in the configuration for the configured application.
164     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
165 else:
166     include('/toolkit/toolkit.mozbuild')
168 OBJDIR_PP_FILES['.cargo'] += ['.cargo/config.in']
170 DEFINES['top_srcdir'] = TOPSRCDIR
172 include('build/templates.mozbuild')