aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConfuSomu2024-05-23 02:28:41 -0400
committerConfuSomu2024-05-23 02:28:41 -0400
commit294f7f78fe3e81bef2c23750426b53354b1b20a6 (patch)
tree099ea01e82ac86d1361be383b206b02e781ba45e
parenta7de3bfca7282dcbb65dc1a23813e23ebeee4d02 (diff)
downloadActorViewer-294f7f78fe3e81bef2c23750426b53354b1b20a6.tar
ActorViewer-294f7f78fe3e81bef2c23750426b53354b1b20a6.tar.gz
ActorViewer-294f7f78fe3e81bef2c23750426b53354b1b20a6.zip
Make building instructions in readme more clear
Explain more precisely how to get git submodules, and mention that mastodonpp support can be disabled.
-rw-r--r--README.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/README.md b/README.md
index d29354d..bbead54 100644
--- a/README.md
+++ b/README.md
@@ -15,15 +15,20 @@ Furthermore, support for viewing replies to your posts will be added. I also wan
## Building
-To build, please have CMake and the Qt library installed. You will also need [mastodonpp](https://schlomp.space/tastytea/mastodonpp/), which can be retrieved by initializing git submodules.
+To build, have a C++17-compliant compiler, CMake 3.9 or later, and the Qt 5 or 6 library installed. This repo uses git submodules which can be fetched by recursively cloning (`git clone --recurse-submodules`) or initializing submodules afterwards (`git submodule update --init`).
-Simply said, after install CMake and Qt from your package manager, do the following to build the project:
+That should get dependencies which currently are [mastodonpp](https://schlomp.space/tastytea/mastodonpp/). Note that when asking CMake to generate the build files, you can disable mastodonpp support by passing `-DMASTODONPP_BUILD=0`.
+
+Simply said, after installing CMake and Qt from your package manager, do the following to build the project:
```
git clone --recurse-submodules https://git.twilightsparkle.space/ActorViewer && cd ActorViewer
-cmake -B build -DCMAKE_BUILD_TYPE=Debug # Initially and if CMakeLists.txt changes
-cmake --build build -j$(nproc --all) --target all # To build
-cmake --build build -j$(nproc --all) --target clean # To clean
+
+# Generate build files (initially and if CMakeLists.txt changes)
+cmake -B build -DCMAKE_BUILD_TYPE=Debug
+
+# Build!
+cmake --build build -j$(nproc --all) --target all
```
I plan to make a Flatpak in the near future so that manually building will not be necessary.