summaryrefslogtreecommitdiff
path: root/components/addons/moz.build
blob: 151008dff5a9e650162456056bf41949cc042cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# This is used in multiple places, so is defined here to avoid it getting
# out of sync.
DEFINES['MOZ_EXTENSIONS_DB_SCHEMA'] = 16

if CONFIG['MC_APP_ID']:
  DEFINES['MC_APP_ID'] = CONFIG['MC_APP_ID']

# Additional debugging info is exposed in debug builds
if CONFIG['MOZ_EM_DEBUG']:
    DEFINES['MOZ_EM_DEBUG'] = 1

XPIDL_SOURCES += [
    'public/amIAddonManager.idl',
    'public/amIAddonPathService.idl',
    'public/amIWebInstaller.idl',
    'public/amIWebInstallListener.idl',
]

EXPORTS.mozilla += ['src/AddonPathService.h']

SOURCES += ['src/AddonPathService.cpp']

EXTRA_COMPONENTS += [
    'extensions.manifest',
    'src/addonManager.js',
    'src/amContentHandler.js',
    'src/amInstallTrigger.js',
    'src/amWebInstallListener.js',
]

EXTRA_JS_MODULES += [
    'src/ChromeManifestParser.jsm',
    'src/DeferredSave.jsm',
    'src/LightweightThemeConsumer.jsm',
    'src/LightweightThemeManager.jsm',
]

EXTRA_PP_JS_MODULES += [
    'src/AddonManager.jsm',
]

EXTRA_JS_MODULES.addons += [
    'src/AddonLogging.jsm',
    'src/AddonRepository_SQLiteMigrator.jsm',
    'src/Content.js',
    'src/LightweightThemeImageOptimizer.jsm',
    'src/PluginProvider.jsm',
    'src/SpellCheckDictionaryBootstrap.js',
]

EXTRA_PP_JS_MODULES.addons += [
    'src/AddonRepository.jsm',
    'src/AddonUpdateChecker.jsm',
    'src/XPIProvider.jsm',
    'src/XPIProviderUtils.js',
]

XPIDL_MODULE = 'extensions'
FINAL_LIBRARY = 'xul'
JAR_MANIFESTS += ['jar.mn']