Bug 1373650. Disable Report Site Issue page action before running page action tests...
[gecko.git] / addon-sdk / moz.build
blobfed937005b56f26c09a9f2626090729e695c2e0d
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.
8 HAS_MISC_RULE = True
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',
23 modules = [
24     'index.js',
25     'jetpack-id/index.js',
26     'method/core.js',
27     'mozilla-toolkit-versioning/index.js',
28     'mozilla-toolkit-versioning/lib/utils.js',
29     'node/os.js',
30     'sdk/addon/installer.js',
31     'sdk/addon/window.js',
32     'sdk/base64.js',
33     'sdk/clipboard.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',
46     'sdk/event/core.js',
47     'sdk/event/dom.js',
48     'sdk/event/target.js',
49     'sdk/event/utils.js',
50     'sdk/frame/utils.js',
51     'sdk/io/file.js',
52     'sdk/lang/functional.js',
53     'sdk/lang/functional/concurrent.js',
54     'sdk/lang/functional/core.js',
55     'sdk/lang/functional/helpers.js',
56     'sdk/lang/type.js',
57     'sdk/lang/weak-set.js',
58     'sdk/net/url.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',
64     'sdk/querystring.js',
65     'sdk/self.js',
66     'sdk/system.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',
75     'sdk/test.js',
76     'sdk/test/assert.js',
77     'sdk/test/harness.js',
78     'sdk/test/loader.js',
79     'sdk/test/options.js',
80     'sdk/test/utils.js',
81     'sdk/timers.js',
82     'sdk/uri/resource.js',
83     'sdk/url.js',
84     'sdk/url/utils.js',
85     'sdk/util/array.js',
86     'sdk/util/collection.js',
87     'sdk/util/deprecate.js',
88     'sdk/util/dispatcher.js',
89     'sdk/util/list.js',
90     'sdk/util/object.js',
91     'sdk/util/sequence.js',
92     'sdk/util/uuid.js',
93     'sdk/window/utils.js',
94     'sdk/zip/utils.js',
95     'test.js',
96     'toolkit/loader.js',
97     'toolkit/require.js',
100 commonjs = EXTRA_JS_MODULES.commonjs
102 sources = {}
103 def get_sources(path):
104     key = '/'.join(path)
105     if key in sources:
106         return sources[key]
108     source_dir = commonjs
109     for dir_ in path:
110         source_dir = source_dir[dir_]
112     sources[key] = source_dir
113     return 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]
121 with Files("**"):
122     BUG_COMPONENT = ("Add-on SDK", "General")