addon-sdk/moz.build
author Kris Maglione <maglione.k@gmail.com>
Wed, 02 Aug 2017 14:15:36 -0700
changeset 641187 af9341bbfd7c6c882dced65b1c02ade99a8159d1
parent 641186 2c80406822f134a806f93b39d7a8458ef7942159
child 641188 311c10a72593c99a64dfe750bc40496a5889e0b7
permissions -rw-r--r--
Bug 1350646: Part 7 - Remove SDK hotkey modules. r?Mossop MozReview-Commit-ID: JJunKMZwspb

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.

# Makefile.in uses a misc target through test_addons_TARGET.
HAS_MISC_RULE = True

BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
JETPACK_PACKAGE_MANIFESTS += ['source/test/jetpack-package.ini']

DIRS += ['source/test/fixtures']

EXTRA_JS_MODULES.sdk += [
    'source/app-extension/bootstrap.js',
]

EXTRA_JS_MODULES.sdk.system += [
    'source/modules/system/Startup.js',
]

modules = [
    'framescript/FrameScriptManager.jsm',
    'framescript/content.jsm',
    'framescript/manager.js',
    'framescript/util.js',
    'index.js',
    'jetpack-id/index.js',
    'method/core.js',
    'method/test/browser.js',
    'method/test/common.js',
    'mozilla-toolkit-versioning/index.js',
    'mozilla-toolkit-versioning/lib/utils.js',
    'node/os.js',
    'sdk/addon/installer.js',
    'sdk/addon/window.js',
    'sdk/base64.js',
    'sdk/browser/events.js',
    'sdk/clipboard.js',
    'sdk/console/plain-text.js',
    'sdk/console/traceback.js',
    'sdk/content/content-worker.js',
    'sdk/content/content.js',
    'sdk/content/events.js',
    'sdk/content/l10n-html.js',
    'sdk/content/loader.js',
    'sdk/content/mod.js',
    'sdk/content/page-mod.js',
    'sdk/content/sandbox.js',
    'sdk/content/sandbox/events.js',
    'sdk/content/tab-events.js',
    'sdk/content/thumbnail.js',
    'sdk/content/utils.js',
    'sdk/content/worker-child.js',
    'sdk/content/worker.js',
    'sdk/core/disposable.js',
    'sdk/core/heritage.js',
    'sdk/core/namespace.js',
    'sdk/core/observer.js',
    'sdk/core/promise.js',
    'sdk/core/reference.js',
    'sdk/deprecated/api-utils.js',
    'sdk/deprecated/events/assembler.js',
    'sdk/deprecated/sync-worker.js',
    'sdk/deprecated/unit-test-finder.js',
    'sdk/deprecated/unit-test.js',
    'sdk/deprecated/window-utils.js',
    'sdk/dom/events-shimmed.js',
    'sdk/dom/events.js',
    'sdk/event/chrome.js',
    'sdk/event/core.js',
    'sdk/event/dom.js',
    'sdk/event/target.js',
    'sdk/event/utils.js',
    'sdk/frame/utils.js',
    'sdk/fs/path.js',
    'sdk/indexed-db.js',
    'sdk/io/buffer.js',
    'sdk/io/byte-streams.js',
    'sdk/io/file.js',
    'sdk/io/fs.js',
    'sdk/io/stream.js',
    'sdk/io/text-streams.js',
    'sdk/l10n.js',
    'sdk/l10n/core.js',
    'sdk/l10n/html.js',
    'sdk/l10n/json/core.js',
    'sdk/l10n/loader.js',
    'sdk/l10n/locale.js',
    'sdk/l10n/plural-rules.js',
    'sdk/l10n/prefs.js',
    'sdk/l10n/properties/core.js',
    'sdk/lang/functional.js',
    'sdk/lang/functional/concurrent.js',
    'sdk/lang/functional/core.js',
    'sdk/lang/functional/helpers.js',
    'sdk/lang/type.js',
    'sdk/lang/weak-set.js',
    'sdk/loader/sandbox.js',
    'sdk/messaging.js',
    'sdk/model/core.js',
    'sdk/net/url.js',
    'sdk/net/xhr.js',
    'sdk/notifications.js',
    'sdk/output/system.js',
    'sdk/page-mod.js',
    'sdk/page-mod/match-pattern.js',
    'sdk/passwords.js',
    'sdk/passwords/utils.js',
    'sdk/platform/xpcom.js',
    'sdk/preferences/event-target.js',
    'sdk/preferences/native-options.js',
    'sdk/preferences/service.js',
    'sdk/preferences/utils.js',
    'sdk/private-browsing.js',
    'sdk/private-browsing/utils.js',
    'sdk/querystring.js',
    'sdk/remote/child.js',
    'sdk/remote/core.js',
    'sdk/remote/parent.js',
    'sdk/remote/utils.js',
    'sdk/request.js',
    'sdk/selection.js',
    'sdk/self.js',
    'sdk/simple-prefs.js',
    'sdk/simple-storage.js',
    'sdk/stylesheet/style.js',
    'sdk/stylesheet/utils.js',
    'sdk/system.js',
    'sdk/system/environment.js',
    'sdk/system/events-shimmed.js',
    'sdk/system/events.js',
    'sdk/system/globals.js',
    'sdk/system/process.js',
    'sdk/system/runtime.js',
    'sdk/system/unload.js',
    'sdk/system/xul-app.js',
    'sdk/system/xul-app.jsm',
    'sdk/tab/events.js',
    'sdk/tabs.js',
    'sdk/tabs/common.js',
    'sdk/tabs/events.js',
    'sdk/tabs/helpers.js',
    'sdk/tabs/namespace.js',
    'sdk/tabs/observer.js',
    'sdk/tabs/tab-fennec.js',
    'sdk/tabs/tab-firefox.js',
    'sdk/tabs/tab.js',
    'sdk/tabs/tabs-firefox.js',
    'sdk/tabs/utils.js',
    'sdk/tabs/worker.js',
    'sdk/test.js',
    'sdk/test/assert.js',
    'sdk/test/harness.js',
    'sdk/test/httpd.js',
    'sdk/test/loader.js',
    'sdk/test/memory.js',
    'sdk/test/options.js',
    'sdk/test/runner.js',
    'sdk/test/utils.js',
    'sdk/timers.js',
    'sdk/uri/resource.js',
    'sdk/url.js',
    'sdk/url/utils.js',
    'sdk/util/array.js',
    'sdk/util/collection.js',
    'sdk/util/contract.js',
    'sdk/util/deprecate.js',
    'sdk/util/dispatcher.js',
    'sdk/util/list.js',
    'sdk/util/match-pattern.js',
    'sdk/util/object.js',
    'sdk/util/rules.js',
    'sdk/util/sequence.js',
    'sdk/util/uuid.js',
    'sdk/view/core.js',
    'sdk/window/browser.js',
    'sdk/window/events.js',
    'sdk/window/helpers.js',
    'sdk/window/namespace.js',
    'sdk/window/utils.js',
    'sdk/windows.js',
    'sdk/windows/fennec.js',
    'sdk/windows/firefox.js',
    'sdk/windows/observer.js',
    'sdk/windows/tabs-fennec.js',
    'sdk/worker/utils.js',
    'sdk/zip/utils.js',
    'test.js',
    'toolkit/loader.js',
    'toolkit/require.js',
]

commonjs = EXTRA_JS_MODULES.commonjs

sources = {}
def get_sources(path):
    key = '/'.join(path)
    if key in sources:
        return sources[key]

    source_dir = commonjs
    for dir_ in path:
        source_dir = source_dir[dir_]

    sources[key] = source_dir
    return source_dir

for module in modules:
    path = module.split('/')[:-1]

    source_dir = get_sources(path)
    source_dir += ['source/lib/%s' % module]

with Files("**"):
    BUG_COMPONENT = ("Add-on SDK", "General")