Merge pull request #398 from protobuf-c/edmonds/issue330-requires-proto3

Makefile.am: Only enable the Issue #330 test case when building against protobuf 3.x
This commit is contained in:
Robert Edmonds 2019-10-17 20:19:43 -04:00 committed by GitHub
commit 9f89e64083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,7 @@ EXTRA_DIST += \
t/issue251/issue251.proto
# Issue #330
if BUILD_PROTO3
check_PROGRAMS += \
t/issue330/issue330
TESTS += \
@ -264,6 +265,7 @@ t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/
$(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
BUILT_SOURCES += \
t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
endif # BUILD_PROTO3
EXTRA_DIST += \
t/issue330/issue330.proto