Mercurial > hg
comparison Makefile @ 49831:d5b722ce9864 stable
make: add a target for building pyoxidizer tests on macOS
The resources seem to be embedded inside the binary, but for some reasons they
aren't read there. And since they are embedded, they aren't staged by the build
in the `lib` directory like on Windows. So copy them from the repo. We can
figure out what's going wrong later.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 05 Dec 2022 11:46:00 -0500 |
parents | 2edb41ed6c49 |
children | e3274e02d08e 010a1e73f69e |
comparison
equal
deleted
inserted
replaced
49830:bc59c1e5dd01 | 49831:d5b722ce9864 |
---|---|
258 | 258 |
259 pyoxidizer: | 259 pyoxidizer: |
260 $(PYOXIDIZER) build --path ./rust/hgcli --release | 260 $(PYOXIDIZER) build --path ./rust/hgcli --release |
261 | 261 |
262 | 262 |
263 PYOX_DIR=build/pyoxidizer/x86_64-pc-windows-msvc/release/app | |
264 | |
265 # a temporary target to setup all we need for run-tests.py --pyoxidizer | 263 # a temporary target to setup all we need for run-tests.py --pyoxidizer |
266 # (should go away as the run-tests implementation improves | 264 # (should go away as the run-tests implementation improves |
265 pyoxidizer-windows-tests: PYOX_DIR=build/pyoxidizer/x86_64-pc-windows-msvc/release/app | |
267 pyoxidizer-windows-tests: pyoxidizer | 266 pyoxidizer-windows-tests: pyoxidizer |
268 rm -rf $(PYOX_DIR)/templates | 267 rm -rf $(PYOX_DIR)/templates |
269 cp -ar $(PYOX_DIR)/lib/mercurial/templates $(PYOX_DIR)/templates | 268 cp -ar $(PYOX_DIR)/lib/mercurial/templates $(PYOX_DIR)/templates |
270 rm -rf $(PYOX_DIR)/helptext | 269 rm -rf $(PYOX_DIR)/helptext |
271 cp -ar $(PYOX_DIR)/lib/mercurial/helptext $(PYOX_DIR)/helptext | 270 cp -ar $(PYOX_DIR)/lib/mercurial/helptext $(PYOX_DIR)/helptext |
275 cp -ar contrib $(PYOX_DIR)/contrib | 274 cp -ar contrib $(PYOX_DIR)/contrib |
276 rm -rf $(PYOX_DIR)/doc | 275 rm -rf $(PYOX_DIR)/doc |
277 cp -ar doc $(PYOX_DIR)/doc | 276 cp -ar doc $(PYOX_DIR)/doc |
278 | 277 |
279 | 278 |
279 # a temporary target to setup all we need for run-tests.py --pyoxidizer | |
280 # (should go away as the run-tests implementation improves | |
281 pyoxidizer-macos-tests: PYOX_DIR=build/pyoxidizer/x86_64-apple-darwin/release/app | |
282 pyoxidizer-macos-tests: pyoxidizer | |
283 rm -rf $(PYOX_DIR)/templates | |
284 cp -a mercurial/templates $(PYOX_DIR)/templates | |
285 rm -rf $(PYOX_DIR)/helptext | |
286 cp -a mercurial/helptext $(PYOX_DIR)/helptext | |
287 rm -rf $(PYOX_DIR)/defaultrc | |
288 cp -a mercurial/defaultrc $(PYOX_DIR)/defaultrc | |
289 rm -rf $(PYOX_DIR)/contrib | |
290 cp -a contrib $(PYOX_DIR)/contrib | |
291 rm -rf $(PYOX_DIR)/doc | |
292 cp -a doc $(PYOX_DIR)/doc | |
293 | |
294 | |
280 .PHONY: help all local build doc cleanbutpackages clean install install-bin \ | 295 .PHONY: help all local build doc cleanbutpackages clean install install-bin \ |
281 install-doc install-home install-home-bin install-home-doc \ | 296 install-doc install-home install-home-bin install-home-doc \ |
282 dist dist-notests check tests rust-tests check-code format-c \ | 297 dist dist-notests check tests rust-tests check-code format-c \ |
283 update-pot pyoxidizer pyoxidizer-windows-tests \ | 298 update-pot pyoxidizer pyoxidizer-windows-tests pyoxidizer-macos-tests \ |
284 $(packaging_targets) \ | 299 $(packaging_targets) \ |
285 osx | 300 osx |