Skip to content

Commit

Permalink
chore: finish flattening & remove unused mvLog header
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Nov 11, 2022
1 parent 677ebd7 commit 8bc662d
Show file tree
Hide file tree
Showing 30 changed files with 112 additions and 177 deletions.
1 change: 0 additions & 1 deletion sandbox/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <sstream>
#include <filesystem>
#include "mvViewport.h"
#include "mvLog.h"

namespace fs = std::filesystem;

Expand Down
212 changes: 106 additions & 106 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,117 +3,117 @@

set(MARVEL_SOURCES

# core
"mvContext.cpp"
"mvMath.cpp"
"mvProfiler.cpp"
"dearpygui.cpp"

# platform
"$<$<PLATFORM_ID:Windows>:mvViewport_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:mvUtilities_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:mvGraphics_win32.cpp>"

"$<$<PLATFORM_ID:Darwin>:mvViewport_apple.mm>"
"$<$<PLATFORM_ID:Darwin>:mvUtilities_apple.mm>"
"$<$<PLATFORM_ID:Darwin>:mvGraphics_apple.mm>"

"$<$<PLATFORM_ID:Linux>:mvUtilities_linux.cpp>"
"$<$<PLATFORM_ID:Linux>:mvViewport_linux.cpp>"
"$<$<PLATFORM_ID:Linux>:mvGraphics_linux.cpp>"

# python
"mvPyUtils.cpp"
"mvCustomTypes.cpp"

# ui
"mvBasicWidgets.cpp"
"mvTables.cpp"
"mvThemes.cpp"
"mvNodes.cpp"
"mvDrawings.cpp"
"mvGlobalHandlers.cpp"
"mvItemHandlers.cpp"
"mvValues.cpp"
"mvTextureItems.cpp"
"mvFontItems.cpp"
"mvColors.cpp"
"mvPlotting.cpp"
"mvContainers.cpp"

"mvCallbackRegistry.cpp"
# core
"mvContext.cpp"
"mvMath.cpp"
"mvProfiler.cpp"
"dearpygui.cpp"

# platform
"$<$<PLATFORM_ID:Windows>:mvViewport_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:mvUtilities_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:mvGraphics_win32.cpp>"

"$<$<PLATFORM_ID:Darwin>:mvViewport_apple.mm>"
"$<$<PLATFORM_ID:Darwin>:mvUtilities_apple.mm>"
"$<$<PLATFORM_ID:Darwin>:mvGraphics_apple.mm>"

"$<$<PLATFORM_ID:Linux>:mvUtilities_linux.cpp>"
"$<$<PLATFORM_ID:Linux>:mvViewport_linux.cpp>"
"$<$<PLATFORM_ID:Linux>:mvGraphics_linux.cpp>"

# python
"mvPyUtils.cpp"
"mvCustomTypes.cpp"

# ui
"mvBasicWidgets.cpp"
"mvTables.cpp"
"mvThemes.cpp"
"mvNodes.cpp"
"mvDrawings.cpp"
"mvGlobalHandlers.cpp"
"mvItemHandlers.cpp"
"mvValues.cpp"
"mvTextureItems.cpp"
"mvFontItems.cpp"
"mvColors.cpp"
"mvPlotting.cpp"
"mvContainers.cpp"

"mvCallbackRegistry.cpp"
"mvLoadingIndicatorCustom.cpp"
"mvFontManager.cpp"
"mvToolManager.cpp"
"mvToolWindow.cpp"
"mvAboutWindow.cpp"
"mvDocWindow.cpp"
"mvMetricsWindow.cpp"
"mvStyleWindow.cpp"
"mvDebugWindow.cpp"
"mvLayoutWindow.cpp"
"mvAppItemState.cpp"
"mvAppItem.cpp"
"mvItemRegistry.cpp"

"custom/mvDatePicker.cpp"
"custom/mvTimePicker.cpp"
"custom/mvSlider3D.cpp"
"custom/mvLoadingIndicator.cpp"
"composite/mvFileDialog.cpp"
"composite/mvFileExtension.cpp"

# imnodes
"../thirdparty/imnodes/imnodes.cpp"

# implot
"../thirdparty/implot/implot.cpp"
"../thirdparty/implot/implot_items.cpp"
"../thirdparty/implot/implot_demo.cpp"

# ImGuiFileDialog
"../thirdparty/ImGuiFileDialog/ImGuiFileDialog.cpp"

# imgui
"../thirdparty/imgui/misc/cpp/imgui_stdlib.cpp"
"../thirdparty/imgui/imgui.cpp"
"../thirdparty/imgui/imgui_demo.cpp"
"../thirdparty/imgui/imgui_draw.cpp"
"../thirdparty/imgui/imgui_widgets.cpp"
"../thirdparty/imgui/imgui_tables.cpp"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/misc/freetype/imgui_freetype.cpp>"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/backends/imgui_impl_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/backends/imgui_impl_dx11.cpp>"
"$<$<PLATFORM_ID:Darwin>:../thirdparty/imgui/backends/imgui_impl_metal.mm>"
"$<$<PLATFORM_ID:Darwin>:../thirdparty/imgui/backends/imgui_impl_glfw.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/backends/imgui_impl_glfw.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/backends/imgui_impl_opengl3.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/examples/libs/gl3w/GL/gl3w.c>"
)
"mvFontManager.cpp"
"mvToolManager.cpp"
"mvToolWindow.cpp"
"mvAboutWindow.cpp"
"mvDocWindow.cpp"
"mvMetricsWindow.cpp"
"mvStyleWindow.cpp"
"mvDebugWindow.cpp"
"mvLayoutWindow.cpp"
"mvAppItemState.cpp"
"mvAppItem.cpp"
"mvItemRegistry.cpp"

