forked from imgui-rs/imgui-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also script file-copy procedure
- Loading branch information
Showing
20 changed files
with
5,494 additions
and
2,795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname ${0} | python3 -c 'import os, sys; print(os.path.abspath(sys.stdin.read().strip()))' ) | ||
IMGUI_DIR=${1:?} | ||
COMMITISH=${2:?} | ||
OUT_DIR=${3:?} | ||
|
||
# Location of temporary checkout of imgui at specified commit (or branch) | ||
CHECKOUT="${SCRIPT_DIR}"/_temp_imgui_worktree | ||
|
||
# Make checkout | ||
|
||
pushd "${IMGUI_DIR}" > /dev/null | ||
|
||
# Sanity check the supplied imgui path | ||
git rev-parse HEAD | ||
ls imgui.h | ||
|
||
# Get files from specified rev | ||
mkdir "${CHECKOUT}" | ||
git archive "${COMMITISH}" | tar xC "${CHECKOUT}" | ||
|
||
popd > /dev/null | ||
|
||
# Copy required files | ||
mkdir -p ${OUT_DIR}/ | ||
mkdir -p ${OUT_DIR}/misc/freetype/ | ||
|
||
cp "${CHECKOUT}"/LICENSE.txt "${OUT_DIR}"/ | ||
cp "${CHECKOUT}"/*.{h,cpp} "${OUT_DIR}"/ | ||
cp -r "${CHECKOUT}"/misc/freetype/ "${OUT_DIR}"/misc/ | ||
|
||
# Clean up | ||
|
||
rm -r "${CHECKOUT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,699 changes: 1,791 additions & 908 deletions
2,699
imgui-sys/third-party/imgui-docking/imgui/imgui.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
311 changes: 270 additions & 41 deletions
311
imgui-sys/third-party/imgui-docking/imgui/imgui_demo.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.