2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:01 -08:00
|
|
|
# vim: set filetype=python:
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-12 10:20:41 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_PROFILER_SPS']:
|
2013-03-19 11:47:00 -07:00
|
|
|
MODULE = 'profiler'
|
2013-03-12 10:20:41 -07:00
|
|
|
XPIDL_SOURCES += [
|
2013-03-21 02:17:23 -07:00
|
|
|
'nsIProfileSaveEvent.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsIProfiler.idl',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfilerFunc.h',
|
2013-05-03 09:54:45 -07:00
|
|
|
'GeckoProfilerImpl.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'PseudoStack.h',
|
|
|
|
'shared-libraries.h',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'platform.cpp',
|
|
|
|
'nsProfilerFactory.cpp',
|
|
|
|
'nsProfiler.cpp',
|
|
|
|
'TableTicker.cpp',
|
|
|
|
'SaveProfileTask.cpp',
|
|
|
|
'BreakpadSampler.cpp',
|
|
|
|
'UnwinderThread2.cpp',
|
|
|
|
'ProfileEntry.cpp',
|
|
|
|
'local_debug_info_symbolizer.cc',
|
|
|
|
'JSObjectBuilder.cpp',
|
|
|
|
'JSCustomObjectBuilder.cpp',
|
2013-06-14 11:01:02 -07:00
|
|
|
'IOInterposer.cpp',
|
|
|
|
'NSPRInterposer.cpp',
|
|
|
|
'ProfilerIOInterposeObserver.cpp',
|
|
|
|
'SQLiteInterposer.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-linux.cc',
|
|
|
|
'platform-linux.cc',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_TARGET'] == 'Darwin':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-macos.cc',
|
|
|
|
'platform-macos.cc',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-win32.cc',
|
|
|
|
'platform-win32.cc',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfiler.h',
|
|
|
|
]
|
2013-03-12 10:20:41 -07:00
|
|
|
|
2013-06-14 11:01:02 -07:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'IOInterposer.h',
|
|
|
|
'SQLiteInterposer.h',
|
|
|
|
]
|
|
|
|
|
2013-04-29 11:49:00 -07:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|