2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:01 +00:00
|
|
|
# vim: set filetype=python:
|
2012-05-21 11:12:37 +00: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/.
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['MOZ_ENABLE_PROFILER_SPS']:
|
2013-08-22 06:55:59 +00:00
|
|
|
FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
|
|
|
|
|
2013-08-22 06:56:01 +00:00
|
|
|
LIBXUL_LIBRARY = True
|
2013-08-22 06:55:59 +00:00
|
|
|
|
2013-03-19 18:47:00 +00:00
|
|
|
MODULE = 'profiler'
|
2013-06-18 12:13:42 +00:00
|
|
|
LIBRARY_NAME = 'profiler'
|
2013-03-12 17:20:41 +00:00
|
|
|
XPIDL_SOURCES += [
|
2013-03-21 09:17:23 +00:00
|
|
|
'nsIProfileSaveEvent.idl',
|
2013-03-12 17:20:41 +00:00
|
|
|
'nsIProfiler.idl',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfilerFunc.h',
|
2013-05-03 16:54:45 +00:00
|
|
|
'GeckoProfilerImpl.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'PseudoStack.h',
|
|
|
|
'shared-libraries.h',
|
|
|
|
]
|
2013-07-01 15:34:30 +00:00
|
|
|
EXTRA_JS_MODULES = [
|
|
|
|
'Profiler.jsm',
|
|
|
|
]
|
2013-04-23 21:54:15 +00: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 18:01:02 +00:00
|
|
|
'IOInterposer.cpp',
|
|
|
|
'NSPRInterposer.cpp',
|
|
|
|
'ProfilerIOInterposeObserver.cpp',
|
|
|
|
'SQLiteInterposer.cpp',
|
2013-04-23 21:54:15 +00: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 19:24:43 +00:00
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfiler.h',
|
|
|
|
]
|
2013-03-12 17:20:41 +00:00
|
|
|
|
2013-06-14 18:01:02 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'IOInterposer.h',
|
|
|
|
'SQLiteInterposer.h',
|
|
|
|
]
|
|
|
|
|
2013-04-29 18:49:00 +00:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|