The plugin is only activated when protoc supports optional fields, which
is required by the OT protos.
types.pb.cc: $(srcdir)/proto/types.proto
$(V_PROTOC)$(PROTOC) $(PROTOC_FLAGS) -I$(srcdir)/proto --cpp_out=$(builddir) \
$(srcdir)/proto/types.proto
+endif
+endif
+if BUILD_PLUGIN_WRITE_OPEN_TELEMETRY
BUILT_SOURCES += \
opentelemetry/proto/collector/metrics/v1/metrics_service.grpc.pb.cc \
opentelemetry/proto/collector/metrics/v1/metrics_service.pb.cc \
opentelemetry/proto/resource/v1/resource.pb.cc: $(srcdir)/opentelemetry-proto/opentelemetry/proto/common/v1/common.proto
$(V_PROTOC)$(PROTOC) $(PROTOC_FLAGS) -I$(srcdir)/opentelemetry-proto --cpp_out=$(builddir) $<
-
-endif
endif
install-exec-hook: