aboutsummaryrefslogtreecommitdiffstats
path: root/tools/expat
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-09-24 17:11:52 -0700
committerChristian Marangi <ansuelsmth@gmail.com>2022-09-29 19:33:17 +0200
commit89df3589e6237e5ad9b5cdd9f87c82987b200e37 (patch)
treeaf05a4a7bf8399cf873e2d476323fbdb41db7b59 /tools/expat
parentd602e7a969922121800e8f24d81cecdaab3aae75 (diff)
downloadupstream-89df3589e6237e5ad9b5cdd9f87c82987b200e37.tar.gz
upstream-89df3589e6237e5ad9b5cdd9f87c82987b200e37.tar.bz2
upstream-89df3589e6237e5ad9b5cdd9f87c82987b200e37.zip
tools/expat: build with autotools again
Allows to set expat as a dependency to cmake and save on compilation time. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/expat')
-rw-r--r--tools/expat/Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/expat/Makefile b/tools/expat/Makefile
index 7079dabcaf..975219efd8 100644
--- a/tools/expat/Makefile
+++ b/tools/expat/Makefile
@@ -15,19 +15,19 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_HASH:=a247a7f6bbb21cf2ca81ea4cbb916bfb9717ca523631675f99b3d4a5678dcd16
PKG_SOURCE_URL:=https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION))
+HOST_BUILD_PARALLEL:=1
+
include $(INCLUDE_DIR)/host-build.mk
-include $(INCLUDE_DIR)/cmake.mk
-
-CMAKE_HOST_OPTIONS += \
- -DDOCBOOK_TO_MAN=OFF \
- -DEXPAT_BUILD_TOOLS=OFF \
- -DEXPAT_BUILD_EXAMPLES=OFF \
- -DEXPAT_BUILD_TESTS=OFF \
- -DEXPAT_BUILD_DOCS=OFF \
- -DEXPAT_WITH_LIBBSD=OFF \
- -DEXPAT_ENABLE_INSTALL=ON \
- -DEXPAT_DTD=ON \
- -DEXPAT_NS=OFF \
- -DEXPAT_DEV_URANDOM=OFF
+
+HOSTCC := $(HOSTCC_NOCACHE)
+
+HOST_CONFIGURE_ARGS += \
+ --disable-shared \
+ --without-docbook \
+ --with-pic
+
+define Host/Uninstall
+ -$(call Host/Compile/Default,uninstall)
+endef
$(eval $(call HostBuild))