1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG['MOZ_ENABLE_PROFILER_SPS']:
8 FAIL_ON_WARNINGS = True
10 XPIDL_MODULE = 'profiler'
13 'nsIProfileSaveEvent.idl',
16 'GeckoProfilerFunc.h',
17 'GeckoProfilerImpl.h',
27 'BreakpadSampler.cpp',
30 'nsProfilerFactory.cpp',
33 'ProfilerBacktrace.cpp',
34 'ProfilerIOInterposeObserver.cpp',
35 'ProfilerMarkers.cpp',
36 'SaveProfileTask.cpp',
39 'ThreadResponsiveness.cpp',
40 'UnwinderThread2.cpp',
43 # This file cannot be built in unified mode because of name clashes with mozglue headers on Android.
45 'local_debug_info_symbolizer.cc',
48 if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
50 'AutoObjectMapper.cpp',
53 'LulDwarfSummariser.cpp',
58 # These files cannot be built in unified mode because of name clashes with mozglue headers on Android.
61 'shared-libraries-linux.cc',
63 if CONFIG['CPU_ARCH'] == 'arm':
70 elif CONFIG['OS_TARGET'] == 'Darwin':
73 'shared-libraries-macos.cc',
74 'shim_mac_dump_syms.mm',
76 elif CONFIG['OS_TARGET'] == 'WINNT':
78 'IntelPowerGadget.cpp',
80 'shared-libraries-win32.cc',
87 '/toolkit/crashreporter/google-breakpad/src',
91 # We need access to Breakpad's getcontext(3) which is suitable for Android
92 if CONFIG['OS_TARGET'] == 'Android':
94 '/toolkit/crashreporter/google-breakpad/src/common/android/include',
97 if CONFIG['ANDROID_CPU_ARCH'] == 'armeabi':
98 DEFINES['ARCH_ARMV6'] = True
100 if CONFIG['ENABLE_TESTS']:
101 DIRS += ['tests/gtest']
103 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] <= '17':
104 DEFINES['ELFSIZE'] = 32
106 FINAL_LIBRARY = 'xul'
112 if CONFIG['MOZ_TASK_TRACER']:
115 'GeckoTaskTracerImpl.h',
116 'TracedTaskCommon.h',
119 'GeckoTaskTracer.cpp',
120 'TracedTaskCommon.cpp',
123 XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']