diff options
author | Amol Bhave <ambhave@fb.com> | 2018-12-29 12:17:29 -0800 |
---|---|---|
committer | Amol Bhave <ambhave@fb.com> | 2019-04-02 17:23:38 -0700 |
commit | ac5e3c6ece3e2a6632957e3d4e5f8fd6f1240be4 (patch) | |
tree | 9942294eeab2cceea80bbfa7bac1a91477f42207 /libs/libdouble-conversion/Makefile | |
parent | a816d32107571cbde0e95d890cf0b4c5b5cb63ca (diff) |
libdouble-conversion: Add host build to libdouble-conversion
This change adds the ability to produce host static build for the
libdouble-conversion library. Other host build tools can now depend on
this library if they need it.
Tested on a x86_64 host build machine.
make package/libdouble-conversion/host/compile produces
staging_dir/hostpkg/lib/libdouble-conversion.a file
Signed-off-by: Amol Bhave <ambhave@fb.com>
Diffstat (limited to 'libs/libdouble-conversion/Makefile')
-rw-r--r-- | libs/libdouble-conversion/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/libdouble-conversion/Makefile b/libs/libdouble-conversion/Makefile index 5bb3faf90..ac7e4f934 100644 --- a/libs/libdouble-conversion/Makefile +++ b/libs/libdouble-conversion/Makefile @@ -9,11 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdouble-conversion PKG_VERSION:=3.1.4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=double-conversion-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/google/double-conversion/tar.gz/v$(PKG_VERSION)? PKG_HASH:=95004b65e43fefc6100f337a25da27bb99b9ef8d4071a36a33b5e83eb1f82021 + +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/double-conversion-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/double-conversion-$(PKG_VERSION) PKG_MAINTAINER:= @@ -21,6 +23,7 @@ PKG_LICENSE:=BSD-3c PKG_LICENSE_FILES:=COPYING LICENSE include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk define Package/libdouble-conversion @@ -67,3 +70,4 @@ define Package/libdouble-conversion/install endef $(eval $(call BuildPackage,libdouble-conversion)) +$(eval $(call HostBuild)) |