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-11-19 02:47:43 +00:00
|
|
|
XPIDL_MODULE = 'profiler'
|
2013-03-12 17:20:41 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIProfiler.idl',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsIProfileSaveEvent.idl',
|
2013-03-12 17:20:41 +00:00
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'GeckoProfilerFunc.h',
|
2013-05-03 16:54:45 +00:00
|
|
|
'GeckoProfilerImpl.h',
|
2013-07-11 04:27:04 +00:00
|
|
|
'ProfilerMarkers.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-11-21 17:08:01 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'BreakpadSampler.cpp',
|
2013-06-14 18:01:02 +00:00
|
|
|
'IOInterposer.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'JSCustomObjectBuilder.cpp',
|
|
|
|
'JSObjectBuilder.cpp',
|
2013-06-14 18:01:02 +00:00
|
|
|
'NSPRInterposer.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsProfiler.cpp',
|
|
|
|
'nsProfilerFactory.cpp',
|
|
|
|
'platform.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'ProfileEntry.cpp',
|
2013-09-25 15:28:34 +00:00
|
|
|
'ProfilerBacktrace.cpp',
|
2013-06-14 18:01:02 +00:00
|
|
|
'ProfilerIOInterposeObserver.cpp',
|
2013-07-11 04:27:04 +00:00
|
|
|
'ProfilerMarkers.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'SaveProfileTask.cpp',
|
2013-09-25 15:28:34 +00:00
|
|
|
'SyncProfile.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'TableTicker.cpp',
|
|
|
|
'UnwinderThread2.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-11-21 17:08:01 +00: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 21:54:15 +00:00
|
|
|
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
|
2013-11-21 17:08:01 +00:00
|
|
|
# These files cannot be built in unified mode because of name clashes with mozglue headers on Android.
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'platform-linux.cc',
|
2013-10-23 23:00:23 +00:00
|
|
|
'shared-libraries-linux.cc',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-09-11 18:53:14 +00:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-09-11 18:53:14 +00:00
|
|
|
'EHABIStackWalk.cpp',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
elif CONFIG['OS_TARGET'] == 'Darwin':
|
2013-11-21 17:08:01 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'platform-macos.cc',
|
2013-10-23 23:00:23 +00:00
|
|
|
'shared-libraries-macos.cc',
|
2013-09-06 06:40:41 +00:00
|
|
|
'shim_mac_dump_syms.mm',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
elif CONFIG['OS_TARGET'] == 'WINNT':
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-10-08 14:05:25 +00:00
|
|
|
'IntelPowerGadget.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'platform-win32.cc',
|
2013-10-23 23:00:23 +00:00
|
|
|
'shared-libraries-win32.cc',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
2013-10-20 07:25:19 +00: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-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
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',
|
|
|
|
]
|
|
|
|
|
2013-04-29 18:49:00 +00:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|