Patchwork D9291: make: add a pyoxidizer target

login
register
mail settings
Submitter phabricator
Date Nov. 10, 2020, 6:17 p.m.
Message ID <differential-rev-PHID-DREV-vwnsob2gafgaejjfg62q-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47565/
State Superseded
Headers show

Comments

phabricator - Nov. 10, 2020, 6:17 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9291

AFFECTED FILES
  Makefile

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -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