tools/code-coverage/moz.build
author Nicolas Silva <nsilva@mozilla.com>
Fri, 10 Aug 2018 17:15:12 +0200
changeset 431013 594a80cf1466e7ee67b6258f8821d11a803468cc
parent 424366 1658ec07186ede58810c09e57a71cad096c05811
child 469166 1402a696dd2524caa908ea6be7ffcbe8645370fb
permissions -rw-r--r--
Bug 1482109 - Use the generic memory pressure observer in gfxPlatfrom. r=sotaro

# -*- 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/.

TESTING_JS_MODULES += ['PerTestCoverageUtils.jsm']

if CONFIG['MOZ_CODE_COVERAGE']:
    XPIDL_MODULE = 'code-coverage'

    XPIDL_SOURCES += [
        'nsICodeCoverage.idl',
    ]

    SOURCES += [
        'CodeCoverageHandler.cpp',
        'nsCodeCoverage.cpp',
        'nsCodeCoverageFactory.cpp',
    ]

    EXPORTS.mozilla += [
        'CodeCoverageHandler.h',
    ]

    LOCAL_INCLUDES += [
        '/ipc/chromium/src',
        '/xpcom/base',
    ]

    include('/ipc/chromium/chromium-config.mozbuild')

    XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']
    MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']

    FINAL_LIBRARY = 'xul'