Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= flatbuffers
  5. PKG_VERSION:= 2.0.6
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= e2dc24985a85b278dd06313481a9ca051d048f9474e0f199e372fea3ea4248c9
  8. PKG_DESCR:= cross platform serialization library
  9. PKG_SECTION:= libs/misc
  10. PKG_BUILDDEP:= flatbuffers-host
  11. PKG_URL:= https://github.com/google/flatbuffers
  12. PKG_SITES:= https://github.com/google/flatbuffers/archive/refs/tags/
  13. PKG_OPTS:= dev
  14. DISTFILES:= v$(PKG_VERSION).tar.gz
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,FLATBUFFERS,flatbuffers,$(PKG_VERSION)-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,FLATBUFFERS,flatbuffers,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  19. HOST_CONFIG_STYLE:= cmake
  20. CONFIG_STYLE:= cmake
  21. CMAKE_FLAGS+= -DFLATBUFFERS_BUILD_TESTS=OFF \
  22. -DFLATBUFFERS_BUILD_FLATC=OFF \
  23. -DFLATBUFFERS_BUILD_FLATHASH=OFF
  24. HOST_CMAKE_FLAGS+= -DFLATBUFFERS_BUILD_TESTS=OFF \
  25. -DFLATBUFFERS_BUILD_FLATC=ON \
  26. -DFLATBUFFERS_BUILD_FLATHASH=ON
  27. flatbuffers-install:
  28. include ${ADK_TOPDIR}/mk/host-bottom.mk
  29. include $(ADK_TOPDIR)/mk/pkg-bottom.mk