Skip to content

Commit

Permalink
Merge pull request #4 from JuliaImGui/v1.91.0
Browse files Browse the repository at this point in the history
v1.91.0
  • Loading branch information
JamesWrigley authored Sep 3, 2024
2 parents 85d8bdb + 25b735c commit e5b972c
Show file tree
Hide file tree
Showing 44 changed files with 57,449 additions and 219 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ related packages:
- [cimgui](https://github.com/cimgui/cimgui)
- [cimplot](https://github.com/cimgui/cimplot)
- [cimnodes](https://github.com/cimgui/cimnodes)
- [test_engine/imgui_test_engine](https://github.com/ocornut/imgui_test_engine)

The versions have been picked so that they're all compatible with each other,
i.e. matching the latest ImGui version. The currently supported ImGui version
is: [*v1.90.8*](https://github.com/ocornut/imgui/releases/tag/v1.90.8).
is: [*v1.91.0*](https://github.com/ocornut/imgui/releases/tag/v1.91.0).

You can build the resulting shared library locally with:
```julia-repl
# $ julia --project=.
julia> include("cimgui-pack/build.jl")
julia> include("build.jl")
```

This repo is used directly by:
Expand Down
18 changes: 18 additions & 0 deletions build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ import GLFW_jll

cxxwrap_prefix = CxxWrap.prefix_path()

output_dir = joinpath(@__DIR__, "cimgui_comments_output")
if !isdir(output_dir)
mkdir(output_dir)
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 ")
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
end

# Generate the imgui_test_engine wrappers
cd(joinpath(@__DIR__, "test_engine")) do
# Write the config file from the template
Expand Down
Loading

0 comments on commit e5b972c

Please sign in to comment.