Skip to content

Commit ae8f32e

Browse files
committed
Final remove of MUtils; there will be build bugs!
1 parent 05a4a13 commit ae8f32e

File tree

8 files changed

+50
-71
lines changed

8 files changed

+50
-71
lines changed

.github/workflows/builds.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,11 @@ jobs:
5757
sudo apt-get install lcov
5858
if: matrix.os == 'ubuntu-latest'
5959

60-
- name: Build MUtils
61-
working-directory: ${{runner.workspace}}
62-
shell: bash
63-
run: |
64-
git clone https://github.com/Rezonality/mutils
65-
cd mutils
66-
./prebuild.${{matrix.script}}
67-
mkdir build
68-
cd build
69-
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
70-
cmake --build . --config ${{ matrix.build_type }}
71-
cmake --install . --config ${{ matrix.build_type }} --prefix ../../vcpkg/packages/mutils_${{matrix.package_type}}
72-
7360
- name: Build
7461
working-directory: ${{github.workspace}}
7562
run: |
63+
git submodule update --init
64+
./prebuild.${{matrix.script}}
7665
mkdir build
7766
cd build
7867
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
@@ -82,6 +71,8 @@ jobs:
8271
- name: Build (Coverage)
8372
working-directory: ${{github.workspace}}
8473
run: |
74+
git submodule update --init
75+
./prebuild.${{matrix.script}}
8576
mkdir build
8677
cd build
8778
cmake .. -DENABLE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug
@@ -106,7 +97,7 @@ jobs:
10697
lcov --remove coverage.info '/usr/local/include/*' '/usr/include/*' 'build' 'm3rdparty' 'cmake' 'scripts' -o coverage.info
10798
genhtml coverage.info
10899
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.info
109-
100+
110101
- name: Archive Coverage HTML
111102
uses: actions/upload-artifact@v2
112103
if: matrix.build_type == 'Coverage'

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vcpkg"]
2+
path = vcpkg
3+
url = https://github.com/Microsoft/vcpkg.git

README.md

