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/.
6
7SPHINX_TREES['addon-manager'] = 'docs'
8
9if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
10    DEFINES['MOZ_FENNEC'] = True
11
12DIRS += ['internal']
13TEST_DIRS += ['test']
14
15XPIDL_SOURCES += [
16    'amIAddonManager.idl',
17    'amIAddonPathService.idl',
18    'amIWebInstaller.idl',
19    'amIWebInstallListener.idl',
20]
21
22XPIDL_MODULE = 'extensions'
23
24EXTRA_COMPONENTS += [
25    'addonManager.js',
26    'amContentHandler.js',
27    'amInstallTrigger.js',
28    'amWebAPI.js',
29    'amWebInstallListener.js',
30    'nsBlocklistService.js',
31    'nsBlocklistServiceContent.js',
32]
33
34EXTRA_PP_COMPONENTS += [
35    'extensions.manifest',
36]
37
38EXTRA_JS_MODULES += [
39    'AddonManager.jsm',
40    'ChromeManifestParser.jsm',
41    'DeferredSave.jsm',
42    'LightweightThemeManager.jsm',
43]
44
45JAR_MANIFESTS += ['jar.mn']
46
47EXPORTS.mozilla += [
48    'AddonContentPolicy.h',
49    'AddonManagerWebAPI.h',
50    'AddonPathService.h',
51]
52
53UNIFIED_SOURCES += [
54    'AddonContentPolicy.cpp',
55    'AddonManagerWebAPI.cpp',
56    'AddonPathService.cpp',
57]
58
59LOCAL_INCLUDES += [
60    '/dom/base',
61]
62
63FINAL_LIBRARY = 'xul'
64
65with Files('**'):
66    BUG_COMPONENT = ('Toolkit', 'Add-ons Manager')
67