Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGbe6544a05e8f: make: add a pyoxidizer target
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
| indygreg |
| hg-reviewers |
| No Linters Available |
| No Unit Test Coverage |
| # | # | ||||
| # Windows ships Python 3 as `python.exe`. | # Windows ships Python 3 as `python.exe`. | ||||
| ifeq ($(OS),Windows_NT) | ifeq ($(OS),Windows_NT) | ||||
| PYTHON?=python | PYTHON?=python | ||||
| else | else | ||||
| PYTHON?=python3 | PYTHON?=python3 | ||||
| endif | endif | ||||
| PYOXIDIZER?=pyoxidizer | |||||
| $(eval HGROOT := $(shell pwd)) | $(eval HGROOT := $(shell pwd)) | ||||
| HGPYTHONS ?= $(HGROOT)/build/pythons | HGPYTHONS ?= $(HGROOT)/build/pythons | ||||
| PURE= | PURE= | ||||
| PYFILESCMD=find mercurial hgext doc -name '*.py' | PYFILESCMD=find mercurial hgext doc -name '*.py' | ||||
| PYFILES:=$(shell $(PYFILESCMD)) | PYFILES:=$(shell $(PYFILESCMD)) | ||||
| DOCFILES=mercurial/helptext/*.txt | DOCFILES=mercurial/helptext/*.txt | ||||
| export LANGUAGE=C | export LANGUAGE=C | ||||
| export LC_ALL=C | export LC_ALL=C | ||||
| --version "$${HGVER}" \ | --version "$${HGVER}" \ | ||||
| build/mercurial.pkg && \ | build/mercurial.pkg && \ | ||||
| productbuild --distribution contrib/packaging/macosx/distribution.xml \ | productbuild --distribution contrib/packaging/macosx/distribution.xml \ | ||||
| --package-path build/ \ | --package-path build/ \ | ||||
| --version "$${HGVER}" \ | --version "$${HGVER}" \ | ||||
| --resources contrib/packaging/macosx/ \ | --resources contrib/packaging/macosx/ \ | ||||
| "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg | "$${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 \ | .PHONY: help all local build doc cleanbutpackages clean install install-bin \ | ||||
| install-doc install-home install-home-bin install-home-doc \ | install-doc install-home install-home-bin install-home-doc \ | ||||
| dist dist-notests check tests rust-tests check-code format-c \ | dist dist-notests check tests rust-tests check-code format-c \ | ||||
| update-pot \ | update-pot pyoxidizer \ | ||||
| $(packaging_targets) \ | $(packaging_targets) \ | ||||
| osx | osx | ||||