+18-33
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Zep](https://github.com/Rezonality/zep) - A Mini Editor
22
===================================================================================================
33
[![Builds](https://github.com/Rezonality/zep/workflows/Builds/badge.svg)](https://github.com/Rezonality/zep/actions?query=workflow%3ABuilds)
4-
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Resonality/zep/blob/master/LICENSE)
4+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Resonality/zep/blob/master/LICENSE)
55
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b14633031dfe49498719ad58ff96328a)](https://www.codacy.com/gh/Rezonality/zep/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Rezonality/zep&amp;utm_campaign=Badge_Grade)
66
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/b14633031dfe49498719ad58ff96328a)](https://www.codacy.com/gh/Rezonality/zep/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Rezonality/zep&utm_campaign=Badge_Coverage)
77
[![codecov](https://codecov.io/gh/Rezonality/zep/branch/master/graph/badge.svg?token=sKdLmDPcW7)](https://codecov.io/gh/Rezonality/zep)
@@ -26,7 +26,7 @@ The demos for Qt and ImGui require dditional packages, but these aren't required
2626
Key Features:
2727
* Modal 'vim' or modeless 'standard' editing styles; built around a common core of functionality.
2828
* Keymapper for extending existing modes or adding new commands
29-
* Qt or ImGui rendering (and extensible)
29+
* Qt or ImGui rendering (and extensible)
3030
* Terminal-style text wrapping and work in progress non-wrapped mode
3131
* Splits and tabs
3232
* A simple syntax highlighting engine with pluggable secondary highlighters
@@ -52,7 +52,7 @@ Though I have limited time to work on Zep, I do try to move it forward at York D
5252

5353
One of my targets for Zep is to get it to the point where I can use it as a standalone editor for common tasks. It is almost equivalent to how I'd use NeoVim day-to-day. The other target is to use Zep in a live coding environment.
5454

55-
Pull requests are appreciated and encouraged ;)
55+
Pull requests are appreciated and encouraged ;)
5656

5757
Screenshots
5858
-----------
@@ -85,7 +85,7 @@ level mode code uses the buffer commands to move around inside the text. A Glyp
8585

8686
A command layer supplies functions to add and remove text, and supports undo; all buffer modifications are done with these simple commands.
8787

88-
The Mode layer supports editing text using Vim commands, or using standard notepad-like commands.
88+
The Mode layer supports editing text using Vim commands, or using standard notepad-like commands.
8989

9090
A Syntax layer monitors the buffer and provides file-specific syntax coloring. Syntax highlighting can be easily extended
9191

@@ -102,8 +102,8 @@ See [Vim Mode](https://github.com/Rezonality/zep/wiki/Vim-Mode), or the top of t
102102
You can follow the build buttons above to see the build process or look in the travis or appveyor scripts.
103103

104104
## 1. Get the Source
105-
git clone https://github.com/Rezonality/zep zep
106-
cd zep
105+
git clone https://github.com/Rezonality/zep zep
106+
cd zep
107107

108108
## 2. Add extra packages
109109
If you don't have them already, the following packages are required, depending on your system. Note, that SDL is part of the build,
@@ -114,8 +114,8 @@ The Qt app builds on linux, but is not part of the travis setup yet.
114114

115115
## Linux
116116
```
117-
sudo apt install cmake
118-
sudo apt install git
117+
sudo apt install cmake
118+
sudo apt install git
119119
```
120120

121121
## Mac
@@ -153,49 +153,32 @@ target_include_directories(myapp
153153
```
154154

155155
# 5. Building the Demo
156-
The Zep demo now requires my external MUtils library in order to run. To make the demo, hop over to https://github.com/Rezonality/mutils and build/install it.
157-
Here's an example script for the complete process to build the support library and all of the zep demos.
156+
Here's an example script for the complete process to build the zep demos. The vcpkg prebuilds are only required for the demo, not the core library
158157

159158
# Windows
160159
```
161-
# MUtils
162-
git clone https://github.com/Rezonality/mutils
163-
cd mutils
164-
prebuild.bat
165-
config.bat
166-
build.bat
167-
168160
# Zep
169161
git clone https://github.com/Rezonality/zep
170162
cd zep
163+
git submodule update --init
164+
prebuild.bat
171165
set QT_INSTALL_LOCATION=C:\Qt\5.10.0\msvc2017_64 (for example - required for building QT)
172166
config.bat OR config_qt.bat or config_imgui.bat (for qt and imgui respectively)
173167
build.bat
174168
```
175169

176170
# GNU/Linux
177171

178-
## Install dependencies
172+
## Install dependencies
179173

180174
```bash
181175
sudo apt install cmake git
182176
```
183177

184-
## MUtils
185-
```bash
186-
git clone https://github.com/Rezonality/mutils
187-
cd mutils
188-
chmod +x prebuild.sh
189-
chmod +x config.sh
190-
chmod +x build.sh
191-
./config.sh
192-
./build.sh
193-
```
194-
195178
## Qt (required is using build_qt.sh)
196179
```bash
197180
# for Qt/Demo support
198-
sudo apt install qt5-default
181+
sudo apt install qt5-default
199182
# Adapt to your installation path
200183
set QT_INSTALL_LOCATION="/usr/include/x86_64-linux-gnu/qt5"
201184
```
@@ -204,7 +187,9 @@ set QT_INSTALL_LOCATION="/usr/include/x86_64-linux-gnu/qt5"
204187
```bash
205188
git clone https://github.com/Rezonality/zep
206189
cd zep
207-
# Optional argument are qt and imgui
190+
git submodule update --init
191+
prebuild.bat
192+
# Optional argument are qt and imgui
208193
./config.sh ( qt | imgui )
209194
./build.sh
210195
```
@@ -219,8 +204,8 @@ Libraries
219204
-----------
220205
This sample uses SDL for the window setup, and ImGui for the rendering, or Qt.
221206

222-
[SDL2: Media/Window Layer](https://www.libsdl.org/download-2.0.php)
207+
[SDL2: Media/Window Layer](https://www.libsdl.org/download-2.0.php)
223208
SDL2 is used to get a window on the screen in a cross platform way, and for OpenGL to generate a Context.
224209

225-
[ImGui: 2D GUI](https://github.com/ocornut/imgui)
210+
[ImGui: 2D GUI](https://github.com/ocornut/imgui)
226211
ImGui is a great 2D User interface for 3D applications

build.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
cd build
22
cmake --build . --config Debug
3-
cmake --install . --config Debug --prefix ../../vcpkg/packages/zep_x64-windows-static-md
3+
cmake --install . --config Debug --prefix ./packages/zep_x64-windows-static-md
44

55
cmake --build . --config Release
6-
cmake --install . --config Release --prefix ../../vcpkg/packages/zep_x64-windows-static-md
6+
cmake --install . --config Release --prefix ./packages/zep_x64-windows-static-md
77

88
cmake --build . --config RelWithDebInfo
9-
cmake --install . --config RelWithDebInfo --prefix ../../vcpkg/packages/zep_x64-windows-static-md
9+
cmake --install . --config RelWithDebInfo --prefix ./packages/zep_x64-windows-static-md
1010
cd ..

demos/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_LIST_DIR}/cmake)
1010
include(${M3RDPARTY_DIR}/list.cmake)
1111
include(${CMAKE_CURRENT_LIST_DIR}/cmake/demo_common.cmake)
1212

13-
if (WIN32)
14-
set(VCPKG_TARGET_TRIPLET x64-windows-static-md)
15-
endif()
16-
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
13+
#if (WIN32)
14+
#set(VCPKG_TARGET_TRIPLET x64-windows-static-md)
15+
#endif()
16+
#set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
1717

1818
add_subdirectory(demo_imgui)
1919
add_subdirectory(demo_qt)

prebuild.bat

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
@echo off
22

3-
echo %Time%
43

54
if not exist "vcpkg\" (
6-
echo Download vcpkg from github
7-
git clone --single-branch --branch master https://github.com/Microsoft/vcpkg.git vcpkg
8-
if not exist "vcpkg\vcpkg.exe" (
5+
echo Make sure you add the submodule: 'git submodule update --init'!
6+
exit 1
7+
)
8+
9+
echo %Time%
10+
11+
if not exist "vcpkg\vcpkg.exe" (
912
cd vcpkg
1013
call bootstrap-vcpkg.bat -disableMetrics
1114
cd %~dp0
12-
)
1315
)
1416

17+
echo Installing libraries for the demo...
1518
cd vcpkg
1619
echo Installing Libraries
17-
vcpkg install clipp tinydir fmt imgui[freetype,sdl2-binding,opengl3-binding] tinyfiledialogs gl3w gsl-lite concurrentqueue catch2 cpptoml toml11 freetype sdl2 --triplet x64-windows-static-md --recurse
20+
vcpkg install clipp tinydir fmt imgui[freetype,sdl2-binding,opengl3-binding] tinyfiledialogs gl3w gsl-lite concurrentqueue catch2 cpptoml freetype sdl2 --triplet x64-windows-static-md --recurse
1821
cd %~dp0
1922

2023
echo %Time%

prebuild.sh

+7-11
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,23 @@
22
# Remember to preinstall linux libraries:
33
# (ibus, tar, zip, unzip, buid-prerequisits, xorg-dev)
44

5-
if [ ! -d "../vcpkg" ]; then
6-
git clone --single-branch --branch master https://github.com/Microsoft/vcpkg.git ../vcpkg
7-
fi
8-
9-
if [ ! -f "../vcpkg/vcpkg" ]; then
10-
cd ../vcpkg
5+
if [ ! -f "./vcpkg/vcpkg" ]; then
6+
cd vcpkg
117
./bootstrap-vcpkg.sh -disableMetrics
12-
cd ../mutils
8+
cd ..
139
fi
1410

1511
triplet=(x64-linux)
1612
if [ "$(uname)" == "Darwin" ]; then
1713
triplet=(x64-osx)
1814
fi
1915

20-
if [ ! -d "../vcpkg/imgui" ]; then
21-
cd ../vcpkg
22-
./vcpkg install kissfft cppcodec clipp date kubazip tinydir fmt portaudio nanovg libcuckoo foonathan-memory cpp-httplib tinyfiledialogs imgui[sdl2-binding,freetype,opengl3-binding] gl3w gsl-lite glm concurrentqueue utfcpp stb catch2 magic-enum nlohmann-json cpptoml toml11 drlibs freetype sdl2 --triplet ${triplet[0]} --recurse
16+
if [ ! -d "./vcpkg/imgui" ]; then
17+
cd vcpkg
18+
./vcpkg install clipp tinydir fmt imgui[freetype,sdl2-binding,opengl3-binding] tinyfiledialogs gl3w gsl-lite concurrentqueue catch2 cpptoml freetype sdl2 --triplet ${triplet[0]} --recurse
2319
if [ "$(uname)" != "Darwin" ]; then
2420
./vcpkg install glib --triplet ${triplet[0]} --recurse
2521
fi
26-
cd ../mutils
22+
cd ..
2723
fi
2824

vcpkg

Submodule vcpkg added at 71d3fa6

0 commit comments

Comments
 (0)