Bug 1398908 - Add automated test that uses nonexistent script from extension JAR...
[gecko.git] / moz.build
blob2ff5e064b6d5aa005cf318cb7a71227039babfec
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 = ('Core', 'Build Config')
19 with Files('client.*'):
20     BUG_COMPONENT = ('Core', 'Build Config')
22 with Files('CLOBBER'):
23     BUG_COMPONENT = ('Core', 'Build Config')
25 with Files('*configure*'):
26     BUG_COMPONENT = ('Core', 'Build Config')
28 with Files('mach'):
29     BUG_COMPONENT = ('Core', 'mach')
31 with Files('*moz*'):
32     BUG_COMPONENT = ('Core', 'Build Config')
34 with Files('GNUmakefile'):
35     BUG_COMPONENT = ('Core', 'Build Config')
37 with Files('*gradle*'):
38     BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')
39     SCHEDULES.exclusive = ['android']
41 with Files('**/l10n.toml'):
42     BUG_COMPONENT = ('Core', 'Localization')
43     FINAL = True
45 with Files('README.txt'):
46     BUG_COMPONENT = ('Core', 'General')
48 with Files('**/Makefile.in'):
49     BUG_COMPONENT = ('Core', 'Build Config')
50     FINAL = True
52 with Files("**/*.js"):
53     SCHEDULES.inclusive += ['test-verification']
55 with Files("**/*.html"):
56     SCHEDULES.inclusive += ['test-verification']
58 with Files("**/*.xhtml"):
59     SCHEDULES.inclusive += ['test-verification']
61 with Files("**/*.xul"):
62     SCHEDULES.inclusive += ['test-verification']
64 FILES_PER_UNIFIED_FILE = 1
66 CONFIGURE_SUBST_FILES += [
67     'config/autoconf.mk',
68     'config/emptyvars.mk',
71 if CONFIG['ENABLE_CLANG_PLUGIN']:
72     DIRS += ['build/clang-plugin']
74 DIRS += [
75     'config',
76     'python',
77     'taskcluster',
78     'testing/mozbase',
79     'third_party/python',
82 if CONFIG['MOZ_WIDGET_TOOLKIT'] or not CONFIG['MOZ_BUILD_APP']:
83     # These python manifests are included here so they get picked up without an objdir
84     PYTHON_UNITTEST_MANIFESTS += [
85         'layout/tools/reftest/selftest/python.ini',
86         'testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini',
87         'testing/mochitest/tests/python/python.ini',
88     ]
90     CONFIGURE_SUBST_FILES += [
91         'tools/update-packaging/Makefile',
92     ]
93     CONFIGURE_DEFINE_FILES += [
94         'mozilla-config.h',
95     ]
96     EXPORTS += [
97         '!buildid.h',
98         '!mozilla-config.h',
99         '!source-repo.h',
100     ]
102     GENERATED_FILES += [
103         'buildid.h',
104         'source-repo.h',
105     ]
107     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
108     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
110     DIRS += [
111         'build',
112         'tools',
113     ]
115 if CONFIG['COMPILE_ENVIRONMENT'] and (CONFIG['MOZ_WIDGET_TOOLKIT'] or
116                                       CONFIG['JS_STANDALONE']):
117     DIRS += ['js/src']
119 DIRS += [
120     'config/external/fdlibm',
121     'config/external/nspr',
122     'config/external/zlib',
123     'memory',
124     'mfbt',
125     'mozglue',
128 if CONFIG['MOZ_WIDGET_TOOLKIT']:
129     DIRS += ['xpcom/xpidl']
131 if CONFIG['USE_ICU']:
132     DIRS += ['config/external/icu']
134 if CONFIG['COMPILE_ENVIRONMENT']:
135     if CONFIG['MOZ_WIDGET_TOOLKIT']:
136         DIRS += [
137             'config/external',
138             'security',
139         ]
141     if CONFIG['BUILD_CTYPES']:
142         DIRS += ['config/external/ffi']
144 else:
145     TEST_DIRS += ['js/src/tests']
147 if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
148     # Bring in the configuration for the configured application.
149     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
151 CONFIGURE_SUBST_FILES += ['.cargo/config']
153 include('build/templates.mozbuild')