chdman/README.md
Hugo Locurcio 94abed56ff Improve README
- List CMake dependency.
- Add note about Ninja package name being different on Debian/Ubuntu.
- Use modern CMake commands for building with fewer steps in a generator-agnostic way.
- Improve formatting.
- Commit amend (Revert the installation steps)
2023-01-05 06:46:54 +02:00

41 lines
737 B
Markdown

# chdman standalone
Can be built on [Termux](https://termux.dev/).
## Compilation
### Install dependencies
```
apt update && apt dist-upgrade -y
apt install build-essential git cmake ninja
```
> **Note**
>
> On Debian/Ubuntu, the Ninja package is called `ninja-build` instead of `ninja`.
### Build chdman
```
git clone https://github.com/CharlesThobe/chdman.git
cd chdman
cmake -B build -G Ninja
cmake --build build
```
The `chdman` binary will be in the `build/` directory.
### Install on Termux
After you compile, run:
```
cp chdman ~/../usr/bin/.
```
> **Note**
>
> You can copy `CMakeLists.txt`, `cmake_subdirs/`, `src/version.cpp` and
> `src/osd/modules/lib/osd_getenv.cpp` over the MAME source tree and it will
> build.