Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: third_party/android_protobuf/BUILD.gn

Issue 580343002: Add proto_java_library to gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: = Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 if (current_toolchain == host_toolchain) {
6 # GYP: //third_party/android_protobuf/android_protobuf.gyp:android_protoc
7 executable("android_protoc") {
8 configs -= [ "//build/config/compiler:chromium_code" ]
9 configs += [ "//build/config/compiler:no_chromium_code" ]
10
11 deps = [
12 "//third_party/zlib"
13 ]
14
15 sources = [
16 "src/src/google/protobuf/descriptor.cc",
17 "src/src/google/protobuf/descriptor.pb.cc",
18 "src/src/google/protobuf/descriptor_database.cc",
19 "src/src/google/protobuf/dynamic_message.cc",
20 "src/src/google/protobuf/extension_set.cc",
21 "src/src/google/protobuf/extension_set_heavy.cc",
22 "src/src/google/protobuf/generated_message_reflection.cc",
23 "src/src/google/protobuf/generated_message_util.cc",
24 "src/src/google/protobuf/message.cc",
25 "src/src/google/protobuf/message_lite.cc",
26 "src/src/google/protobuf/reflection_ops.cc",
27 "src/src/google/protobuf/repeated_field.cc",
28 "src/src/google/protobuf/service.cc",
29 "src/src/google/protobuf/text_format.cc",
30 "src/src/google/protobuf/unknown_field_set.cc",
31 "src/src/google/protobuf/wire_format.cc",
32 "src/src/google/protobuf/wire_format_lite.cc",
33 "src/src/google/protobuf/compiler/code_generator.cc",
34 "src/src/google/protobuf/compiler/command_line_interface.cc",
35 "src/src/google/protobuf/compiler/importer.cc",
36 "src/src/google/protobuf/compiler/main.cc",
37 "src/src/google/protobuf/compiler/parser.cc",
38 "src/src/google/protobuf/compiler/plugin.cc",
39 "src/src/google/protobuf/compiler/plugin.pb.cc",
40 "src/src/google/protobuf/compiler/subprocess.cc",
41 "src/src/google/protobuf/compiler/zip_writer.cc",
42 "src/src/google/protobuf/compiler/cpp/cpp_enum.cc",
43 "src/src/google/protobuf/compiler/cpp/cpp_enum_field.cc",
44 "src/src/google/protobuf/compiler/cpp/cpp_extension.cc",
45 "src/src/google/protobuf/compiler/cpp/cpp_field.cc",
46 "src/src/google/protobuf/compiler/cpp/cpp_file.cc",
47 "src/src/google/protobuf/compiler/cpp/cpp_generator.cc",
48 "src/src/google/protobuf/compiler/cpp/cpp_helpers.cc",
49 "src/src/google/protobuf/compiler/cpp/cpp_message.cc",
50 "src/src/google/protobuf/compiler/cpp/cpp_message_field.cc",
51 "src/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc",
52 "src/src/google/protobuf/compiler/cpp/cpp_service.cc",
53 "src/src/google/protobuf/compiler/cpp/cpp_string_field.cc",
54 "src/src/google/protobuf/compiler/java/java_enum.cc",
55 "src/src/google/protobuf/compiler/java/java_enum_field.cc",
56 "src/src/google/protobuf/compiler/java/java_extension.cc",
57 "src/src/google/protobuf/compiler/java/java_field.cc",
58 "src/src/google/protobuf/compiler/java/java_file.cc",
59 "src/src/google/protobuf/compiler/java/java_generator.cc",
60 "src/src/google/protobuf/compiler/java/java_helpers.cc",
61 "src/src/google/protobuf/compiler/java/java_message.cc",
62 "src/src/google/protobuf/compiler/java/java_message_field.cc",
63 "src/src/google/protobuf/compiler/java/java_primitive_field.cc",
64 "src/src/google/protobuf/compiler/java/java_service.cc",
65 "src/src/google/protobuf/compiler/javamicro/javamicro_enum.cc",
66 "src/src/google/protobuf/compiler/javamicro/javamicro_enum_field.cc",
67 "src/src/google/protobuf/compiler/javamicro/javamicro_field.cc",
68 "src/src/google/protobuf/compiler/javamicro/javamicro_file.cc",
69 "src/src/google/protobuf/compiler/javamicro/javamicro_generator.cc",
70 "src/src/google/protobuf/compiler/javamicro/javamicro_helpers.cc",
71 "src/src/google/protobuf/compiler/javamicro/javamicro_message.cc",
72 "src/src/google/protobuf/compiler/javamicro/javamicro_message_field.cc",
73 "src/src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc",
74 "src/src/google/protobuf/compiler/javanano/javanano_enum.cc",
75 "src/src/google/protobuf/compiler/javanano/javanano_enum_field.cc",
76 "src/src/google/protobuf/compiler/javanano/javanano_extension.cc",
77 "src/src/google/protobuf/compiler/javanano/javanano_field.cc",
78 "src/src/google/protobuf/compiler/javanano/javanano_file.cc",
79 "src/src/google/protobuf/compiler/javanano/javanano_generator.cc",
80 "src/src/google/protobuf/compiler/javanano/javanano_helpers.cc",
81 "src/src/google/protobuf/compiler/javanano/javanano_message.cc",
82 "src/src/google/protobuf/compiler/javanano/javanano_message_field.cc",
83 "src/src/google/protobuf/compiler/javanano/javanano_primitive_field.cc",
84 "src/src/google/protobuf/compiler/python/python_generator.cc",
85 "src/src/google/protobuf/io/coded_stream.cc",
86 "src/src/google/protobuf/io/gzip_stream.cc",
87 "src/src/google/protobuf/io/printer.cc",
88 "src/src/google/protobuf/io/tokenizer.cc",
89 "src/src/google/protobuf/io/zero_copy_stream.cc",
90 "src/src/google/protobuf/io/zero_copy_stream_impl.cc",
91 "src/src/google/protobuf/io/zero_copy_stream_impl_lite.cc",
92 "src/src/google/protobuf/stubs/common.cc",
93 "src/src/google/protobuf/stubs/hash.cc",
94 "src/src/google/protobuf/stubs/once.cc",
95 "src/src/google/protobuf/stubs/structurally_valid.cc",
96 "src/src/google/protobuf/stubs/strutil.cc",
97 "src/src/google/protobuf/stubs/substitute.cc",
98 ]
99
100 include_dirs = [
101 "src/android",
102 "src/src",
103 ]
104
105 if (is_clang) {
106 cflags = [
107 "-Wno-null-conversion",
108 "-Wno-tautological-undefined-compare",
109 ]
110 }
111 defines = [
112 # This macro must be defined to suppress the use
113 # of dynamic_cast<>, which requires RTTI.
114 "GOOGLE_PROTOBUF_NO_RTTI",
115 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
116 ]
117 }
118 }
119
120 if (is_android) {
121 import("//build/config/android/rules.gni")
122
123 # GYP: //third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_javal ib
124 android_library("protobuf_nano_javalib") {
125 java_files = [
126 "src/java/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano. java",
127 "src/java/src/main/java/com/google/protobuf/nano/CodedOutputByteBufferNano .java",
128 "src/java/src/main/java/com/google/protobuf/nano/ExtendableMessageNano.jav a",
129 "src/java/src/main/java/com/google/protobuf/nano/Extension.java",
130 "src/java/src/main/java/com/google/protobuf/nano/InternalNano.java",
131 "src/java/src/main/java/com/google/protobuf/nano/InvalidProtocolBufferNano Exception.java",
132 "src/java/src/main/java/com/google/protobuf/nano/MessageNano.java",
133 "src/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java",
134 "src/java/src/main/java/com/google/protobuf/nano/UnknownFieldData.java",
135 "src/java/src/main/java/com/google/protobuf/nano/WireFormatNano.java",
136 ]
137 }
138 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/cacheinvalidation/BUILD.gn ('k') | third_party/cacheinvalidation/cacheinvalidation.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698