2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:01 +04:00
|
|
|
# vim: set filetype=python:
|
2012-05-21 15:12:37 +04: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-20 00:42:14 +04:00
|
|
|
|
2013-03-12 21:20:41 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_PROFILER_SPS']:
|
2013-08-22 10:55:59 +04:00
|
|
|
FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
LIBXUL_LIBRARY = True
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-03-19 22:47:00 +04:00
|
|
|
MODULE = 'profiler'
|
2013-06-18 16:13:42 +04:00
|
|
|
LIBRARY_NAME = 'profiler'
|
2013-03-12 21:20:41 +04:00
|
|
|
XPIDL_SOURCES += [
|
2013-03-21 13:17:23 +04:00
|
|
|
'nsIProfileSaveEvent.idl',
|
2013-03-12 21:20:41 +04:00
|
|
|
'nsIProfiler.idl',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfilerFunc.h',
|
2013-05-03 20:54:45 +04:00
|
|
|
'GeckoProfilerImpl.h',
|
2013-07-11 08:27:04 +04:00
|
|
|
'ProfilerMarkers.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'PseudoStack.h',
|
|
|
|
'shared-libraries.h',
|
|
|
|
]
|
2013-07-01 19:34:30 +04:00
|
|
|
EXTRA_JS_MODULES = [
|
|
|
|
'Profiler.jsm',
|
|
|
|
]
|
2013-04-24 01:54:15 +04: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 22:01:02 +04:00
|
|
|
'IOInterposer.cpp',
|
|
|
|
'NSPRInterposer.cpp',
|
2013-09-25 19:28:34 +04:00
|
|
|
'ProfilerBacktrace.cpp',
|
2013-06-14 22:01:02 +04:00
|
|
|
'ProfilerIOInterposeObserver.cpp',
|
2013-07-11 08:27:04 +04:00
|
|
|
'ProfilerMarkers.cpp',
|
2013-09-25 19:28:34 +04:00
|
|
|
'SyncProfile.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-linux.cc',
|
|
|
|
'platform-linux.cc',
|
|
|
|
]
|
2013-09-11 22:53:14 +04:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'EHABIStackWalk.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['OS_TARGET'] == 'Darwin':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-macos.cc',
|
|
|
|
'platform-macos.cc',
|
|
|
|
]
|
2013-09-06 10:40:41 +04:00
|
|
|
CMMSRCS += [
|
|
|
|
'shim_mac_dump_syms.mm',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-win32.cc',
|
|
|
|
'platform-win32.cc',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfiler.h',
|
|
|
|
]
|
2013-03-12 21:20:41 +04:00
|
|
|
|
2013-06-14 22:01:02 +04:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'IOInterposer.h',
|
|
|
|
]
|
|
|
|
|
2013-04-29 22:49:00 +04:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|