-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathjustfile
70 lines (50 loc) · 2.41 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Misc development utilities
# List all the targets in the justfile
default:
@just --list
# build emscripten
ems_build:
./ci_scripts/ems_build.sh
# Serve emscripten with CORS
ems_serve:
python ./ci_scripts/webserver_multithread_policy.py
# Reattach all submodules to branches and remotes (fork + official)
ext_reattach:
python -c "import sys; sys.path.append('external'); from bindings_generation import all_external_libraries; all_external_libraries.reattach_all_submodules()"
# Push a new tag to the imgui fork repository with the current date
imgui_tag:
cd external/imgui/imgui && git tag `date +'bundle_%Y%m%d'` && git push --tags
# Push a new tag to the imgui_test_engine fork repository with the current date
imgui_te_tag:
cd external/imgui_test_engine/imgui_test_engine && git tag `date +'bundle_%Y%m%d'` && git push --tags
# Rebase the imgui fork repository on the official repository (push a new tag before!)
imgui_rebase:
cd external/imgui/imgui && git fetch official && git rebase official/docking
# Rebase the imgui_test_engine fork repository on the official repository (push a new tag before!)
imgui_te_rebase:
cd external/imgui_test_engine/imgui_test_engine && git fetch official && git rebase official/main
# Runs a musllinux docker container (to test the musllinux cibuild)
cibuild_docker_musllinux:
docker run -it --rm quay.io/pypa/musllinux_1_1_x86_64 bash
# Runs a manylinux docker container (to test the manylinux cibuild)
cibuild_docker_manylinux:
docker run -it --rm quay.io/pypa/manylinux2014_x86_64 bash
# Run mypy on the bindings
mypy:
cd bindings && ./mypy_bindings.sh
# Build the doc
doc:
cd bindings/imgui_bundle/doc/scripts/ && ./build_doc.sh
# Build bundle doc in pdf, copy the pdf to the ramdisk
doc_pdf:
cd bindings/imgui_bundle/doc && asciidoctor-pdf Readme_source.adoc
mv bindings/imgui_bundle/doc/Readme_source.pdf /Volumes/ramdisk/imgui_bundle_manual.pdf
# Build hello_imgui doc in pdf, copy the pdf to the ramdisk
doc_him_pdf:
cd external/hello_imgui/hello_imgui/docs_src && jupyter-book build --builder pdfhtml .
cp external/hello_imgui/hello_imgui/docs_src/_build/pdf/book.pdf /Volumes/ramdisk/hello_imgui_manual.pdf
tutorial_book:
cd tutorial && just tutorial_book
# Create a new tutorial page from the template (pass a name relative to tutorial/)
tutorial_new name:
python tutorial/_tpl/instantiate_tutorial_template.py {{name}}