Bug 1568151 - Replace `target.getInspector()` by `target.getFront("inspector")`....
[gecko.git] / moz.build
blob93c95edf231ce83c3eb79586f21e37ca868b6b99
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', 'Build Config & IDE Support')
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     'taskcluster',
130     'testing/mozbase',
131     'third_party/python',
134 if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
135     CONFIGURE_DEFINE_FILES += [
136         'mozilla-config.h',
137     ]
138     EXPORTS += [
139         '!buildid.h',
140         '!mozilla-config.h',
141         '!source-repo.h',
142     ]
144     GENERATED_FILES += [
145         'buildid.h',
146         'source-repo.h',
147     ]
149     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
150     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
152     DIRS += [
153         'build',
154     ]
156 if CONFIG['PGO_PROFILE_PATH']:
157     profdata_gen = ('merged.profdata.stub', 'merged.profdata')
158     GENERATED_FILES += [
159         profdata_gen
160     ]
161     GENERATED_FILES[profdata_gen].script = 'build/merge_profdata.py'
162     GENERATED_FILES[profdata_gen].inputs = [
163         '/' + CONFIG['PGO_PROFILE_PATH'],
164     ]
166 DIRS += [
167     'mfbt',
170 if CONFIG['MOZ_BUILD_APP']:
171     # Bring in the configuration for the configured application.
172     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
173 else:
174     include('/toolkit/toolkit.mozbuild')
176 CONFIGURE_SUBST_FILES += ['.cargo/config']
178 include('build/templates.mozbuild')