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 += [
|
|
|
|
'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',
|
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-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'BreakpadSampler.cpp',
|
2013-06-14 11:01:02 -07:00
|
|
|
'IOInterposer.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'JSCustomObjectBuilder.cpp',
|
|
|
|
'JSObjectBuilder.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'local_debug_info_symbolizer.cc',
|
2013-06-14 11:01:02 -07:00
|
|
|
'NSPRInterposer.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsProfiler.cpp',
|
|
|
|
'nsProfilerFactory.cpp',
|
|
|
|
'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',
|
|
|
|
'UnwinderThread2.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
|
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-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-10-24 16:23:05 -07:00
|
|
|
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-04-23 14:54:15 -07:00
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
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 += [
|
|
|
|
'/ipc/chromium/src',
|
|
|
|
'/mozglue/linker',
|
|
|
|
'/toolkit/crashreporter/google-breakpad/src',
|
|
|
|
]
|
|
|
|
|
|
|
|
# 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-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
|
|
|
|
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']
|