"mvDatePicker.cpp"
"mvTimePicker.cpp"
"mvSlider3D.cpp"
"mvLoadingIndicator.cpp"
"mvFileDialog.cpp"
"mvFileExtension.cpp"

# imnodes
"../thirdparty/imnodes/imnodes.cpp"

# implot
"../thirdparty/implot/implot.cpp"
"../thirdparty/implot/implot_items.cpp"
"../thirdparty/implot/implot_demo.cpp"

# ImGuiFileDialog
"../thirdparty/ImGuiFileDialog/ImGuiFileDialog.cpp"

# imgui
"../thirdparty/imgui/misc/cpp/imgui_stdlib.cpp"
"../thirdparty/imgui/imgui.cpp"
"../thirdparty/imgui/imgui_demo.cpp"
"../thirdparty/imgui/imgui_draw.cpp"
"../thirdparty/imgui/imgui_widgets.cpp"
"../thirdparty/imgui/imgui_tables.cpp"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/misc/freetype/imgui_freetype.cpp>"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/backends/imgui_impl_win32.cpp>"
"$<$<PLATFORM_ID:Windows>:../thirdparty/imgui/backends/imgui_impl_dx11.cpp>"
"$<$<PLATFORM_ID:Darwin>:../thirdparty/imgui/backends/imgui_impl_metal.mm>"
"$<$<PLATFORM_ID:Darwin>:../thirdparty/imgui/backends/imgui_impl_glfw.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/backends/imgui_impl_glfw.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/backends/imgui_impl_opengl3.cpp>"
"$<$<PLATFORM_ID:Linux>:../thirdparty/imgui/examples/libs/gl3w/GL/gl3w.c>"
)

set(MARVEL_INCLUDE_DIR
"."
"../thirdparty/implot"
"../thirdparty/stb"
"../thirdparty/imnodes"
"../thirdparty/ImGuiFileDialog"
"../thirdparty/glfw/include/"
"../thirdparty/glfw/deps/"
"../thirdparty/imgui/"
"../thirdparty/gl3w/"
"../thirdparty/imgui/misc/freetype/"
"../thirdparty/imgui/backends/"
"../thirdparty/imgui/examples/libs/gl3w"
"../thirdparty/cpython/"
"../thirdparty/cpython/Include/"
"../thirdparty/cpython/build/debug/"
"$<$<PLATFORM_ID:Windows>:${CMAKE_SOURCE_DIR}/thirdparty/cpython/PC/>"
"$<IF:$<CONFIG:Release>,${CMAKE_SOURCE_DIR}/thirdparty/cpython/build/release/,${CMAKE_SOURCE_DIR}/thirdparty/cpython/build/debug/>"
)
"."
"../thirdparty/implot"
"../thirdparty/stb"
"../thirdparty/imnodes"
"../thirdparty/ImGuiFileDialog"
"../thirdparty/glfw/include/"
"../thirdparty/glfw/deps/"
"../thirdparty/imgui/"
"../thirdparty/gl3w/"
"../thirdparty/imgui/misc/freetype/"
"../thirdparty/imgui/backends/"
"../thirdparty/imgui/examples/libs/gl3w"
"../thirdparty/cpython/"
"../thirdparty/cpython/Include/"
"../thirdparty/cpython/build/debug/"
"$<$<PLATFORM_ID:Windows>:${CMAKE_SOURCE_DIR}/thirdparty/cpython/PC/>"
"$<IF:$<CONFIG:Release>,${CMAKE_SOURCE_DIR}/thirdparty/cpython/build/release/,${CMAKE_SOURCE_DIR}/thirdparty/cpython/build/debug/>"
)


