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']:
|
2014-04-08 05:22:14 -07:00
|
|
|
FAIL_ON_WARNINGS = True
|
2013-08-21 23:55:59 -07:00
|
|
|
|
2013-11-18 18:47:43 -08:00
|
|
|
XPIDL_MODULE = 'profiler'
|
2013-03-12 10:20:41 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIProfiler.idl',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsIProfileSaveEvent.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfilerFunc.h',
|
2013-05-03 09:54:45 -07:00
|
|
|
'GeckoProfilerImpl.h',
|
2014-09-05 12:39:59 -07:00
|
|
|
'JSStreamWriter.h',
|
2014-12-11 06:41:00 -08:00
|
|
|
'ProfilerBacktrace.h',
|
2013-07-10 21:27:04 -07:00
|
|
|
'ProfilerMarkers.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'PseudoStack.h',
|
|
|
|
'shared-libraries.h',
|
|
|
|
]
|
2014-07-25 10:50:55 -07:00
|
|
|
EXTRA_JS_MODULES += [
|
2013-07-01 08:34:30 -07:00
|
|
|
'Profiler.jsm',
|
|
|
|
]
|
2013-11-21 09:08:01 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'BreakpadSampler.cpp',
|
2014-04-21 13:48:47 -07:00
|
|
|
'JSStreamWriter.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsProfiler.cpp',
|
|
|
|
'nsProfilerFactory.cpp',
|
2014-11-18 09:50:25 -08:00
|
|
|
'nsProfilerStartParams.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'platform.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'ProfileEntry.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-10-23 16:00:23 -07:00
|
|
|
'SaveProfileTask.cpp',
|
2013-09-25 08:28:34 -07:00
|
|
|
'SyncProfile.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'TableTicker.cpp',
|
2014-06-06 14:53:42 -07:00
|
|
|
'ThreadResponsiveness.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'UnwinderThread2.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-11-21 09:08:01 -08:00
|
|
|
# This file cannot be built in unified mode because of name clashes with mozglue headers on Android.
|
|
|
|
SOURCES += [
|
|
|
|
'local_debug_info_symbolizer.cc',
|
|
|
|
]
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
|
2013-12-18 04:02:34 -08:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'AutoObjectMapper.cpp',
|
|
|
|
'LulCommon.cpp',
|
|
|
|
'LulDwarf.cpp',
|
|
|
|
'LulDwarfSummariser.cpp',
|
|
|
|
'LulElf.cpp',
|
|
|
|
'LulMain.cpp',
|
|
|
|
'LulRWLock.cpp',
|
|
|
|
]
|
|
|
|
# These files cannot be built in unified mode because of name clashes with mozglue headers on Android.
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'platform-linux.cc',
|
2013-10-23 16:00:23 -07:00
|
|
|
'shared-libraries-linux.cc',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-09-11 11:53:14 -07:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
2013-12-18 04:02:34 -08:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'LulExidx.cpp',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-09-11 11:53:14 -07:00
|
|
|
'EHABIStackWalk.cpp',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
elif CONFIG['OS_TARGET'] == 'Darwin':
|
2013-11-21 09:08:01 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'platform-macos.cc',
|
2013-10-23 16:00:23 -07:00
|
|
|
'shared-libraries-macos.cc',
|
2013-09-05 23:40:41 -07:00
|
|
|
'shim_mac_dump_syms.mm',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
elif CONFIG['OS_TARGET'] == 'WINNT':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-08 07:05:25 -07:00
|
|
|
'IntelPowerGadget.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'platform-win32.cc',
|
2013-10-23 16:00:23 -07:00
|
|
|
'shared-libraries-win32.cc',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
2013-10-20 00:25:19 -07:00
|
|
|
LOCAL_INCLUDES += [
|
2014-09-09 11:54:08 -07:00
|
|
|
'/docshell/base',
|
2013-10-20 00:25:19 -07:00
|
|
|
'/ipc/chromium/src',
|
|
|
|
'/mozglue/linker',
|
|
|
|
'/toolkit/crashreporter/google-breakpad/src',
|
2014-05-19 11:31:31 -07:00
|
|
|
'/xpcom/base',
|
2013-10-20 00:25:19 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
# We need access to Breakpad's getcontext(3) which is suitable for Android
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/crashreporter/google-breakpad/src/common/android/include',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['ANDROID_CPU_ARCH'] == 'armeabi':
|
|
|
|
DEFINES['ARCH_ARMV6'] = True
|
|
|
|
|
2013-12-18 04:02:34 -08:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|
|
|
|
|
2014-11-26 01:37:09 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and (CONFIG['ANDROID_VERSION'] <= '17' or CONFIG['ANDROID_VERSION'] >= '21'):
|
2014-05-13 12:26:33 -07:00
|
|
|
DEFINES['ELFSIZE'] = 32
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfiler.h',
|
|
|
|
]
|
2013-03-12 10:20:41 -07:00
|
|
|
|
2014-03-27 01:44:30 -07:00
|
|
|
if CONFIG['MOZ_TASK_TRACER']:
|
|
|
|
EXPORTS += [
|
|
|
|
'GeckoTaskTracer.h',
|
|
|
|
'GeckoTaskTracerImpl.h',
|
|
|
|
'TracedTaskCommon.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'GeckoTaskTracer.cpp',
|
|
|
|
'TracedTaskCommon.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-29 11:49:00 -07:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|