protobuf.mk 589 B

123456789101112131415161718192021
  1. #############################################################
  2. #
  3. # protobuf
  4. #
  5. #############################################################
  6. PROTOBUF_VERSION = 2.4.1
  7. PROTOBUF_SOURCE = protobuf-$(PROTOBUF_VERSION).tar.gz
  8. PROTOBUF_SITE = http://protobuf.googlecode.com/files/
  9. # N.B. Need to use host protoc during cross compilation.
  10. PROTOBUF_DEPENDENCIES = host-protobuf
  11. PROTOBUF_CONF_OPT = --with-protoc=$(HOST_DIR)/usr/bin/protoc
  12. PROTOBUF_INSTALL_STAGING = YES
  13. ifeq ($(BR2_PACKAGE_ZLIB),y)
  14. PROTOBUF_DEPENDENCIES += zlib
  15. endif
  16. $(eval $(call AUTOTARGETS))
  17. $(eval $(call AUTOTARGETS,host))