Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/protobuf/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 6 kB image not shown  

Quelle  moz.build   Sprache: unbekannt

 
Spracherkennung für: .build vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# 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/.

# Only source files required for the lite runtime are listed here; files
# that are part of the full protobuf runtime but unused in our builds are
# omitted entirely.

Library('protobuf')

with Files('**'):
    BUG_COMPONENT = ('Core', 'General')

EXPORTS.google.protobuf += [
    'src/google/protobuf/any.h',
    'src/google/protobuf/arena.h',
    'src/google/protobuf/arena_align.h',
    'src/google/protobuf/arena_allocation_policy.h',
    'src/google/protobuf/arena_cleanup.h',
    'src/google/protobuf/arenastring.h',
    'src/google/protobuf/arenaz_sampler.h',
    'src/google/protobuf/endian.h',
    'src/google/protobuf/explicitly_constructed.h',
    'src/google/protobuf/extension_set.h',
    'src/google/protobuf/extension_set_inl.h',
    'src/google/protobuf/field_with_arena.h',
    'src/google/protobuf/generated_enum_util.h',
    'src/google/protobuf/generated_message_tctable_decl.h',
    'src/google/protobuf/generated_message_tctable_impl.h',
    'src/google/protobuf/generated_message_util.h',
    'src/google/protobuf/has_bits.h',
    'src/google/protobuf/implicit_weak_message.h',
    'src/google/protobuf/inlined_string_field.h',
    'src/google/protobuf/internal_metadata_locator.h',
    'src/google/protobuf/internal_visibility.h',
    'src/google/protobuf/map.h',
    'src/google/protobuf/message_lite.h',
    'src/google/protobuf/metadata_lite.h',
    'src/google/protobuf/micro_string.h',
    'src/google/protobuf/os_macros_restore.inc',
    'src/google/protobuf/os_macros_undef.inc',
    'src/google/protobuf/parse_context.h',
    'src/google/protobuf/port.h',
    'src/google/protobuf/port_def.inc',
    'src/google/protobuf/port_undef.inc',
    'src/google/protobuf/raw_ptr.h',
    'src/google/protobuf/reflection_mode.h',
    'src/google/protobuf/repeated_field.h',
    'src/google/protobuf/repeated_ptr_field.h',
    'src/google/protobuf/runtime_version.h',
    'src/google/protobuf/serial_arena.h',
    'src/google/protobuf/string_block.h',
    'src/google/protobuf/thread_safe_arena.h',
    'src/google/protobuf/varint_shuffle.h',
    'src/google/protobuf/wire_format_lite.h',
    # utf8_range headers land in google/protobuf/ so that the bare
    # #include "utf8_validity.h" in parse_context.h resolves for external
    # consumers that include any generated .pb.h.
    'third_party/utf8_range/utf8_range.h',
    'third_party/utf8_range/utf8_validity.h',
]

EXPORTS.google.protobuf.io += [
    'src/google/protobuf/io/coded_stream.h',
    'src/google/protobuf/io/gzip_stream.h',
    'src/google/protobuf/io/io_win32.h',
    'src/google/protobuf/io/zero_copy_stream.h',
    'src/google/protobuf/io/zero_copy_stream_impl.h',
    'src/google/protobuf/io/zero_copy_stream_impl_lite.h',
]

EXPORTS.google.protobuf.stubs += [
    'src/google/protobuf/stubs/callback.h',
    'src/google/protobuf/stubs/common.h',
    'src/google/protobuf/stubs/platform_macros.h',
    'src/google/protobuf/stubs/port.h',
]

SOURCES += [
    'src/google/protobuf/arena.cc',
    'src/google/protobuf/arena_align.cc',
    'src/google/protobuf/arenastring.cc',
    'src/google/protobuf/arenaz_sampler.cc',
    'src/google/protobuf/extension_set.cc', # port_def conflicts
    'src/google/protobuf/generated_enum_util.cc', # port_def conflicts
    'src/google/protobuf/generated_message_tctable_lite.cc',
    'src/google/protobuf/generated_message_util.cc', # port_def conflicts
    'src/google/protobuf/implicit_weak_message.cc', # port_def conflicts
    'src/google/protobuf/inlined_string_field.cc', # port_def conflicts
    'src/google/protobuf/io/coded_stream.cc', # port_def conflicts
    # Not in libprotobuf_lite_srcs, but devtools/shared/heapsnapshot/HeapSnapshot.cpp uses it.
    'src/google/protobuf/io/gzip_stream.cc',
    'src/google/protobuf/io/io_win32.cc', # port_def conflicts
    'src/google/protobuf/io/zero_copy_stream.cc',
    'src/google/protobuf/io/zero_copy_stream_impl.cc', # port_def conflicts
    'src/google/protobuf/io/zero_copy_stream_impl_lite.cc', # port_def conflicts
    'src/google/protobuf/map.cc', # port_def conflicts
    'src/google/protobuf/message_lite.cc', # port_def conflicts
    'src/google/protobuf/micro_string.cc',
    'src/google/protobuf/parse_context.cc', # port_def conflicts
    'src/google/protobuf/port.cc',
    'src/google/protobuf/raw_ptr.cc',
    'src/google/protobuf/reflection_mode.cc',
    'src/google/protobuf/repeated_field.cc', # port_def conflicts
    'src/google/protobuf/repeated_ptr_field.cc', # port_def conflicts
    'src/google/protobuf/stubs/common.cc', # port_def conflicts
    'src/google/protobuf/wire_format_lite.cc', # port_def conflicts
    'third_party/utf8_range/utf8_range.c',
]

# We allow warnings for third-party code that can be updated from upstream.
AllowCompilerWarnings()

FINAL_LIBRARY = 'xul'

USE_LIBS += [
    'abseil',
]

LOCAL_INCLUDES += [
    '/third_party/abseil-cpp',
    'third_party/utf8_range',
]

DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True

# Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    CXXFLAGS += [
        '-Wno-ignored-qualifiers',
        '-Wno-maybe-uninitialized',
        '-Wno-return-type',
        '-Wno-sign-compare',
        '-Wno-subobject-linkage',
        '-Wno-unused-function',
    ]
    if CONFIG['CC_TYPE'] == 'clang':
        CXXFLAGS += [
            '-Wno-comma',
            '-Wno-null-conversion',
            '-Wno-unused-local-typedef',
        ]
elif CONFIG['CC_TYPE'] == 'clang-cl':
    CXXFLAGS += [
        '-Wno-macro-redefined',  # 'WIN32_LEAN_AND_MEAN' : macro redefinition
        '-Wno-sign-compare',
    ]

if CONFIG['OS_TARGET'] == 'WINNT':
    DEFINES['NOGDI'] = True  # wingdi.h defines ERROR as 0 and conflicts with logging.h

if CONFIG['MOZ_USE_PTHREADS']:
    DEFINES['HAVE_PTHREAD'] = True

# Needed for the gzip streams.
DEFINES['HAVE_ZLIB'] = True

if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
    CXXFLAGS += CONFIG['MOZ_GTK3_CFLAGS']

# Work around bug 1841201.
if CONFIG['TARGET_CPU'] in ('mips32', 'mips64'):
    DEFINES['musttail'] = 'nomusttail'

[Dauer der Verarbeitung: 0.42 Sekunden]