if(MVDIST_ONLY)
include("distribution.cmake")
include("distribution.cmake")
else()
include("embedded.cmake")
include("embedded.cmake")
endif()
1 change: 0 additions & 1 deletion src/dearpygui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "mvPyUtils.h"
#include "mvViewport.h"
#include <stb_image.h>
#include "mvLog.h"
#include "mvProfiler.h"
#include "dearpygui_commands.h"
#include "dearpygui_parsers.h"
Expand Down
1 change: 0 additions & 1 deletion src/dearpygui_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "mvViewport.h"
#include "stb_image.h"
#include "stb_image_write.h"
#include "mvLog.h"
#include "mvProfiler.h"
#include "mvUtilities.h"

Expand Down
1 change: 0 additions & 1 deletion src/dearpygui_parsers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "mvPyUtils.h"
#include "mvViewport.h"
#include <stb_image.h>
#include "mvLog.h"
#include "mvProfiler.h"

static void
Expand Down
1 change: 0 additions & 1 deletion src/mvAppItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "mvItemRegistry.h"
#include "mvCore.h"
#include "mvAppItemCommons.h"
#include "mvLog.h"
#include "mvPyUtils.h"

static void
Expand Down
12 changes: 6 additions & 6 deletions src/mvAppItemCommons.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include "mvColors.h"
#include "mvPlotting.h"
#include "mvContainers.h"
#include "custom/mvTimePicker.h"
#include "custom/mvDatePicker.h"
#include "custom/mvSlider3D.h"
#include "custom/mvLoadingIndicator.h"
#include "composite/mvFileDialog.h"
#include "composite/mvFileExtension.h"
#include "mvTimePicker.h"
#include "mvDatePicker.h"
#include "mvSlider3D.h"
#include "mvLoadingIndicator.h"
#include "mvFileDialog.h"
#include "mvFileExtension.h"
1 change: 0 additions & 1 deletion src/mvContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "mvCallbackRegistry.h"
#include "mvPyUtils.h"
#include <frameobject.h>
#include "mvLog.h"
#include "mvToolManager.h"
#include <imnodes.h>
#include <thread>
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/mvDrawings.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "mvDrawings.h"
#include "mvLog.h"
#include "mvItemRegistry.h"
#include "mvPyUtils.h"
#include "mvAppItemCommons.h"
Expand Down
1 change: 0 additions & 1 deletion src/composite/mvFileDialog.cpp → src/mvFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "mvFileExtension.h"
#include "mvItemRegistry.h"
#include "mvPyUtils.h"
#include "mvLog.h"

static void Panel(const char* vFilter, IGFDUserDatas vUserDatas, bool* vCantContinue)
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "mvFileDialog.h"
#include "mvItemRegistry.h"
#include "mvPyUtils.h"
#include "mvLog.h"

void mvFileExtension::applySpecificTemplate(mvAppItem* item)
{
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/mvFontItems.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "mvFontItems.h"
#include "mvTextureItems.h"
#include "mvPyUtils.h"
#include "mvLog.h"
#include "mvToolManager.h"
#include "mvFontManager.h"

Expand Down
1 change: 0 additions & 1 deletion src/mvGlobalHandlers.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "mvGlobalHandlers.h"
#include "mvPyUtils.h"
#include "mvLog.h"
#include "mvUtilities.h"

void mvHandlerRegistry::draw(ImDrawList* drawlist, float x, float y)
Expand Down
1 change: 0 additions & 1 deletion src/mvItemHandlers.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "mvItemHandlers.h"
#include "mvPyUtils.h"
#include "mvLog.h"

void mvItemHandlerRegistry::checkEvents(void* data)
{
Expand Down
1 change: 0 additions & 1 deletion src/mvItemRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "mvProfiler.h"
#include "mvContext.h"
#include "mvAppItemCommons.h"
#include "mvLog.h"
#include "mvPyUtils.h"
#include "mvToolManager.h"
#include "mvFontManager.h"
Expand Down
File renamed without changes.
File renamed without changes.
48 changes: 0 additions & 48 deletions src/mvLog.h

This file was deleted.

1 change: 0 additions & 1 deletion src/mvNodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <imnodes.h>
#include "mvContext.h"
#include "mvItemRegistry.h"
#include "mvLog.h"
#include "mvPyUtils.h"
#include "mvItemHandlers.h"
#include "mvThemes.h"
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8bc662d

Please sign in to comment.