protobuf-c.mk 809 B

12345678910111213141516171819202122
  1. ################################################################################
  2. #
  3. # protobuf-c
  4. #
  5. ################################################################################
  6. PROTOBUF_C_VERSION = 1.5.0
  7. PROTOBUF_C_SITE = https://github.com/protobuf-c/protobuf-c/releases/download/v$(PROTOBUF_C_VERSION)
  8. PROTOBUF_C_DEPENDENCIES = host-protobuf-c
  9. HOST_PROTOBUF_C_DEPENDENCIES = host-protobuf host-pkgconf
  10. PROTOBUF_C_MAKE = $(MAKE1)
  11. PROTOBUF_C_CONF_OPTS = --disable-protoc
  12. PROTOBUF_C_INSTALL_STAGING = YES
  13. PROTOBUF_C_LICENSE = BSD-2-Clause
  14. PROTOBUF_C_LICENSE_FILES = LICENSE
  15. PROTOBUF_C_CPE_ID_VALID = YES
  16. # when building with protoc (from host-protobuf) c++17 is now required
  17. HOST_PROTOBUF_C_CONF_ENV += CXXFLAGS="$(HOST_CXXFLAGS) -std=c++17"
  18. $(eval $(autotools-package))
  19. $(eval $(host-autotools-package))