mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
169 lines
8.2 KiB
Plaintext
169 lines
8.2 KiB
Plaintext
# Copyright 2014 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.
|
|
|
|
if (current_toolchain == host_toolchain) {
|
|
config("android_protoc_warnings") {
|
|
cflags = [
|
|
"-Wno-null-conversion",
|
|
"-Wno-tautological-undefined-compare",
|
|
"-Wno-unused-function",
|
|
"-Wno-unused-local-typedef",
|
|
]
|
|
}
|
|
|
|
executable("android_protoc") {
|
|
configs -= [
|
|
"//build/config/compiler:chromium_code",
|
|
|
|
# Does not compile with sanitizers.
|
|
"//build/config/sanitizers:default_sanitizer_flags",
|
|
]
|
|
|
|
configs += [
|
|
"//build/config/compiler:no_chromium_code",
|
|
|
|
# Must be after no_chromium_code so warning flags are ordered correctly.
|
|
":android_protoc_warnings",
|
|
]
|
|
|
|
deps = [
|
|
"//build/config:exe_and_shlib_deps",
|
|
"//third_party/zlib",
|
|
]
|
|
|
|
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_field.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_extension.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_field.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_file.cc",
|
|
"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_message.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_message_field.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_service.cc",
|
|
"src/src/google/protobuf/compiler/cpp/cpp_string_field.cc",
|
|
"src/src/google/protobuf/compiler/importer.cc",
|
|
"src/src/google/protobuf/compiler/java/java_context.cc",
|
|
"src/src/google/protobuf/compiler/java/java_doc_comment.cc",
|
|
"src/src/google/protobuf/compiler/java/java_enum.cc",
|
|
"src/src/google/protobuf/compiler/java/java_enum_field.cc",
|
|
"src/src/google/protobuf/compiler/java/java_extension.cc",
|
|
"src/src/google/protobuf/compiler/java/java_field.cc",
|
|
"src/src/google/protobuf/compiler/java/java_file.cc",
|
|
"src/src/google/protobuf/compiler/java/java_generator.cc",
|
|
"src/src/google/protobuf/compiler/java/java_generator_factory.cc",
|
|
"src/src/google/protobuf/compiler/java/java_helpers.cc",
|
|
"src/src/google/protobuf/compiler/java/java_lazy_message_field.cc",
|
|
"src/src/google/protobuf/compiler/java/java_message.cc",
|
|
"src/src/google/protobuf/compiler/java/java_message_field.cc",
|
|
"src/src/google/protobuf/compiler/java/java_name_resolver.cc",
|
|
"src/src/google/protobuf/compiler/java/java_primitive_field.cc",
|
|
"src/src/google/protobuf/compiler/java/java_service.cc",
|
|
"src/src/google/protobuf/compiler/java/java_shared_code_generator.cc",
|
|
"src/src/google/protobuf/compiler/java/java_string_field.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_enum.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_enum_field.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_field.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_file.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_generator.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_helpers.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_message.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_message_field.cc",
|
|
"src/src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_enum.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_enum_field.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_extension.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_field.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_file.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_generator.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_helpers.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_message.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_message_field.cc",
|
|
"src/src/google/protobuf/compiler/javanano/javanano_primitive_field.cc",
|
|
"src/src/google/protobuf/compiler/main.cc",
|
|
"src/src/google/protobuf/compiler/parser.cc",
|
|
"src/src/google/protobuf/compiler/plugin.cc",
|
|
"src/src/google/protobuf/compiler/plugin.pb.cc",
|
|
"src/src/google/protobuf/compiler/python/python_generator.cc",
|
|
"src/src/google/protobuf/compiler/subprocess.cc",
|
|
"src/src/google/protobuf/compiler/zip_writer.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/extension_set_heavy.cc",
|
|
"src/src/google/protobuf/generated_message_reflection.cc",
|
|
"src/src/google/protobuf/generated_message_util.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/strtod.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/io/zero_copy_stream_impl_lite.cc",
|
|
"src/src/google/protobuf/message.cc",
|
|
"src/src/google/protobuf/message_lite.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/stubs/atomicops_internals_x86_gcc.cc",
|
|
"src/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc",
|
|
"src/src/google/protobuf/stubs/common.cc",
|
|
"src/src/google/protobuf/stubs/hash.cc",
|
|
"src/src/google/protobuf/stubs/once.cc",
|
|
"src/src/google/protobuf/stubs/stringprintf.cc",
|
|
"src/src/google/protobuf/stubs/structurally_valid.cc",
|
|
"src/src/google/protobuf/stubs/strutil.cc",
|
|
"src/src/google/protobuf/stubs/substitute.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/wire_format_lite.cc",
|
|
]
|
|
|
|
include_dirs = [
|
|
"src/android",
|
|
"src/src",
|
|
]
|
|
|
|
defines = [
|
|
# This macro must be defined to suppress the use
|
|
# of dynamic_cast<>, which requires RTTI.
|
|
"GOOGLE_PROTOBUF_NO_RTTI",
|
|
"GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
|
|
]
|
|
}
|
|
}
|
|
|
|
if (is_android) {
|
|
import("//build/config/android/rules.gni")
|
|
|
|
android_library("protobuf_nano_javalib") {
|
|
chromium_code = false
|
|
java_files = [
|
|
"src/java/src/device/main/java/com/google/protobuf/nano/android/ParcelableExtendableMessageNano.java",
|
|
"src/java/src/device/main/java/com/google/protobuf/nano/android/ParcelableMessageNano.java",
|
|
"src/java/src/device/main/java/com/google/protobuf/nano/android/ParcelableMessageNanoCreator.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/CodedOutputByteBufferNano.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/ExtendableMessageNano.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/Extension.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/FieldArray.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/FieldData.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/InternalNano.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/InvalidProtocolBufferNanoException.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/MessageNano.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/UnknownFieldData.java",
|
|
"src/java/src/main/java/com/google/protobuf/nano/WireFormatNano.java",
|
|
]
|
|
}
|
|
}
|