1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/protobuf/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +EXPORTS.protobuf.google.protobuf += [ 1.11 + 'google/protobuf/extension_set.h', 1.12 + 'google/protobuf/generated_message_util.h', 1.13 + 'google/protobuf/message_lite.h', 1.14 + 'google/protobuf/repeated_field.h', 1.15 + 'google/protobuf/wire_format_lite.h', 1.16 + 'google/protobuf/wire_format_lite_inl.h', 1.17 +] 1.18 + 1.19 +EXPORTS.protobuf.google.protobuf.stubs += [ 1.20 + 'google/protobuf/stubs/common.h', 1.21 + 'google/protobuf/stubs/hash.h', 1.22 + 'google/protobuf/stubs/map-util.h', 1.23 + 'google/protobuf/stubs/once.h', 1.24 + 'google/protobuf/stubs/stl_util-inl.h', 1.25 +] 1.26 + 1.27 +EXPORTS.protobuf.google.protobuf.io += [ 1.28 + 'google/protobuf/io/coded_stream.h', 1.29 + 'google/protobuf/io/coded_stream_inl.h', 1.30 + 'google/protobuf/io/zero_copy_stream.h', 1.31 + 'google/protobuf/io/zero_copy_stream_impl.h', 1.32 + 'google/protobuf/io/zero_copy_stream_impl_lite.h', 1.33 + 'google/protobuf/package_info.h', 1.34 +] 1.35 + 1.36 +UNIFIED_SOURCES += [ 1.37 + 'google/protobuf/extension_set.cc', 1.38 + 'google/protobuf/generated_message_util.cc', 1.39 + 'google/protobuf/io/coded_stream.cc', 1.40 + 'google/protobuf/io/zero_copy_stream.cc', 1.41 + 'google/protobuf/io/zero_copy_stream_impl_lite.cc', 1.42 + 'google/protobuf/message_lite.cc', 1.43 + 'google/protobuf/repeated_field.cc', 1.44 + 'google/protobuf/stubs/common.cc', 1.45 + 'google/protobuf/stubs/once.cc', 1.46 + 'google/protobuf/wire_format_lite.cc', 1.47 +] 1.48 + 1.49 +FINAL_LIBRARY = 'toolkitcomps' 1.50 + 1.51 +DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True 1.52 + 1.53 +# Suppress warnings in third-party code. 1.54 +if CONFIG['GNU_CXX']: 1.55 + CXXFLAGS += [ 1.56 + '-Wno-null-conversion', 1.57 + '-Wno-sign-compare', 1.58 + ]