mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-10-18 10:19:58 +00:00
94abed56ff
- 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)
41 lines
737 B
Markdown
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.
|