Skip to content

Commit

Permalink
Merge pull request #8 from JuliaImGui/update
Browse files Browse the repository at this point in the history
Bump for v1.91.5
  • Loading branch information
JamesWrigley authored Nov 19, 2024
2 parents f6cfecc + 8644f2b commit bf7194e
Show file tree
Hide file tree
Showing 20 changed files with 3,038 additions and 2,309 deletions.
6 changes: 5 additions & 1 deletion build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ end
# Regenerate the cimgui bindings with comments enabled
cd(joinpath(@__DIR__, "cimgui/generator")) do
script = read("generator.sh", String)
script = replace(script, "TARGETS=\"" => "TARGETS=\"comments ")
script = replace(script, "TARGETS=\"" => "TARGETS=\"comments "; count=1)
write("generator_with_comments.sh", script)
chmod("generator_with_comments.sh", 0o744)
run(`./generator_with_comments.sh`)

for json_file in filter(endswith(".json"), readdir("output"; join=true))
cp(json_file, joinpath(output_dir, basename(json_file)); force=true)
end

# Hack: cimgui.h is badly modified with comments turned on, so we reset it
# back to HEAD. See: https://github.com/cimgui/cimgui/issues/282
run(`git restore ../cimgui.h`)
end

# Generate the imgui_test_engine wrappers
Expand Down
Loading

0 comments on commit bf7194e

Please sign in to comment.