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

Side by Side Diff: third_party/protobuf/conformance/Makefile.am

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 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
1 ## Process this file with automake to produce Makefile.in 1 ## Process this file with automake to produce Makefile.in
2 2
3 protoc_inputs = \ 3 conformance_protoc_inputs = \
4 conformance.proto 4 conformance.proto
5 5
6 well_known_type_protoc_inputs = \
7 $(top_srcdir)/src/google/protobuf/any.proto \
8 $(top_srcdir)/src/google/protobuf/duration.proto \
9 $(top_srcdir)/src/google/protobuf/field_mask.proto \
10 $(top_srcdir)/src/google/protobuf/struct.proto \
11 $(top_srcdir)/src/google/protobuf/timestamp.proto \
12 $(top_srcdir)/src/google/protobuf/wrappers.proto
13
14
6 protoc_outputs = \ 15 protoc_outputs = \
7 conformance.pb.cc \ 16 conformance.pb.cc \
8 conformance.pb.h 17 conformance.pb.h
9 18
10 other_language_protoc_outputs = \ 19 other_language_protoc_outputs = \
11 conformance.rb \
12 com/google/protobuf/conformance/Conformance.java \
13 conformance_pb2.py \ 20 conformance_pb2.py \
14 Conformance.pbobjc.h \ 21 Conformance.pbobjc.h \
15 Conformance.pbobjc.m 22 Conformance.pbobjc.m \
23 conformance.rb \
24 com/google/protobuf/Any.java \
25 com/google/protobuf/AnyOrBuilder.java \
26 com/google/protobuf/AnyProto.java \
27 com/google/protobuf/BoolValue.java \
28 com/google/protobuf/BoolValueOrBuilder.java \
29 com/google/protobuf/BytesValue.java \
30 com/google/protobuf/BytesValueOrBuilder.java \
31 com/google/protobuf/conformance/Conformance.java \
32 com/google/protobuf/DoubleValue.java \
33 com/google/protobuf/DoubleValueOrBuilder.java \
34 com/google/protobuf/Duration.java \
35 com/google/protobuf/DurationOrBuilder.java \
36 com/google/protobuf/DurationProto.java \
37 com/google/protobuf/FieldMask.java \
38 com/google/protobuf/FieldMaskOrBuilder.java \
39 com/google/protobuf/FieldMaskProto.java \
40 com/google/protobuf/FloatValue.java \
41 com/google/protobuf/FloatValueOrBuilder.java \
42 com/google/protobuf/Int32Value.java \
43 com/google/protobuf/Int32ValueOrBuilder.java \
44 com/google/protobuf/Int64Value.java \
45 com/google/protobuf/Int64ValueOrBuilder.java \
46 com/google/protobuf/ListValue.java \
47 com/google/protobuf/ListValueOrBuilder.java \
48 com/google/protobuf/NullValue.java \
49 com/google/protobuf/StringValue.java \
50 com/google/protobuf/StringValueOrBuilder.java \
51 com/google/protobuf/Struct.java \
52 com/google/protobuf/StructOrBuilder.java \
53 com/google/protobuf/StructProto.java \
54 com/google/protobuf/Timestamp.java \
55 com/google/protobuf/TimestampOrBuilder.java \
56 com/google/protobuf/TimestampProto.java \
57 com/google/protobuf/UInt32Value.java \
58 com/google/protobuf/UInt32ValueOrBuilder.java \
59 com/google/protobuf/UInt64Value.java \
60 com/google/protobuf/UInt64ValueOrBuilder.java \
61 com/google/protobuf/Value.java \
62 com/google/protobuf/ValueOrBuilder.java \
63 com/google/protobuf/WrappersProto.java \
64 google/protobuf/any.pb.cc \
65 google/protobuf/any.pb.h \
66 google/protobuf/any.rb \
67 google/protobuf/any_pb2.py \
68 google/protobuf/duration.pb.cc \
69 google/protobuf/duration.pb.h \
70 google/protobuf/duration.rb \
71 google/protobuf/duration_pb2.py \
72 google/protobuf/field_mask.pb.cc \
73 google/protobuf/field_mask.pb.h \
74 google/protobuf/field_mask.rb \
75 google/protobuf/field_mask_pb2.py \
76 google/protobuf/struct.pb.cc \
77 google/protobuf/struct.pb.h \
78 google/protobuf/struct.rb \
79 google/protobuf/struct_pb2.py \
80 google/protobuf/timestamp.pb.cc \
81 google/protobuf/timestamp.pb.h \
82 google/protobuf/timestamp.rb \
83 google/protobuf/timestamp_pb2.py \
84 google/protobuf/wrappers.pb.cc \
85 google/protobuf/wrappers.pb.h \
86 google/protobuf/wrappers.rb \
87 google/protobuf/wrappers_pb2.py \
88 lite/com/google/protobuf/Any.java \
89 lite/com/google/protobuf/AnyOrBuilder.java \
90 lite/com/google/protobuf/AnyProto.java \
91 lite/com/google/protobuf/BoolValue.java \
92 lite/com/google/protobuf/BoolValueOrBuilder.java \
93 lite/com/google/protobuf/BytesValue.java \
94 lite/com/google/protobuf/BytesValueOrBuilder.java \
95 lite/com/google/protobuf/conformance/Conformance.java \
96 lite/com/google/protobuf/DoubleValue.java \
97 lite/com/google/protobuf/DoubleValueOrBuilder.java \
98 lite/com/google/protobuf/Duration.java \
99 lite/com/google/protobuf/DurationOrBuilder.java \
100 lite/com/google/protobuf/DurationProto.java \
101 lite/com/google/protobuf/FieldMask.java \
102 lite/com/google/protobuf/FieldMaskOrBuilder.java \
103 lite/com/google/protobuf/FieldMaskProto.java \
104 lite/com/google/protobuf/FloatValue.java \
105 lite/com/google/protobuf/FloatValueOrBuilder.java \
106 lite/com/google/protobuf/Int32Value.java \
107 lite/com/google/protobuf/Int32ValueOrBuilder.java \
108 lite/com/google/protobuf/Int64Value.java \
109 lite/com/google/protobuf/Int64ValueOrBuilder.java \
110 lite/com/google/protobuf/ListValue.java \
111 lite/com/google/protobuf/ListValueOrBuilder.java \
112 lite/com/google/protobuf/NullValue.java \
113 lite/com/google/protobuf/StringValue.java \
114 lite/com/google/protobuf/StringValueOrBuilder.java \
115 lite/com/google/protobuf/Struct.java \
116 lite/com/google/protobuf/StructOrBuilder.java \
117 lite/com/google/protobuf/StructProto.java \
118 lite/com/google/protobuf/Timestamp.java \
119 lite/com/google/protobuf/TimestampOrBuilder.java \
120 lite/com/google/protobuf/TimestampProto.java \
121 lite/com/google/protobuf/UInt32Value.java \
122 lite/com/google/protobuf/UInt32ValueOrBuilder.java \
123 lite/com/google/protobuf/UInt64Value.java \
124 lite/com/google/protobuf/UInt64ValueOrBuilder.java \
125 lite/com/google/protobuf/Value.java \
126 lite/com/google/protobuf/ValueOrBuilder.java \
127 lite/com/google/protobuf/WrappersProto.java
16 128
17 bin_PROGRAMS = conformance-test-runner conformance-cpp 129 bin_PROGRAMS = conformance-test-runner conformance-cpp
18 130
19 # All source files excepet C++/Objective-C ones should be explicitly listed 131 # All source files excepet C++/Objective-C ones should be explicitly listed
20 # here because the autoconf tools don't include files of other languages 132 # here because the autoconf tools don't include files of other languages
21 # automatically. 133 # automatically.
22 EXTRA_DIST = \ 134 EXTRA_DIST = \
23 ConformanceJava.java \ 135 ConformanceJava.java \
136 ConformanceJavaLite.java \
24 README.md \ 137 README.md \
25 conformance.proto \ 138 conformance.proto \
26 conformance_python.py \ 139 conformance_python.py \
27 conformance_ruby.rb \ 140 conformance_ruby.rb \
28 failure_list_cpp.txt \ 141 failure_list_cpp.txt \
29 failure_list_csharp.txt \ 142 failure_list_csharp.txt \
30 failure_list_java.txt \ 143 failure_list_java.txt \
31 failure_list_objc.txt \ 144 failure_list_objc.txt \
32 failure_list_python.txt \ 145 failure_list_python.txt \
33 failure_list_python_cpp.txt \ 146 failure_list_python_cpp.txt \
147 failure_list_python-post26.txt \
34 failure_list_ruby.txt 148 failure_list_ruby.txt
35 149
36 conformance_test_runner_LDADD = $(top_srcdir)/src/libprotobuf.la 150 conformance_test_runner_LDADD = $(top_srcdir)/src/libprotobuf.la
37 conformance_test_runner_SOURCES = conformance_test.h conformance_test.cc \ 151 conformance_test_runner_SOURCES = conformance_test.h conformance_test.cc \
38 conformance_test_runner.cc \ 152 conformance_test_runner.cc \
39 third_party/jsoncpp/json.h \ 153 third_party/jsoncpp/json.h \
40 third_party/jsoncpp/jsoncpp.cpp 154 third_party/jsoncpp/jsoncpp.cpp
41 nodist_conformance_test_runner_SOURCES = conformance.pb.cc 155 nodist_conformance_test_runner_SOURCES = conformance.pb.cc
42 conformance_test_runner_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir) 156 conformance_test_runner_CPPFLAGS = -I$(top_srcdir)/src -I$(srcdir)
43 conformance_test_runner_CXXFLAGS = -std=c++11 157 conformance_test_runner_CXXFLAGS = -std=c++11
(...skipping 23 matching lines...) Expand all
67 conformance_objc_CPPFLAGS = -I$(top_srcdir)/objectivec -isysroot `xcrun --sdk ma cosx --show-sdk-path` 181 conformance_objc_CPPFLAGS = -I$(top_srcdir)/objectivec -isysroot `xcrun --sdk ma cosx --show-sdk-path`
68 conformance_objc_LDFLAGS = -framework Foundation 182 conformance_objc_LDFLAGS = -framework Foundation
69 # Explicit dep beacuse BUILT_SOURCES are only done before a "make all/check" 183 # Explicit dep beacuse BUILT_SOURCES are only done before a "make all/check"
70 # so a direct "make test_objc" could fail if parallel enough. 184 # so a direct "make test_objc" could fail if parallel enough.
71 conformance_objc-conformance_objc.$(OBJEXT): Conformance.pbobjc.h 185 conformance_objc-conformance_objc.$(OBJEXT): Conformance.pbobjc.h
72 186
73 endif 187 endif
74 188
75 if USE_EXTERNAL_PROTOC 189 if USE_EXTERNAL_PROTOC
76 190
77 protoc_middleman: $(protoc_inputs) 191 # Some implementations include pre-generated versions of well-known types.
78 » $(PROTOC) -I$(srcdir) --cpp_out=. --java_out=. --ruby_out=. --objc_out=. --python_out=.$^ 192 protoc_middleman: $(conformance_protoc_inputs) $(well_known_type_protoc_inputs)
193 » $(PROTOC) -I$(srcdir) -I$(top_srcdir) --cpp_out=. --java_out=. --ruby_ou t=. --objc_out=. --python_out=. $(conformance_protoc_inputs)
194 » $(PROTOC) -I$(srcdir) -I$(top_srcdir) --cpp_out=. --java_out=. --ruby_ou t=. --python_out=. $(well_known_type_protoc_inputs)
195 » $(PROTOC) -I$(srcdir) -I$(top_srcdir) --java_out=lite:lite $(conformance _protoc_inputs) $(well_known_type_protoc_inputs)
79 touch protoc_middleman 196 touch protoc_middleman
80 197
81 else 198 else
82 199
83 # We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is 200 # We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is
84 # relative to srcdir, which may not be the same as the current directory when 201 # relative to srcdir, which may not be the same as the current directory when
85 # building out-of-tree. 202 # building out-of-tree.
86 protoc_middleman: $(top_srcdir)/src/protoc$(EXEEXT) $(protoc_inputs) 203 protoc_middleman: $(top_srcdir)/src/protoc$(EXEEXT) $(conformance_protoc_inputs) $(well_known_type_protoc_inputs)
87 » oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I $(top_srcdir)/src --cpp_out=$$oldpwd --java_out=$$oldpwd --ruby_out=$$oldpwd --o bjc_out=$$oldpwd --python_out=$$oldpwd $(protoc_inputs) ) 204 » oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I $(top_srcdir)/src --cpp_out=$$oldpwd --java_out=$$oldpwd --ruby_out=$$oldpwd --o bjc_out=$$oldpwd --python_out=$$oldpwd $(conformance_protoc_inputs) )
205 » oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I $(top_srcdir)/src --cpp_out=$$oldpwd --java_out=$$oldpwd --ruby_out=$$oldpwd --p ython_out=$$oldpwd $(well_known_type_protoc_inputs) )
206 » @mkdir -p lite
207 » oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/../src/protoc$(EXEEXT) -I. -I $(top_srcdir)/src --java_out=lite:$$oldpwd/lite $(conformance_protoc_inputs) $(w ell_known_type_protoc_inputs) )
88 touch protoc_middleman 208 touch protoc_middleman
89 209
90 endif 210 endif
91 211
92 $(protoc_outputs): protoc_middleman 212 $(protoc_outputs): protoc_middleman
93 213
94 $(other_language_protoc_outputs): protoc_middleman 214 $(other_language_protoc_outputs): protoc_middleman
95 215
96 BUILT_SOURCES = $(protoc_outputs) $(other_language_protoc_outputs) 216 BUILT_SOURCES = $(protoc_outputs) $(other_language_protoc_outputs)
97 217
98 CLEANFILES = $(protoc_outputs) protoc_middleman javac_middleman conformance-java conformance-csharp $(other_language_protoc_outputs) 218 CLEANFILES = $(protoc_outputs) protoc_middleman javac_middleman conformance-java javac_middleman_lite conformance-java-lite conformance-csharp $(other_language_ protoc_outputs)
99 219
100 MAINTAINERCLEANFILES = \ 220 MAINTAINERCLEANFILES = \
101 Makefile.in 221 Makefile.in
102 222
103 javac_middleman: ConformanceJava.java protoc_middleman $(other_language_protoc_o utputs) 223 javac_middleman: ConformanceJava.java protoc_middleman $(other_language_protoc_o utputs)
104 » jar=`ls ../java/util/target/*.jar` && javac -classpath ../java/target/cl asses:$$jar ConformanceJava.java com/google/protobuf/conformance/Conformance.jav a 224 » jar=`ls ../java/util/target/*jar-with-dependencies.jar` && javac -classp ath ../java/target/classes:$$jar ConformanceJava.java com/google/protobuf/confor mance/Conformance.java
105 @touch javac_middleman 225 @touch javac_middleman
106 226
107 conformance-java: javac_middleman 227 conformance-java: javac_middleman
108 @echo "Writing shortcut script conformance-java..." 228 @echo "Writing shortcut script conformance-java..."
109 @echo '#! /bin/sh' > conformance-java 229 @echo '#! /bin/sh' > conformance-java
110 » @jar=`ls ../java/util/target/*.jar` && echo java -classpath .:../java/ta rget/classes:$$jar ConformanceJava '$$@' >> conformance-java 230 » @jar=`ls ../java/util/target/*jar-with-dependencies.jar` && echo java -c lasspath .:../java/target/classes:$$jar ConformanceJava '$$@' >> conformance-jav a
111 @chmod +x conformance-java 231 @chmod +x conformance-java
112 232
233 javac_middleman_lite: ConformanceJavaLite.java protoc_middleman $(other_language _protoc_outputs)
234 javac -classpath ../java/lite/target/classes:lite ConformanceJavaLite.ja va lite/com/google/protobuf/conformance/Conformance.java
235 @touch javac_middleman_lite
236
237 conformance-java-lite: javac_middleman_lite
238 @echo "Writing shortcut script conformance-java-lite..."
239 @echo '#! /bin/sh' > conformance-java-lite
240 @echo java -classpath .:../java/lite/target/classes:lite ConformanceJava Lite '$$@' >> conformance-java-lite
241 @chmod +x conformance-java-lite
242
113 # Currently the conformance code is alongside the rest of the C# 243 # Currently the conformance code is alongside the rest of the C#
114 # source, as it's easier to maintain there. We assume we've already 244 # source, as it's easier to maintain there. We assume we've already
115 # built that, so we just need a script to run it. 245 # built that, so we just need a script to run it.
116 conformance-csharp: $(other_language_protoc_outputs) 246 conformance-csharp: $(other_language_protoc_outputs)
117 @echo "Writing shortcut script conformance-csharp..." 247 @echo "Writing shortcut script conformance-csharp..."
118 @echo '#! /bin/sh' > conformance-csharp 248 @echo '#! /bin/sh' > conformance-csharp
119 @echo 'mono ../csharp/src/Google.Protobuf.Conformance/bin/Release/Google .Protobuf.Conformance.exe "$$@"' >> conformance-csharp 249 @echo 'mono ../csharp/src/Google.Protobuf.Conformance/bin/Release/Google .Protobuf.Conformance.exe "$$@"' >> conformance-csharp
120 @chmod +x conformance-csharp 250 @chmod +x conformance-csharp
121 251
122 # Targets for actually running tests. 252 # Targets for actually running tests.
123 test_cpp: protoc_middleman conformance-test-runner conformance-cpp 253 test_cpp: protoc_middleman conformance-test-runner conformance-cpp
124 ./conformance-test-runner --failure_list failure_list_cpp.txt ./conforma nce-cpp 254 ./conformance-test-runner --failure_list failure_list_cpp.txt ./conforma nce-cpp
125 255
126 test_java: protoc_middleman conformance-test-runner conformance-java 256 test_java: protoc_middleman conformance-test-runner conformance-java
127 ./conformance-test-runner --failure_list failure_list_java.txt ./conform ance-java 257 ./conformance-test-runner --failure_list failure_list_java.txt ./conform ance-java
128 258
259 test_java_lite: protoc_middleman conformance-test-runner conformance-java-lite
260 ./conformance-test-runner ./conformance-java-lite
261
129 test_csharp: protoc_middleman conformance-test-runner conformance-csharp 262 test_csharp: protoc_middleman conformance-test-runner conformance-csharp
130 ./conformance-test-runner --failure_list failure_list_csharp.txt ./confo rmance-csharp 263 ./conformance-test-runner --failure_list failure_list_csharp.txt ./confo rmance-csharp
131 264
132 test_ruby: protoc_middleman conformance-test-runner $(other_language_protoc_outp uts) 265 test_ruby: protoc_middleman conformance-test-runner $(other_language_protoc_outp uts)
133 RUBYLIB=../ruby/lib:. ./conformance-test-runner --failure_list failure_l ist_ruby.txt ./conformance_ruby.rb 266 RUBYLIB=../ruby/lib:. ./conformance-test-runner --failure_list failure_l ist_ruby.txt ./conformance_ruby.rb
134 267
135 # These depend on library paths being properly set up. The easiest way to 268 # These depend on library paths being properly set up. The easiest way to
136 # run them is to just use "tox" from the python dir. 269 # run them is to just use "tox" from the python dir.
137 test_python: protoc_middleman conformance-test-runner 270 test_python: protoc_middleman conformance-test-runner
138 » ./conformance-test-runner --failure_list failure_list_python.txt ./confo rmance_python.py 271 » ./conformance-test-runner --failure_list failure_list_python.txt $(CONFO RMANCE_PYTHON_EXTRA_FAILURES) ./conformance_python.py
139 272
140 test_python_cpp: protoc_middleman conformance-test-runner 273 test_python_cpp: protoc_middleman conformance-test-runner
141 » ./conformance-test-runner --failure_list failure_list_python_cpp.txt ./c onformance_python.py 274 » ./conformance-test-runner --failure_list failure_list_python_cpp.txt $(C ONFORMANCE_PYTHON_EXTRA_FAILURES) ./conformance_python.py
142 275
143 if OBJC_CONFORMANCE_TEST 276 if OBJC_CONFORMANCE_TEST
144 277
145 test_objc: protoc_middleman conformance-test-runner conformance-objc 278 test_objc: protoc_middleman conformance-test-runner conformance-objc
146 ./conformance-test-runner --failure_list failure_list_objc.txt ./conform ance-objc 279 ./conformance-test-runner --failure_list failure_list_objc.txt ./conform ance-objc
147 280
148 endif 281 endif
OLDNEW
« no previous file with comments | « third_party/protobuf/conformance/ConformanceJavaLite.java ('k') | third_party/protobuf/conformance/conformance_objc.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698