forked from floooh/dcimgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·22 lines (18 loc) · 1.02 KB
/
release.sh
File metadata and controls
executable file
·22 lines (18 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set -e
echo "Version: $1"
# main branch
git clone --depth 1 --branch $1 https://github.com/ocornut/imgui
git clone --depth 1 --branch $1-docking https://github.com/ocornut/imgui imgui-docking
git clone --depth 1 https://github.com/dearimgui/dear_bindings
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r dear_bindings/requirements.txt
mkdir -p src
python3 dear_bindings/dear_bindings.py -o src/cimgui --custom-namespace-prefix ig imgui/imgui.h
python3 dear_bindings/dear_bindings.py -o src/cimgui_internal --custom-namespace-prefix ig --include imgui/imgui.h imgui/imgui_internal.h
cp imgui/*.h imgui/*.cpp imgui/LICENSE.txt src/
# docking branch
mkdir -p src-docking
python3 dear_bindings/dear_bindings.py -o src-docking/cimgui --custom-namespace-prefix ig imgui-docking/imgui.h
python3 dear_bindings/dear_bindings.py -o src-docking/cimgui_internal --custom-namespace-prefix ig --include imgui-docking/imgui.h imgui-docking/imgui_internal.h
cp imgui-docking/*.h imgui-docking/*.cpp imgui-docking/LICENSE.txt src-docking/