imgui-rs/imgui-sys/third-party/update-cimgui-output.sh
Joonas Javanainen 6ee5a2867b
Generate bindings for 1.76
cimgui has changed a lot, and the default bindings include a lot of
internal stuff that we (probably) don't want. Therefore we stop checking
out cimgui as a submodule and just use it as a tool instead.
2020-06-05 16:08:40 +03:00

14 lines
247 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR=$(dirname ${0})
CIMGUI_DIR=${1:?}
echo "${SCRIPT_DIR}"
pushd "${CIMGUI_DIR}"/generator > /dev/null
luajit generator.lua gcc false
popd > /dev/null
cp "${CIMGUI_DIR}"/generator/output/* "${SCRIPT_DIR}"/