CrunchBound
|
If you would like to build crunchbound from source, please follow the instructions in this file. If you encounter any issues, please do not hesitate to open an issue on GitHub.
CrunchBound uses shared libraries and needs them installed at compile- and runtime. The required libraries are:
In addition to the shared libraries, the following packages are required (these include configuration tools and compilers):
To install these dependencies, we will use the yay AUR helper. Please install yay according to these instructions and then continue here: Yay Installation
Install the build- and runtime dependencies using yay (as always, check PKGBUILD before downloading things from the AUR):
That's it, you're all set up to build CrunchBound now!
The following optional dependencies can be installed to enable full tooling via the makefile and help with development:
To get the current version of the CrunchBound source code, clone the git repo to a location of your choice:
CrunchBound is shipped with a Makefile that is used to automate several processes during development. Depending on what you want to achieve, you can execute a different target.
The Makefile automatically detects cpp and hpp files in the working directory.
This is probably the most common action. It will produce a binary at ./bin/crunchbound which you can then execute. To build the binary, simply execute the following command:
If you want to remove any build files, and have a clean working area, you have multiple options. Some are more thourough that others.
If you want to make sure there is nothing left of any builds, run the following command:
This will delete:
To only remove build files but leave makedepends intact, run:
This will delete:
To only remove the files from the packaging process, execute:
This will delete:
To combine make distclean
and make
, run:
This is useful if you want to make sure the entire project is actually recompiled, as make sometimes does not notice changes in included files.
To package the application using PKGBUILD into an Arch Linux package, run the following command:
An Arch Linux package will be built to ./package/arch/
make clean
!yay -S appimagetool-bin
.To package the application into a fully self-contained AppImage file, execute the following command:
This will create an AppImage in ./package/appimage/.
Before the appimage is built, it will be organized into ./package/appimage/crunchbound.AppDir/. Any required libraries, as well as assets will be copied there, and then packaged into the AppImage file.
make clean
!make prepare-appimage
, and then modify the contents. To then build the appimage, run make build-appimage
. This may be useful for testing purposes.To build all available packaging formats at once, run:
This will build both an AppImage and an Arch package.
make clean
!By default, make
builds a debug version of the project using the gcc flags -g -DDEVELOPMENT
. If you would like to build a release version, run make release
.
/usr/share/crunchbound/assets
, since the DEVELOPMENT macro is not set!By default, packaging always uses release, and all other profiles use debug.
Release builds are stripped ELF binaries without debug symbols.
The documentation is available on GitHub pages here.
To build the Doxygen documentation, you need doxygen and graphviz (dot) installed. To install them:
Then, build the docs:
They will be placed into ./docs/html/
. Just open the index.html
in a browser of your choice.