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