Bug 1842999 - Part 25: Support testing elements are present in resizable typed arrays...
[gecko.git] / other-licenses / snappy / moz.build
blob56fc2ce4c34b51ddb5902020a6dc04a3c3e5944c
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/.
7 EXPORTS.snappy += [
8     'snappy-stubs-public.h',
9     'src/snappy-c.h',
10     'src/snappy.h',
13 UNIFIED_SOURCES += [
14     'src/snappy-c.cc',
15     'src/snappy-sinksource.cc',
16     'src/snappy-stubs-internal.cc',
17     'src/snappy.cc',
20 # We allow warnings for third-party code that can be updated from upstream.
21 AllowCompilerWarnings()
23 FINAL_LIBRARY = 'xul'
25 # Suppress warnings in third-party code.
26 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
27     CXXFLAGS += [
28         '-Wno-sign-compare',
29         '-Wno-unused-function'
30     ]
32 if CONFIG['TARGET_ENDIANNESS'] == 'big':
33     DEFINES['SNAPPY_IS_BIG_ENDIAN'] = 1