Source release v2.1.2-0-773 + third_party libs
Change-Id: Ia07608577b65b301c22a8ff4bf7f743c2d3f9274
This commit is contained in:
48
third_party/protobuf.gyp
vendored
48
third_party/protobuf.gyp
vendored
@@ -5,27 +5,38 @@
|
||||
# use_system_protobuf to false.
|
||||
|
||||
{
|
||||
# Some sources are used by both libprotobuf_lite and libprotobuf.
|
||||
# Representing this with dependencies means that protobuf_lite must be built
|
||||
# with both the target and host toolsets. Although gyp allows for this,
|
||||
# this causes bugs in the generated output for both xcode and ninja.
|
||||
# Therefore we include this variable in the sources of both libraries
|
||||
# instead.
|
||||
'variables': {
|
||||
'protobuf_lite_sources': [
|
||||
'<(protobuf_source_dir)/src/google/protobuf/extension_set.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/generated_message_util.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/message_lite.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/repeated_field.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/wire_format_lite.cc',
|
||||
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/coded_stream.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/zero_copy_stream.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/zero_copy_stream_impl_lite.cc',
|
||||
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/common.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/once.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/stringprintf.cc',
|
||||
],
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'protobuf_lite',
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host', 'target'],
|
||||
'toolsets': ['target'],
|
||||
'sources': [
|
||||
'<(protobuf_source_dir)/src/google/protobuf/extension_set.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/generated_message_util.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/message_lite.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/repeated_field.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/wire_format_lite.cc',
|
||||
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/coded_stream.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/zero_copy_stream.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/io/zero_copy_stream_impl_lite.cc',
|
||||
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/common.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/once.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/stubs/stringprintf.cc',
|
||||
'<@(protobuf_lite_sources)',
|
||||
],
|
||||
'include_dirs': [
|
||||
'<(protobuf_source_dir)',
|
||||
@@ -42,6 +53,8 @@
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host'],
|
||||
'sources': [
|
||||
'<@(protobuf_lite_sources)',
|
||||
|
||||
'<(protobuf_source_dir)/src/google/protobuf/descriptor.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/descriptor.pb.cc',
|
||||
'<(protobuf_source_dir)/src/google/protobuf/descriptor_database.cc',
|
||||
@@ -71,9 +84,6 @@
|
||||
'<(protobuf_source_dir)',
|
||||
'<(protobuf_source_dir)/src',
|
||||
],
|
||||
'dependencies': [
|
||||
'protobuf_lite',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'protoc',
|
||||
|
||||
Reference in New Issue
Block a user