changeset 45852:be6544a05e8f

make: add a pyoxidizer target Differential Revision: https://phab.mercurial-scm.org/D9291
author Augie Fackler <augie@google.com>
date Tue, 01 Sep 2020 11:03:47 -0400
parents 867385f45559
children e01ea8325859
files Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Nov 10 12:44:15 2020 -0500
+++ b/Makefile	Tue Sep 01 11:03:47 2020 -0400
@@ -15,6 +15,8 @@
 PYTHON?=python3
 endif
 
+PYOXIDIZER?=pyoxidizer
+
 $(eval HGROOT := $(shell pwd))
 HGPYTHONS ?= $(HGROOT)/build/pythons
 PURE=
@@ -259,9 +261,12 @@
 	  --resources contrib/packaging/macosx/ \
 	  "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg
 
+pyoxidizer:
+	$(PYOXIDIZER) build --path ./rust/hgcli --release
+
 .PHONY: help all local build doc cleanbutpackages clean install install-bin \
 	install-doc install-home install-home-bin install-home-doc \
 	dist dist-notests check tests rust-tests check-code format-c \
-	update-pot \
+	update-pot pyoxidizer \
 	$(packaging_targets) \
 	osx