|
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/. |
|
6 |
|
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 ] |
|
15 |
|
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 ] |
|
23 |
|
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 ] |
|
32 |
|
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 ] |
|
45 |
|
46 FINAL_LIBRARY = 'toolkitcomps' |
|
47 |
|
48 DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True |
|
49 |
|
50 # Suppress warnings in third-party code. |
|
51 if CONFIG['GNU_CXX']: |
|
52 CXXFLAGS += [ |
|
53 '-Wno-null-conversion', |
|
54 '-Wno-sign-compare', |
|
55 ] |