Protobuf model and library code for oaktree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # Copyright (c) 2016 Red Hat, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  12. # implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ACLOCAL_AMFLAGS = -I m4
  16. SUFFIXES =
  17. lib_LTLIBRARIES = liboaktreemodel.la
  18. noinst_LTLIBRARIES =
  19. SUBDIRS= .
  20. DIST_SUBDIRS = ${SUBDIRS}
  21. BUILT_SOURCES=
  22. BUILT_MAINT_SRC=
  23. EXTRA_DIST= \
  24. config/pandora_vc_revinfo \
  25. ${top_srcdir}/m4/*m4
  26. CLEANFILES= ${BUILT_SOURCES}
  27. DISTCLEANFILES= config/top.h
  28. MAINTAINERCLEANFILES=
  29. MAINTAINERCLEANFILES+= autom4te.cache
  30. maintainer-clean-local:
  31. find . -type f -name '*~' -exec rm -f '{}' \;
  32. -rm -rf @PACKAGE@-*.rpm
  33. -rm -rf @PACKAGE@-*.tar.gz
  34. -rm -r -f autom4te.cache
  35. -rm -f Makefile.in
  36. -rm -f aclocal.m4
  37. -rm -f config/config.guess
  38. -rm -f config/config.sub
  39. -rm -f config/depcomp
  40. -rm -f config/install-sh
  41. -rm -f config/ltmain.sh
  42. -rm -f config/missing
  43. -rm -f config.in
  44. -rm -f config.log
  45. -rm -f config.status
  46. -rm -f configure
  47. -rm -f m4/libtool.m4
  48. -rm -f m4/ltoptions.m4
  49. -rm -f m4/ltsugar.m4
  50. -rm -f m4/ltversion.m4
  51. -rm -f m4/lt~obsolete.m4
  52. liboaktreemodel_la_CXXFLAGS = ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS} ${NO_WERROR}
  53. liboaktreemodel_la_SOURCES = \
  54. oaktreemodel/common.pb.cc \
  55. oaktreemodel/flavor.pb.cc \
  56. oaktreemodel/floating_ip.pb.cc \
  57. oaktreemodel/image.pb.cc \
  58. oaktreemodel/security_group.pb.cc \
  59. oaktreemodel/oaktree.pb.cc \
  60. oaktreemodel/oaktree.grpc.pb.cc
  61. pkginclude_HEADERS = \
  62. oaktreemodel/common.pb.h \
  63. oaktreemodel/flavor.pb.h \
  64. oaktreemodel/floating_ip.pb.h \
  65. oaktreemodel/image.pb.h \
  66. oaktreemodel/security_group.pb.h \
  67. oaktreemodel/oaktree.pb.h \
  68. oaktreemodel/oaktree.grpc.pb.h
  69. # TODO: There is a lot of repetition here
  70. BUILT_SOURCES += \
  71. oaktreemodel/common.pb.cc \
  72. oaktreemodel/common.pb.h \
  73. oaktreemodel/common_pb2.py \
  74. oaktreemodel/flavor.pb.cc \
  75. oaktreemodel/flavor.pb.h \
  76. oaktreemodel/flavor_pb2.py \
  77. oaktreemodel/floating_ip.pb.cc \
  78. oaktreemodel/floating_ip.pb.h \
  79. oaktreemodel/floating_ip_pb2.py \
  80. oaktreemodel/image.pb.cc \
  81. oaktreemodel/image.pb.h \
  82. oaktreemodel/image_pb2.py \
  83. oaktreemodel/oaktree.grpc.pb.cc \
  84. oaktreemodel/oaktree.grpc.pb.h \
  85. oaktreemodel/oaktree.pb.cc \
  86. oaktreemodel/oaktree.pb.h \
  87. oaktreemodel/oaktree_pb2.py \
  88. oaktreemodel/security_group.pb.cc \
  89. oaktreemodel/security_group.pb.h \
  90. oaktreemodel/security_group_pb2.py
  91. if HAVE_GO_PLUGIN
  92. BUILT_SOURCES += \
  93. oaktreemodel/common.pb.go \
  94. oaktreemodel/flavor.pb.go \
  95. oaktreemodel/floating_ip.pb.go \
  96. oaktreemodel/image.pb.go \
  97. oaktreemodel/oaktree.pb.go \
  98. oaktreemodel/security_group.pb.go
  99. endif
  100. EXTRA_DIST += \
  101. oaktreemodel/common.proto \
  102. oaktreemodel/flavor.proto \
  103. oaktreemodel/floating_ip.proto \
  104. oaktreemodel/image.proto \
  105. oaktreemodel/security_group.proto \
  106. oaktreemodel/oaktree.proto
  107. SUFFIXES += .proto .grpc.pb.cc .grpc.pb.h .pb.cc .pb.h py .pb.go
  108. PROTOS_PATH=${top_srcdir}/oaktreemodel
  109. PROTO_OUTPUT=${top_builddir}/oaktreemodel
  110. .proto.grpc.pb.cc:
  111. $(PROTOC) -I $(PROTOS_PATH) \
  112. --grpc_out=${PROTO_OUTPUT} \
  113. --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN} $<
  114. .proto.grpc.pb.h:
  115. $(PROTOC) -I $(PROTOS_PATH) \
  116. --grpc_out=${PROTO_OUTPUT} \
  117. --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN} $<
  118. .proto.pb.cc:
  119. $(PROTOC) -I $(PROTOS_PATH) --cpp_out=${PROTO_OUTPUT} $<
  120. $(PROTOC) -I $(PROTOS_PATH) --go_out=${PROTO_OUTPUT} $<
  121. .proto.pb.h:
  122. $(PROTOC) -I $(PROTOS_PATH) --cpp_out=${PROTO_OUTPUT} $<
  123. .proto.pb.go:
  124. $(PROTOC) -I $(PROTOS_PATH) --go_out=${PROTO_OUTPUT} $<
  125. # Have to do this with make matching not automake matching
  126. # Yay _pb2.py extension!
  127. %_pb2.py: %.proto
  128. python -m grpc.tools.protoc -I $(PROTOS_PATH) \
  129. --python_out=${PROTO_OUTPUT} \
  130. --grpc_python_out=${PROTO_OUTPUT} $<