diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 15:42:24 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 15:42:24 +0000 |
commit | 59e68c95c74850267e30dd8583fa9dad2a294c02 (patch) | |
tree | 227ce09cac24460b96990fe3cf9096a430a5babb /third_party | |
parent | de49da7f3fffe3c93c77f7b0340acdfd1c65c2d0 (diff) | |
download | chromium_src-59e68c95c74850267e30dd8583fa9dad2a294c02.zip chromium_src-59e68c95c74850267e30dd8583fa9dad2a294c02.tar.gz chromium_src-59e68c95c74850267e30dd8583fa9dad2a294c02.tar.bz2 |
Part one of fixing protobuf.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/155499
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20621 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/protobuf2/config.h | 138 | ||||
-rw-r--r-- | third_party/protobuf2/protobuf.gyp | 151 |
2 files changed, 289 insertions, 0 deletions
diff --git a/third_party/protobuf2/config.h b/third_party/protobuf2/config.h new file mode 100644 index 0000000..cb0bb00 --- /dev/null +++ b/third_party/protobuf2/config.h @@ -0,0 +1,138 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* the location of <hash_map> */ +#define HASH_MAP_H <ext/hash_map> + +/* the namespace of hash_map/hash_set */ +#define HASH_NAMESPACE __gnu_cxx + +/* the location of <hash_set> */ +#define HASH_SET_H <ext/hash_set> + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `ftruncate' function. */ +#define HAVE_FTRUNCATE 1 + +/* define if the compiler has hash_map */ +#define HAVE_HASH_MAP 1 + +/* define if the compiler has hash_set */ +#define HAVE_HASH_SET 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `mkdir' function. */ +#define HAVE_MKDIR 1 + +/* Define if you have POSIX threads libraries and header files. */ +#define HAVE_PTHREAD 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Enable classes using zlib compression. */ +#define HAVE_ZLIB 1 + +/* Name of package */ +#define PACKAGE "protobuf" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "protobuf@googlegroups.com" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "Protocol Buffers" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "Protocol Buffers 2.1.1-pre" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "protobuf" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "2.1.1-pre" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "2.1.1-pre" + +/* Define to 1 if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* # undef _ALL_SOURCE */ +#endif + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Enable extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif diff --git a/third_party/protobuf2/protobuf.gyp b/third_party/protobuf2/protobuf.gyp new file mode 100644 index 0000000..f3287ed --- /dev/null +++ b/third_party/protobuf2/protobuf.gyp @@ -0,0 +1,151 @@ +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'includes': [ + '../../build/common.gypi', + ], + 'targets': [ + { 'target_name': 'protobuf', + 'type': '<(library)', + 'sources': [ + 'src/src/google/protobuf/stubs/common.h', + 'src/src/google/protobuf/stubs/once.h', + 'src/src/google/protobuf/descriptor.h', + 'src/src/google/protobuf/descriptor.pb.h', + 'src/src/google/protobuf/descriptor_database.h', + 'src/src/google/protobuf/dynamic_message.h', + 'src/src/google/protobuf/extension_set.h', + 'src/src/google/protobuf/generated_message_reflection.h', + 'src/src/google/protobuf/message.h', + 'src/src/google/protobuf/reflection_ops.h', + 'src/src/google/protobuf/repeated_field.h', + 'src/src/google/protobuf/service.h', + 'src/src/google/protobuf/text_format.h', + 'src/src/google/protobuf/unknown_field_set.h', + 'src/src/google/protobuf/wire_format.h', + 'src/src/google/protobuf/wire_format_inl.h', + 'src/src/google/protobuf/io/coded_stream.h', + 'src/src/google/protobuf/io/gzip_stream.h', + 'src/src/google/protobuf/io/printer.h', + 'src/src/google/protobuf/io/tokenizer.h', + 'src/src/google/protobuf/io/zero_copy_stream.h', + 'src/src/google/protobuf/io/zero_copy_stream_impl.h', + 'src/src/google/protobuf/compiler/code_generator.h', + 'src/src/google/protobuf/compiler/command_line_interface.h', + 'src/src/google/protobuf/compiler/importer.h', + 'src/src/google/protobuf/compiler/parser.h', + + 'src/src/google/protobuf/stubs/common.cc', + 'src/src/google/protobuf/stubs/once.cc', + 'src/src/google/protobuf/stubs/hash.cc', + 'src/src/google/protobuf/stubs/hash.h', + 'src/src/google/protobuf/stubs/map-util.cc', + 'src/src/google/protobuf/stubs/map-util.h', + 'src/src/google/protobuf/stubs/stl_util-inl.cc', + 'src/src/google/protobuf/stubs/stl_util-inl.h', + 'src/src/google/protobuf/stubs/substitute.cc', + 'src/src/google/protobuf/stubs/substitute.h', + 'src/src/google/protobuf/stubs/strutil.cc', + 'src/src/google/protobuf/stubs/strutil.h', + 'src/src/google/protobuf/stubs/structurally_valid.cc', + 'src/src/google/protobuf/descriptor.cc', + 'src/src/google/protobuf/descriptor.pb.cc', + 'src/src/google/protobuf/descriptor_database.cc', + 'src/src/google/protobuf/dynamic_message.cc', + 'src/src/google/protobuf/extension_set.cc', + 'src/src/google/protobuf/generated_message_reflection.cc', + 'src/src/google/protobuf/message.cc', + 'src/src/google/protobuf/reflection_ops.cc', + 'src/src/google/protobuf/repeated_field.cc', + 'src/src/google/protobuf/service.cc', + 'src/src/google/protobuf/text_format.cc', + 'src/src/google/protobuf/unknown_field_set.cc', + 'src/src/google/protobuf/wire_format.cc', + 'src/src/google/protobuf/io/coded_stream.cc', + 'src/src/google/protobuf/io/gzip_stream.cc', + 'src/src/google/protobuf/io/printer.cc', + 'src/src/google/protobuf/io/tokenizer.cc', + 'src/src/google/protobuf/io/zero_copy_stream.cc', + 'src/src/google/protobuf/io/zero_copy_stream_impl.cc', + 'src/src/google/protobuf/compiler/importer.cc', + 'src/src/google/protobuf/compiler/parser.cc', + ], + + 'include_dirs': [ + '.', + 'src/src', + ], + + 'direct_dependent_settings': { + 'include_dirs': [ + '.', + 'src/src', + ], + }, + }, + { 'target_name': 'protoc', + 'type': 'executable', + 'sources': [ + 'src/src/google/protobuf/compiler/code_generator.cc', + 'src/src/google/protobuf/compiler/command_line_interface.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_enum.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_enum.h', + 'src/src/google/protobuf/compiler/cpp/cpp_enum_field.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_enum_field.h', + 'src/src/google/protobuf/compiler/cpp/cpp_extension.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_extension.h', + 'src/src/google/protobuf/compiler/cpp/cpp_field.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_field.h', + 'src/src/google/protobuf/compiler/cpp/cpp_file.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_file.h', + 'src/src/google/protobuf/compiler/cpp/cpp_generator.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_helpers.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_helpers.h', + 'src/src/google/protobuf/compiler/cpp/cpp_message.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_message.h', + 'src/src/google/protobuf/compiler/cpp/cpp_message_field.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_message_field.h', + 'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_primitive_field.h', + 'src/src/google/protobuf/compiler/cpp/cpp_service.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_service.h', + 'src/src/google/protobuf/compiler/cpp/cpp_string_field.cc', + 'src/src/google/protobuf/compiler/cpp/cpp_string_field.h', + 'src/src/google/protobuf/compiler/java/java_enum.cc', + 'src/src/google/protobuf/compiler/java/java_enum.h', + 'src/src/google/protobuf/compiler/java/java_enum_field.cc', + 'src/src/google/protobuf/compiler/java/java_enum_field.h', + 'src/src/google/protobuf/compiler/java/java_extension.cc', + 'src/src/google/protobuf/compiler/java/java_extension.h', + 'src/src/google/protobuf/compiler/java/java_field.cc', + 'src/src/google/protobuf/compiler/java/java_field.h', + 'src/src/google/protobuf/compiler/java/java_file.cc', + 'src/src/google/protobuf/compiler/java/java_file.h', + 'src/src/google/protobuf/compiler/java/java_generator.cc', + 'src/src/google/protobuf/compiler/java/java_helpers.cc', + 'src/src/google/protobuf/compiler/java/java_helpers.h', + 'src/src/google/protobuf/compiler/java/java_message.cc', + 'src/src/google/protobuf/compiler/java/java_message.h', + 'src/src/google/protobuf/compiler/java/java_message_field.cc', + 'src/src/google/protobuf/compiler/java/java_message_field.h', + 'src/src/google/protobuf/compiler/java/java_primitive_field.cc', + 'src/src/google/protobuf/compiler/java/java_primitive_field.h', + 'src/src/google/protobuf/compiler/java/java_service.cc', + 'src/src/google/protobuf/compiler/java/java_service.h', + 'src/src/google/protobuf/compiler/python/python_generator.cc', + 'src/src/google/protobuf/compiler/main.cc', + ], + + 'dependencies': [ + 'protobuf', + ], + + 'include_dirs': [ + '.', + 'src/src', + ], + }, + ], + } |