Skip to content

Commit

Permalink
Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build…
Browse files Browse the repository at this point in the history
… files; r=ted

Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
  • Loading branch information
indygreg committed Feb 6, 2014
1 parent 78f55f7 commit afdb724
Show file tree
Hide file tree
Showing 93 changed files with 97 additions and 495 deletions.
8 changes: 0 additions & 8 deletions netwerk/test/browser/moz.build

This file was deleted.

8 changes: 0 additions & 8 deletions netwerk/test/mochitests/moz.build

This file was deleted.

4 changes: 3 additions & 1 deletion netwerk/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
# 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/.

TEST_TOOL_DIRS += ['httpserver', 'browser', 'mochitests']
TEST_TOOL_DIRS += ['httpserver']

FAIL_ON_WARNINGS = True

BROWSER_CHROME_MANIFESTS += ['browser/browser.ini']
MOCHITEST_MANIFESTS += ['mochitests/mochitest.ini']
XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']

# FIXME/bug 575918: out-of-process xpcshell is broken on OS X
Expand Down
4 changes: 2 additions & 2 deletions toolkit/components/aboutmemory/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# 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/.

TEST_DIRS += ['tests']
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']
8 changes: 0 additions & 8 deletions toolkit/components/aboutmemory/tests/moz.build

This file was deleted.

4 changes: 2 additions & 2 deletions toolkit/components/alerts/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['test']
MOCHITEST_MANIFESTS += ['test/mochitest.ini']

XPIDL_SOURCES += [
'nsIAlertsService.idl',
Expand All @@ -21,4 +21,4 @@ include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'toolkitcomps'

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']
8 changes: 0 additions & 8 deletions toolkit/components/alerts/test/moz.build

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/components/autocomplete/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['tests']
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']

XPIDL_SOURCES += [
'nsIAutoCompleteController.idl',
Expand Down
7 changes: 0 additions & 7 deletions toolkit/components/autocomplete/tests/moz.build

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/components/captivedetect/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['test']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

XPIDL_SOURCES += [
'nsICaptivePortalDetector.idl',
Expand Down
7 changes: 0 additions & 7 deletions toolkit/components/captivedetect/test/moz.build

This file was deleted.

7 changes: 6 additions & 1 deletion toolkit/components/commandlines/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
# 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/.

TEST_DIRS += ['test']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

if CONFIG['OS_ARCH'] == 'WINNT':
XPCSHELL_TESTS_MANIFESTS += ['test/unit_win/xpcshell.ini']
elif CONFIG['OS_ARCH'] != 'Darwin':
XPCSHELL_TESTS_MANIFESTS += ['test/unit_unix/xpcshell.ini']

XPIDL_SOURCES += [
'nsICommandLine.idl',
Expand Down
13 changes: 0 additions & 13 deletions toolkit/components/commandlines/test/moz.build

This file was deleted.

4 changes: 2 additions & 2 deletions toolkit/components/console/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# 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/.

TEST_DIRS += ['tests']
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']

EXTRA_COMPONENTS += [
'jsconsole-clhandler.js',
'jsconsole-clhandler.manifest',
]

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']
8 changes: 0 additions & 8 deletions toolkit/components/console/tests/moz.build

This file was deleted.

5 changes: 4 additions & 1 deletion toolkit/components/contentprefs/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# 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/.

TEST_DIRS += ['tests']
XPCSHELL_TESTS_MANIFESTS += [
'tests/unit/xpcshell.ini',
'tests/unit_cps2/xpcshell.ini',
]

EXTRA_COMPONENTS += [
'nsContentPrefService.js',
Expand Down
7 changes: 0 additions & 7 deletions toolkit/components/contentprefs/tests/moz.build

This file was deleted.

6 changes: 5 additions & 1 deletion toolkit/components/downloads/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
# 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/.

TEST_DIRS += ['test']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

if not CONFIG['MOZ_JSDOWNLOADS']:
TEST_DIRS += ['test/browser']
XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini']

XPIDL_SOURCES += [
'nsIApplicationReputation.idl',
Expand Down
11 changes: 0 additions & 11 deletions toolkit/components/downloads/test/moz.build

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/components/feeds/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['test']
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']

XPIDL_SOURCES += [
'nsIFeed.idl',
Expand Down
8 changes: 0 additions & 8 deletions toolkit/components/feeds/test/moz.build

This file was deleted.

6 changes: 3 additions & 3 deletions toolkit/components/filepicker/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ if CONFIG['MOZ_XUL'] and \
EXTRA_PP_COMPONENTS += [
'nsFilePicker.manifest',
]
DIRS += [
'test',
XPCSHELL_TESTS_MANIFESTS += [
'test/unit/xpcshell.ini',
]
FINAL_LIBRARY = 'xul'

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']
7 changes: 0 additions & 7 deletions toolkit/components/filepicker/test/moz.build

This file was deleted.

4 changes: 3 additions & 1 deletion toolkit/components/jsdownloads/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ['public', 'src']
TEST_DIRS += ['test']

TEST_DIRS += ['test/data']

XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
9 changes: 0 additions & 9 deletions toolkit/components/jsdownloads/test/moz.build

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/components/mediasniffer/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['test']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

EXPORTS += [
'nsMediaSniffer.h',
Expand Down
7 changes: 0 additions & 7 deletions toolkit/components/mediasniffer/test/moz.build

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/components/microformats/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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/.

TEST_DIRS += ['tests']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']

EXTRA_JS_MODULES += [
'Microformats.js',
Expand Down
8 changes: 0 additions & 8 deletions toolkit/components/microformats/tests/moz.build

This file was deleted.

3 changes: 2 additions & 1 deletion toolkit/components/osfile/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ DIRS += [
'modules',
]

TEST_DIRS += ['tests']
MOCHITEST_CHROME_MANIFESTS += ['tests/mochi/chrome.ini']
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']

EXTRA_PP_JS_MODULES += [
'osfile.jsm',
Expand Down
8 changes: 0 additions & 8 deletions toolkit/components/osfile/tests/mochi/moz.build

This file was deleted.

9 changes: 0 additions & 9 deletions toolkit/components/osfile/tests/moz.build

This file was deleted.

7 changes: 5 additions & 2 deletions toolkit/components/passwordmgr/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# 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/.

TEST_DIRS += ['test']
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

XPIDL_SOURCES += [
'nsILoginInfo.idl',
Expand Down Expand Up @@ -34,4 +37,4 @@ EXTRA_JS_MODULES += [
'LoginManagerContent.jsm',
]

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']
13 changes: 0 additions & 13 deletions toolkit/components/passwordmgr/test/moz.build

This file was deleted.

5 changes: 3 additions & 2 deletions toolkit/components/prompts/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ['src']
TEST_DIRS += ['test']

JAR_MANIFESTS += ['jar.mn']
MOCHITEST_MANIFESTS += ['test/mochitest.ini']

JAR_MANIFESTS += ['jar.mn']
8 changes: 0 additions & 8 deletions toolkit/components/prompts/test/moz.build

This file was deleted.

Loading

0 comments on commit afdb724

Please sign in to comment.