1# -*- Mode: python; 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/.
6
7if (CONFIG['OS_TARGET'] in ('Android', 'Linux') and
8    CONFIG['CPU_ARCH'] in ('arm', 'aarch64', 'x86', 'x86_64')):
9    UNIFIED_SOURCES += [
10        'LulTest.cpp',
11        'LulTestDwarf.cpp',
12        'LulTestInfrastructure.cpp',
13    ]
14
15LOCAL_INCLUDES += [
16    '/netwerk/base',
17    '/netwerk/protocol/http',
18    '/toolkit/components/jsoncpp/include',
19    '/tools/profiler/core',
20    '/tools/profiler/gecko',
21    '/tools/profiler/lul',
22]
23
24if CONFIG['OS_TARGET'] != 'Android':
25    UNIFIED_SOURCES += [
26        'GeckoProfiler.cpp',
27        'ThreadProfileTest.cpp',
28    ]
29
30USE_LIBS += [
31    'jsoncpp',
32]
33
34include('/ipc/chromium/chromium-config.mozbuild')
35
36FINAL_LIBRARY = 'xul-gtest'
37
38if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
39    CXXFLAGS += ['-Wno-error=shadow']
40