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
7TESTING_JS_MODULES += ['PerTestCoverageUtils.jsm']
8
9if CONFIG['MOZ_CODE_COVERAGE']:
10    XPIDL_MODULE = 'code-coverage'
11
12    XPIDL_SOURCES += [
13        'nsICodeCoverage.idl',
14    ]
15
16    SOURCES += [
17        'CodeCoverageHandler.cpp',
18        'nsCodeCoverage.cpp',
19    ]
20
21    XPCOM_MANIFESTS += [
22        'components.conf',
23    ]
24
25    EXPORTS.mozilla += [
26        'CodeCoverageHandler.h',
27    ]
28
29    LOCAL_INCLUDES += [
30        '/ipc/chromium/src',
31        '/xpcom/base',
32    ]
33
34    include('/ipc/chromium/chromium-config.mozbuild')
35
36    XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']
37    MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']
38
39    FINAL_LIBRARY = 'xul'
40