2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:19:09 +04:00
|
|
|
# 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/.
|
|
|
|
|
2017-04-09 12:43:43 +03:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'General')
|
|
|
|
|
2014-07-10 07:16:00 +04:00
|
|
|
EXPORTS.google.protobuf += [
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/arena.h',
|
|
|
|
'src/google/protobuf/arena_impl.h',
|
|
|
|
'src/google/protobuf/arenastring.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/extension_set.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/generated_enum_util.h',
|
|
|
|
'src/google/protobuf/generated_message_table_driven.h',
|
|
|
|
'src/google/protobuf/generated_message_table_driven_lite.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/generated_message_util.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/has_bits.h',
|
|
|
|
'src/google/protobuf/map.h',
|
|
|
|
'src/google/protobuf/map_entry_lite.h',
|
|
|
|
'src/google/protobuf/map_type_handler.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/message_lite.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/metadata_lite.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/repeated_field.h',
|
|
|
|
'src/google/protobuf/wire_format_lite.h',
|
|
|
|
'src/google/protobuf/wire_format_lite_inl.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2015-05-28 17:37:42 +03:00
|
|
|
EXPORTS.google.protobuf.io += [
|
|
|
|
'src/google/protobuf/io/coded_stream.h',
|
|
|
|
'src/google/protobuf/io/coded_stream_inl.h',
|
|
|
|
'src/google/protobuf/io/gzip_stream.h',
|
|
|
|
'src/google/protobuf/io/zero_copy_stream.h',
|
|
|
|
'src/google/protobuf/io/zero_copy_stream_impl_lite.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2015-05-28 17:37:42 +03:00
|
|
|
EXPORTS.google.protobuf.stubs += [
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/atomic_sequence_num.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/atomicops.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_arm_gcc.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_arm_qnx.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/atomicops_internals_generic_gcc.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_mips_gcc.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/atomicops_internals_power.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/atomicops_internals_solaris.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_tsan.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_x86_gcc.h',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_x86_msvc.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/bytestream.h',
|
|
|
|
'src/google/protobuf/stubs/callback.h',
|
|
|
|
'src/google/protobuf/stubs/casts.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/common.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/fastmem.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/hash.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/int128.h',
|
|
|
|
'src/google/protobuf/stubs/io_win32.h',
|
|
|
|
'src/google/protobuf/stubs/logging.h',
|
|
|
|
'src/google/protobuf/stubs/macros.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/map_util.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/mathlimits.h',
|
|
|
|
'src/google/protobuf/stubs/mutex.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/once.h',
|
|
|
|
'src/google/protobuf/stubs/platform_macros.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/port.h',
|
|
|
|
'src/google/protobuf/stubs/scoped_ptr.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/shared_ptr.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/status.h',
|
|
|
|
'src/google/protobuf/stubs/status_macros.h',
|
|
|
|
'src/google/protobuf/stubs/statusor.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/stl_util.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/stringpiece.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/stringprintf.h',
|
|
|
|
'src/google/protobuf/stubs/strutil.h',
|
|
|
|
'src/google/protobuf/stubs/template_util.h',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/time.h',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/type_traits.h',
|
2015-04-22 21:09:54 +03:00
|
|
|
]
|
|
|
|
|
2015-04-23 09:37:24 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/arena.cc',
|
|
|
|
'src/google/protobuf/arenastring.cc',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/extension_set.cc',
|
|
|
|
'src/google/protobuf/generated_message_util.cc',
|
|
|
|
'src/google/protobuf/io/coded_stream.cc',
|
|
|
|
'src/google/protobuf/io/gzip_stream.cc',
|
|
|
|
'src/google/protobuf/io/zero_copy_stream.cc',
|
|
|
|
'src/google/protobuf/io/zero_copy_stream_impl_lite.cc',
|
|
|
|
'src/google/protobuf/message_lite.cc',
|
|
|
|
'src/google/protobuf/repeated_field.cc',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc',
|
|
|
|
'src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/bytestream.cc',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/common.cc',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/int128.cc',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/once.cc',
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/stubs/status.cc',
|
|
|
|
'src/google/protobuf/stubs/statusor.cc',
|
|
|
|
'src/google/protobuf/stubs/stringpiece.cc',
|
2015-05-28 17:37:42 +03:00
|
|
|
'src/google/protobuf/stubs/stringprintf.cc',
|
|
|
|
'src/google/protobuf/stubs/structurally_valid.cc',
|
|
|
|
'src/google/protobuf/stubs/strutil.cc',
|
|
|
|
'src/google/protobuf/wire_format_lite.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2017-10-19 01:02:05 +03:00
|
|
|
'src/google/protobuf/generated_message_table_driven_lite.cc',
|
2017-10-18 01:53:54 +03:00
|
|
|
'src/google/protobuf/stubs/time.cc', # GetCurrentTime conflict in winbase.h
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2015-10-20 04:05:20 +03:00
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
2017-10-26 01:12:09 +03:00
|
|
|
AllowCompilerWarnings()
|
2015-08-28 06:44:53 +03:00
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-03-04 06:58:37 +04:00
|
|
|
|
|
|
|
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
|
2015-05-28 17:37:42 +03:00
|
|
|
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
|
2014-03-16 10:25:55 +04:00
|
|
|
|
|
|
|
# Suppress warnings in third-party code.
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2014-03-16 10:25:55 +04:00
|
|
|
CXXFLAGS += [
|
2017-10-19 01:02:05 +03:00
|
|
|
'-Wno-ignored-qualifiers',
|
|
|
|
'-Wno-maybe-uninitialized',
|
2015-05-28 17:37:42 +03:00
|
|
|
'-Wno-return-type',
|
2014-03-16 10:25:55 +04:00
|
|
|
'-Wno-sign-compare',
|
2017-10-19 01:02:05 +03:00
|
|
|
'-Wno-subobject-linkage',
|
2017-06-13 08:18:42 +03:00
|
|
|
'-Wno-unused-function',
|
2014-03-16 10:25:55 +04:00
|
|
|
]
|
2017-12-08 00:09:38 +03:00
|
|
|
if CONFIG['CC_TYPE'] == 'clang':
|
2016-11-23 03:14:37 +03:00
|
|
|
CXXFLAGS += [
|
2017-06-13 08:18:42 +03:00
|
|
|
'-Wno-comma',
|
2016-11-23 03:14:37 +03:00
|
|
|
'-Wno-null-conversion',
|
2017-10-19 01:02:05 +03:00
|
|
|
'-Wno-unused-local-typedef',
|
2016-11-23 03:14:37 +03:00
|
|
|
]
|
2019-02-15 00:45:27 +03:00
|
|
|
elif CONFIG['CC_TYPE'] == 'clang-cl':
|
2014-06-19 22:42:00 +04:00
|
|
|
CXXFLAGS += [
|
2019-03-11 04:39:42 +03:00
|
|
|
'-Wno-macro-redefined', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
|
|
|
|
'-Wno-sign-compare',
|
2014-06-19 22:42:00 +04:00
|
|
|
]
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2017-10-24 23:35:56 +03:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
DEFINES['NOGDI'] = True # wingdi.h defines ERROR as 0 and conflicts with logging.h
|
|
|
|
|
2015-05-28 17:37:42 +03:00
|
|
|
if CONFIG['MOZ_USE_PTHREADS']:
|
|
|
|
DEFINES['HAVE_PTHREAD'] = True
|
|
|
|
|
|
|
|
# Needed for the gzip streams.
|
|
|
|
DEFINES['HAVE_ZLIB'] = True
|
|
|
|
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|