Skip to content

Commit ca4db4f

Browse files
authored
refac: flattened structure, changed directory names, and removed free… (#1807)
* refac: flattened structure, changed directory names, and removed freetype from mac builds * chore: delete duplicate directory * chore: delete duplicate directory * fix: ci pipelines * fix: ci builds for linux/mac * fix: ci builds for linux/mac * add debug info to ci * again * fix: static analysis * Update CMakeLists.txt
1 parent 6c064ba commit ca4db4f

File tree

5,695 files changed

+2773795
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,695 files changed

+2773795
-330
lines changed

.gitattributes

+4-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@
2525
.gitignore export-ignore
2626

2727
# generated code
28-
DearPyGui/dearpygui/dearpygui.py linguist-generated
29-
DearPyGui/dearpygui/_dearpygui.pyi linguist-generated
30-
DearPyGui/dearpygui/_dearpygui_RTD.py linguist-generated
28+
dearpygui/dearpygui.py linguist-generated
29+
dearpygui/_dearpygui.pyi linguist-generated
30+
dearpygui/_dearpygui_RTD.py linguist-generated
3131

3232
# vendored code
33-
DearPyGui/vendor/* linguist-vendored
34-
Dependencies/* linguist-vendored
33+
thirdparty/* linguist-vendored
3534

3635
# documentation
3736
docs/* linguist-documentation

.github/CODEOWNERS

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
# default owners
2-
* @hoffstadt
2+
* @hoffstadt
33

44
# directories
5-
/Dependencies/ @hoffstadt
6-
/Scripts/ @hoffstadt
7-
/DearPyGui/ @hoffstadt @Pcothren
8-
/ImGuiTesting/ @hoffstadt @Pcothren
9-
/Tools/* @hoffstadt @Pcothren
10-
/docs/* @hoffstadt @Pcothren
5+
/thirdparty/ @hoffstadt
6+
/scripts/ @hoffstadt
7+
/src/ @hoffstadt @Pcothren
8+
/docs/* @hoffstadt @Pcothren
119

1210
# specific files
13-
/DearPyGui/cmake/distribution.cmake @hoffstadt
14-
/DearPyGui/cmake/embedded.cmake @hoffstadt
15-
/DearPyGui/CMakeLists.txt @hoffstadt
16-
/DearPyGui/.gitignore @hoffstadt
17-
CMakeLists.txt @hoffstadt
18-
CMakeSettings.json @hoffstadt
19-
setup.py @hoffstadt
20-
.gitattributes @hoffstadt
21-
.gitignore @hoffstadt
22-
.gitmodules @hoffstadt
23-
.readthedocs.yaml @hoffstadt @Pcothren
11+
/src/distribution.cmake @hoffstadt
12+
/src/embedded.cmake @hoffstadt
13+
/src/CMakeLists.txt @hoffstadt
14+
/src/.gitignore @hoffstadt
15+
CMakeLists.txt @hoffstadt
16+
CMakeSettings.json @hoffstadt
17+
setup.py @hoffstadt
18+
.gitattributes @hoffstadt
19+
.gitignore @hoffstadt
20+
.gitmodules @hoffstadt
21+
.readthedocs.yaml @hoffstadt @Pcothren
2422

2523
# no owners
2624
README.md
2725
/docs/source/
28-
/Resources
26+
/assets

.github/workflows/Deployment.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
- name: Retrieve submodules
5252
shell: cmd
5353
run: |
54-
git submodule update --init --recursive ./Dependencies/imgui
55-
git submodule update --init --recursive ./Dependencies/freetype
54+
git submodule update --init --recursive ./thirdparty/imgui
55+
git submodule update --init --recursive ./thirdparty/freetype
5656
5757
- name: Mark Versions
5858
shell: cmd
@@ -93,9 +93,8 @@ jobs:
9393

9494
- name: Retrieve submodules
9595
run: |
96-
git submodule update --init --recursive ./Dependencies/imgui
97-
git submodule update --init --recursive ./Dependencies/freetype
98-
git submodule update --init --recursive ./Dependencies/glfw
96+
git submodule update --init --recursive ./thirdparty/imgui
97+
git submodule update --init --recursive ./thirdparty/glfw
9998
10099
- name: Mark Versions
101100
run: |
@@ -136,13 +135,10 @@ jobs:
136135

137136
- name: Retrieve submodules/Dependencies
138137
run: |
139-
git submodule update --init --recursive ./Dependencies/imgui
140-
git submodule update --init --recursive ./Dependencies/freetype
141-
git submodule update --init --recursive ./Dependencies/glfw
138+
git submodule update --init --recursive ./thirdparty/imgui
139+
git submodule update --init --recursive ./thirdparty/glfw
142140
sudo apt-get update
143141
sudo apt-get install libglu1-mesa-dev libgl1-mesa-dev xorg-dev libxrandr-dev -y
144-
sudo apt-get install libfreetype6-dev -y
145-
sudo apt-get install libharfbuzz-dev -y
146142
147143
- name: Mark Versions
148144
run: |

.github/workflows/EmbeddedBuild.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ on:
1414

1515
paths-ignore:
1616
- 'docs/**'
17-
- 'Resources/**'
18-
- 'Scripts/**'
19-
- 'Tools/**'
17+
- 'assets/**'
18+
- 'scripts/**'
2019

2120
pull_request:
2221

@@ -42,7 +41,7 @@ jobs:
4241
shell: cmd
4342
run: |
4443
cd %GITHUB_WORKSPACE%
45-
cd Scripts
44+
cd scripts
4645
call BuildPythonForWindows.bat --ci
4746
4847
- name: Build DearPyGui
@@ -78,8 +77,9 @@ jobs:
7877
- name: Build Python
7978
run: |
8079
cd $GITHUB_WORKSPACE
81-
cd Dependencies/cpython
80+
cd thirdparty/cpython
8281
mkdir -p build/debug
82+
chmod +x configure
8383
cd build/debug
8484
../../configure --with-pydebug --enable-shared --prefix=$(pwd) LDFLAGS=-Wl,-rpath,$(pwd)
8585
make
@@ -113,13 +113,14 @@ jobs:
113113
run: |
114114
cd $GITHUB_WORKSPACE
115115
sudo apt-get update
116-
sudo apt-get install libgl1-mesa-dev xorg-dev libfreetype6-dev
116+
sudo apt-get install libgl1-mesa-dev xorg-dev
117117
118118
- name: Build Python
119119
run: |
120120
cd $GITHUB_WORKSPACE
121-
cd Dependencies/cpython
121+
cd thirdparty/cpython
122122
mkdir -p build/debug
123+
chmod +x configure
123124
cd build/debug
124125
../../configure --with-pydebug --enable-shared
125126
make

.github/workflows/static-analysis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ on:
1010

1111
paths-ignore:
1212
- 'docs/**'
13-
- 'Resources/**'
14-
- 'Scripts/**'
15-
- 'Tools/**'
13+
- 'assets/**'
14+
- 'scripts/**'
1615

1716
pull_request:
1817
workflow_dispatch:
@@ -49,8 +48,8 @@ jobs:
4948
sudo apt-get update
5049
sudo apt-get install libgl1-mesa-dev
5150
sudo apt-get install xorg-dev
52-
sudo apt-get install libfreetype6-dev
53-
cd Dependencies/cpython
51+
cd thirdparty/cpython
52+
chmod +x configure
5453
mkdir -p build/debug
5554
cd build/debug
5655
../../configure --with-pydebug --enable-shared
@@ -70,7 +69,7 @@ jobs:
7069
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=On
7170
cd ..
7271
pvs-studio-analyzer trace -- cmake --build cmake-build-debug --config Debug
73-
pvs-studio-analyzer analyze -e ./Dependencies -e ./DearPyGui/vendor -e ./DearPyGui/src/core/AppItems/custom/mvTextEditor.cpp -l pvs-studio.lic -o pvs-studio.log
72+
pvs-studio-analyzer analyze -e ./thirdparty -l pvs-studio.lic -o pvs-studio.log
7473
plog-converter -a 'GA:1,2;OP:1' -t fullhtml -o pvs-studio.html -w pvs-studio.log
7574
7675
- name: Archive code coverage results

.gitmodules

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
[submodule "Dependencies/imgui"]
2-
path = Dependencies/imgui
1+
[submodule "thirdparty/imgui"]
2+
path = thirdparty/imgui
33
url = https://github.com/ocornut/imgui
44
branch = master
5-
[submodule "Dependencies/cpython"]
6-
path = Dependencies/cpython
5+
[submodule "thirdparty/cpython"]
6+
path = thirdparty/cpython
77
url = https://github.com/python/cpython
88
branch = master
9-
[submodule "Dependencies/glfw"]
10-
path = Dependencies/glfw
9+
[submodule "thirdparty/glfw"]
10+
path = thirdparty/glfw
1111
url = https://github.com/glfw/glfw
1212
branch = master
13-
[submodule "Dependencies/freetype"]
14-
path = Dependencies/freetype
13+
[submodule "thirdparty/freetype"]
14+
path = thirdparty/freetype
1515
url = https://gitlab.freedesktop.org/freetype/freetype
16-
[submodule "Dependencies/DearPyGui_Ext"]
17-
path = Dependencies/DearPyGui_Ext
16+
[submodule "thirdparty/DearPyGui_Ext"]
17+
path = thirdparty/DearPyGui_Ext
1818
url = https://github.com/hoffstadt/DearPyGui_Ext

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(WIN32)
66
add_definitions(-DIMGUI_USER_CONFIG="mvImGuiConfig.h")
77
add_definitions(-DMV_PLATFORM="windows")
88
elseif(APPLE)
9-
add_definitions(-DIMGUI_USER_CONFIG="mvImGuiConfig.h")
9+
add_definitions(-DIMGUI_USER_CONFIG="mvImGuiLinuxConfig.h")
1010
add_definitions(-DMV_PLATFORM="apple")
1111
else() # Linux
1212
add_definitions(-DIMGUI_USER_CONFIG="mvImGuiLinuxConfig.h")
@@ -48,12 +48,12 @@ if(MV_TESTS_ONLY)
4848
add_definitions(-DMV_TESTS_ONLY)
4949
endif()
5050

51-
add_subdirectory("Dependencies")
51+
add_subdirectory("thirdparty")
5252

5353
# if this is not a distribution build
5454
# build development environment
5555
if(NOT MVDIST_ONLY)
56-
add_subdirectory ("DearSandbox")
56+
add_subdirectory ("sandbox")
5757
endif()
5858

59-
add_subdirectory ("DearPyGui")
59+
add_subdirectory ("src")

DearPyGui/CMakeLists.txt

-9
This file was deleted.

DearPyGui/cmake/dpg_sources.cmake

-135
This file was deleted.

0 commit comments

Comments
 (0)