2017-02-09 04:52:55 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
2015-06-05 23:03:11 +03:00
|
|
|
FINAL_LIBRARY = 'mozglue'
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2017-06-07 05:36:26 +03:00
|
|
|
'AutoProfilerLabel.h',
|
2017-02-09 04:52:55 +03:00
|
|
|
'PlatformConditionVariable.h',
|
|
|
|
'PlatformMutex.h',
|
2017-01-13 20:25:59 +03:00
|
|
|
'Printf.h',
|
2015-06-10 23:32:45 +03:00
|
|
|
'StackWalk.h',
|
2015-06-05 23:03:11 +03:00
|
|
|
'TimeStamp.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla += [
|
2016-09-16 07:35:14 +03:00
|
|
|
'StackWalk_windows.h',
|
2015-06-05 23:03:11 +03:00
|
|
|
'TimeStamp_windows.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2017-06-21 23:26:16 +03:00
|
|
|
'AutoProfilerLabel.cpp',
|
2017-01-13 20:25:59 +03:00
|
|
|
'Printf.cpp',
|
2016-12-21 02:11:36 +03:00
|
|
|
'StackWalk.cpp',
|
2015-06-05 23:03:11 +03:00
|
|
|
'TimeStamp.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
OS_LIBS += CONFIG['REALTIME_LIBS']
|
|
|
|
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2018-04-09 22:37:52 +03:00
|
|
|
EXPORTS += [
|
|
|
|
'nsWindowsDllInterceptor.h',
|
|
|
|
]
|
|
|
|
EXPORTS.mozilla.interceptor += [
|
|
|
|
'interceptor/MMPolicies.h',
|
|
|
|
'interceptor/PatcherBase.h',
|
|
|
|
'interceptor/PatcherDetour.h',
|
|
|
|
'interceptor/PatcherNopSpace.h',
|
|
|
|
'interceptor/TargetFunction.h',
|
|
|
|
'interceptor/Trampoline.h',
|
|
|
|
'interceptor/VMSharingPolicies.h',
|
|
|
|
]
|
2015-06-05 23:03:11 +03:00
|
|
|
SOURCES += [
|
|
|
|
'TimeStamp_windows.cpp',
|
|
|
|
]
|
2015-06-10 23:32:45 +03:00
|
|
|
OS_LIBS += ['dbghelp']
|
2015-06-05 23:03:11 +03:00
|
|
|
elif CONFIG['HAVE_CLOCK_MONOTONIC']:
|
|
|
|
SOURCES += [
|
|
|
|
'TimeStamp_posix.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
SOURCES += [
|
|
|
|
'TimeStamp_darwin.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['COMPILE_ENVIRONMENT']:
|
|
|
|
error('No TimeStamp implementation on this platform. Build will not succeed')
|
2017-02-09 04:52:55 +03:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'ConditionVariable_windows.cpp',
|
|
|
|
'Mutex_windows.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
SOURCES += [
|
|
|
|
'ConditionVariable_posix.cpp',
|
|
|
|
'Mutex_posix.cpp',
|
|
|
|
]
|