mozglue/misc/moz.build
author Valentin Gosu <valentin.gosu@gmail.com>
Wed, 12 Aug 2015 00:43:48 +0200
changeset 289987 846e76b0e711b7b7640f41ddcf45904fe737d24a
parent 280453 d8c58dd8dabc156c3948a532d4bba47ccacb9977
child 292691 c646a88160d7b65f755f4dcfa5dec8626a77bcd5
permissions -rw-r--r--
Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus

FINAL_LIBRARY = 'mozglue'

EXPORTS.mozilla += [
    'StackWalk.h',
    'TimeStamp.h',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    EXPORTS.mozilla += [
        'TimeStamp_windows.h',
    ]

SOURCES += [
    'TimeStamp.cpp',
]

OS_LIBS += CONFIG['REALTIME_LIBS']

DEFINES['IMPL_MFBT'] = True

if CONFIG['OS_ARCH'] == 'WINNT':
    SOURCES += [
        'TimeStamp_windows.cpp',
    ]
    OS_LIBS += ['dbghelp']
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')

# MOZ_STACKWALKING is defined in configure.in when the build configuration meets
# the conditions for GeckoStackWalk to work correctly.
# We exclude this file from other build configurations so that if somebody adds a
# new usage of NS_StackWalk it will cause a link error, which is better than having
# GeckoStackWalk silently return garbage at runtime.
if CONFIG['MOZ_STACKWALKING']:
    SOURCES += [
        'StackWalk.cpp',
    ]

FAIL_ON_WARNINGS = True