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 # Makefile.in uses a misc target through test_addons_TARGET.
10 BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
11 JETPACK_PACKAGE_MANIFESTS += ['source/test/jetpack-package.ini']
13 DIRS += ['source/test/fixtures']
15 EXTRA_JS_MODULES.sdk += [
16 'source/app-extension/bootstrap.js',
19 EXTRA_JS_MODULES.sdk.system += [
20 'source/modules/system/Startup.js',
25 'jetpack-id/index.js',
27 'mozilla-toolkit-versioning/index.js',
28 'mozilla-toolkit-versioning/lib/utils.js',
30 'sdk/addon/installer.js',
31 'sdk/addon/window.js',
34 'sdk/console/plain-text.js',
35 'sdk/console/traceback.js',
36 'sdk/core/disposable.js',
37 'sdk/core/heritage.js',
38 'sdk/core/namespace.js',
39 'sdk/core/observer.js',
40 'sdk/core/promise.js',
41 'sdk/core/reference.js',
42 'sdk/deprecated/unit-test-finder.js',
43 'sdk/deprecated/unit-test.js',
44 'sdk/deprecated/window-utils.js',
45 'sdk/event/chrome.js',
48 'sdk/event/target.js',
52 'sdk/lang/functional.js',
53 'sdk/lang/functional/concurrent.js',
54 'sdk/lang/functional/core.js',
55 'sdk/lang/functional/helpers.js',
57 'sdk/lang/weak-set.js',
59 'sdk/platform/xpcom.js',
60 'sdk/preferences/service.js',
61 'sdk/preferences/utils.js',
62 'sdk/private-browsing.js',
63 'sdk/private-browsing/utils.js',
67 'sdk/system/environment.js',
68 'sdk/system/events.js',
69 'sdk/system/globals.js',
70 'sdk/system/process.js',
71 'sdk/system/runtime.js',
72 'sdk/system/unload.js',
73 'sdk/system/xul-app.js',
74 'sdk/system/xul-app.jsm',
77 'sdk/test/harness.js',
79 'sdk/test/options.js',
82 'sdk/uri/resource.js',
86 'sdk/util/collection.js',
87 'sdk/util/deprecate.js',
88 'sdk/util/dispatcher.js',
91 'sdk/util/sequence.js',
93 'sdk/window/utils.js',
100 commonjs = EXTRA_JS_MODULES.commonjs
103 def get_sources(path):
108 source_dir = commonjs
110 source_dir = source_dir[dir_]
112 sources[key] = source_dir
115 for module in modules:
116 path = module.split('/')[:-1]
118 source_dir = get_sources(path)
119 source_dir += ['source/lib/%s' % module]
122 BUG_COMPONENT = ("Add-on SDK", "General")