Skip to content

Commit

Permalink
Simplify (maybe) the imgui submodules
Browse files Browse the repository at this point in the history
Use cimgui which avoids the copy-files-into-our-repo step
  • Loading branch information
dbr committed Mar 3, 2021
1 parent 75fdec0 commit 2839f76
Show file tree
Hide file tree
Showing 20 changed files with 17 additions and 43,529 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "imgui-sys/third-party/imgui"]
path = imgui-sys/third-party/imgui
url = https://github.com/ocornut/imgui
[submodule "imgui-sys/third-party/cimgui"]
path = imgui-sys/third-party/cimgui
url = https://github.com/cimgui/cimgui.git
4 changes: 2 additions & 2 deletions imgui-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ fn main() -> io::Result<()> {
if std::env::var_os("CARGO_FEATURE_WASM").is_none() {
// Check submodule status. (Anything else should be a compile error in
// the C code).
assert_file_exists("third-party/cimgui.cpp")?;
assert_file_exists("third-party/imgui/imgui.cpp")?;
assert_file_exists("third-party/cimgui/cimgui.cpp")?;
assert_file_exists("third-party/cimgui/imgui/imgui.cpp")?;

let mut build = cc::Build::new();

Expand Down
14 changes: 6 additions & 8 deletions imgui-sys/include_all_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// allowing the optimizer to inline across separate object files (note that even
// when rust is built with LTO, unless the steps are taken to allow cross-lang
// LTO (tricky), the C/C++ code won't be LTOed).
#include "./third-party/imgui/imgui.cpp"
#include "./third-party/imgui/imgui_demo.cpp"
#include "./third-party/imgui/imgui_draw.cpp"
#include "./third-party/imgui/imgui_widgets.cpp"
#include "./third-party/imgui/imgui_tables.cpp"
#include "./third-party/cimgui.cpp"


#include "./third-party/cimgui/imgui/imgui.cpp"
#include "./third-party/cimgui/imgui/imgui_demo.cpp"
#include "./third-party/cimgui/imgui/imgui_draw.cpp"
#include "./third-party/cimgui/imgui/imgui_widgets.cpp"
#include "./third-party/cimgui/imgui/imgui_tables.cpp"
#include "./third-party/cimgui/cimgui.cpp"
1 change: 0 additions & 1 deletion imgui-sys/third-party/VERSION

This file was deleted.

1 change: 1 addition & 0 deletions imgui-sys/third-party/cimgui
Submodule cimgui added at 6791a9
Loading

0 comments on commit 2839f76

Please sign in to comment.