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-08-21 23:55:59 -07:00
|
|
|
FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
LIBXUL_LIBRARY = True
|
2013-08-21 23:55:59 -07:00
|
|
|
|
2013-03-19 11:47:00 -07:00
|
|
|
MODULE = 'profiler'
|
2013-06-18 05:13:42 -07:00
|
|
|
LIBRARY_NAME = '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-07-10 21:27:04 -07:00
|
|
|
'ProfilerMarkers.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'PseudoStack.h',
|
|
|
|
'shared-libraries.h',
|
|
|
|
]
|
2013-07-01 08:34:30 -07:00
|
|
|
EXTRA_JS_MODULES = [
|
|
|
|
'Profiler.jsm',
|
|
|
|
]
|
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',
|
2013-09-25 08:28:34 -07:00
|
|
|
'ProfilerBacktrace.cpp',
|
2013-06-14 11:01:02 -07:00
|
|
|
'ProfilerIOInterposeObserver.cpp',
|
2013-07-10 21:27:04 -07:00
|
|
|
'ProfilerMarkers.cpp',
|
2013-09-25 08:28:34 -07:00
|
|
|
'SyncProfile.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',
|
|
|
|
]
|
2013-09-11 11:53:14 -07:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'EHABIStackWalk.cpp',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
elif CONFIG['OS_TARGET'] == 'Darwin':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'shared-libraries-macos.cc',
|
|
|
|
'platform-macos.cc',
|
|
|
|
]
|
2013-09-05 23:40:41 -07:00
|
|
|
CMMSRCS += [
|
|
|
|
'shim_mac_dump_syms.mm',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
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',
|
|
|
|
]
|
|
|
|
|
2013-04-29 11:49:00 -07:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|