mozglue/misc/moz.build
author Jorg K
Mon, 04 Apr 2016 23:54:00 +0200
changeset 348037 26faa5d26ab77cec112d3d9a895d05cda09e08ef
parent 295729 20a95408d007f9e040ca02c87d851fbe625b91e0
child 340034 62d93df1226482ed0a284ad22359dc48d8b47600
child 367195 0ee18d7a875a77016dfe5f9ac651787bab7a48d9
permissions -rw-r--r--
Bug 233705 - remove mDontWrapAnyQuotes, mWrapToWindow and pref wrap_to_window_width. r=ehsan

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',
    ]

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wshadow']