michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsITelemetry.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'telemetry' michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'ProcessedStack.h', michael@0: 'Telemetry.h', michael@0: 'ThreadHangStats.h', michael@0: ] michael@0: michael@0: SOURCES += [ michael@0: 'Telemetry.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'TelemetryStartup.js', michael@0: 'TelemetryStartup.manifest' michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'TelemetryFile.jsm', michael@0: 'TelemetryLog.jsm', michael@0: 'TelemetryStopwatch.jsm', michael@0: 'ThirdPartyCookieProbe.jsm', michael@0: ] michael@0: michael@0: EXTRA_PP_JS_MODULES += [ michael@0: 'TelemetryPing.jsm', michael@0: 'UITelemetry.jsm', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: GENERATED_FILES = [ michael@0: 'TelemetryHistogramData.inc', michael@0: ] michael@0: michael@0: if CONFIG['MOZILLA_OFFICIAL']: michael@0: DEFINES['MOZILLA_OFFICIAL'] = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/xpcom/build', michael@0: '/xpcom/threads', michael@0: ] michael@0: