Skip to content

Commit

Permalink
Revert "Simplify (maybe) the imgui submodules"
Browse files Browse the repository at this point in the history
This reverts commit 2839f76.

# Conflicts:
#	imgui-sys/third-party/cimgui
  • Loading branch information
dbr committed Mar 5, 2021
1 parent 1424900 commit 432d4b9
Show file tree
Hide file tree
Showing 20 changed files with 43,529 additions and 17 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/cimgui"]
path = imgui-sys/third-party/cimgui
url = https://github.com/cimgui/cimgui.git
[submodule "imgui-sys/third-party/imgui"]
path = imgui-sys/third-party/imgui
url = https://github.com/ocornut/imgui
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/cimgui.cpp")?;
assert_file_exists("third-party/cimgui/imgui/imgui.cpp")?;
assert_file_exists("third-party/cimgui.cpp")?;
assert_file_exists("third-party/imgui/imgui.cpp")?;

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

Expand Down
14 changes: 8 additions & 6 deletions imgui-sys/include_all_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
// 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/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"
#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"


1 change: 1 addition & 0 deletions imgui-sys/third-party/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Generated by cimgui version 98e6ff7051df19b76854bc3eb3cea2798f8d3bc5
1 change: 0 additions & 1 deletion imgui-sys/third-party/cimgui
Submodule cimgui deleted from 25aa25
Loading

0 comments on commit 432d4b9

Please sign in to comment.