toolkit/components/protobuf/moz.build

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 # -*- Mode: python; c-basic-offset: 4; 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.protobuf.google.protobuf += [
     8     'google/protobuf/extension_set.h',
     9     'google/protobuf/generated_message_util.h',
    10     'google/protobuf/message_lite.h',
    11     'google/protobuf/repeated_field.h',
    12     'google/protobuf/wire_format_lite.h',
    13     'google/protobuf/wire_format_lite_inl.h',
    14 ]
    16 EXPORTS.protobuf.google.protobuf.stubs += [
    17     'google/protobuf/stubs/common.h',
    18     'google/protobuf/stubs/hash.h',
    19     'google/protobuf/stubs/map-util.h',
    20     'google/protobuf/stubs/once.h',
    21     'google/protobuf/stubs/stl_util-inl.h',
    22 ]
    24 EXPORTS.protobuf.google.protobuf.io += [
    25     'google/protobuf/io/coded_stream.h',
    26     'google/protobuf/io/coded_stream_inl.h',
    27     'google/protobuf/io/zero_copy_stream.h',
    28     'google/protobuf/io/zero_copy_stream_impl.h',
    29     'google/protobuf/io/zero_copy_stream_impl_lite.h',
    30     'google/protobuf/package_info.h',
    31 ]
    33 UNIFIED_SOURCES += [
    34     'google/protobuf/extension_set.cc',
    35     'google/protobuf/generated_message_util.cc',
    36     'google/protobuf/io/coded_stream.cc',
    37     'google/protobuf/io/zero_copy_stream.cc',
    38     'google/protobuf/io/zero_copy_stream_impl_lite.cc',
    39     'google/protobuf/message_lite.cc',
    40     'google/protobuf/repeated_field.cc',
    41     'google/protobuf/stubs/common.cc',
    42     'google/protobuf/stubs/once.cc',
    43     'google/protobuf/wire_format_lite.cc',
    44 ]
    46 FINAL_LIBRARY = 'toolkitcomps'
    48 DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
    50 # Suppress warnings in third-party code.
    51 if CONFIG['GNU_CXX']:
    52     CXXFLAGS += [
    53         '-Wno-null-conversion',
    54         '-Wno-sign-compare',
    55     ]

mercurial