chdman/README.md

45 lines
885 B
Markdown
Raw Normal View History

2021-12-16 18:37:21 +00:00
# chdman standalone
Can be built on [Termux](https://termux.dev/).
This repository is a fork of [MAME](https://github.com/mamedev/mame/)
for real contributors to the chdman utility, please visit their repository.
## Compilation
### Install dependencies
2021-12-16 18:37:21 +00:00
```
2022-01-04 02:23:25 +00:00
apt update && apt dist-upgrade -y
apt install build-essential git cmake ninja
2021-12-16 18:37:21 +00:00
```
> **Note**
>
> On Debian/Ubuntu, the Ninja package is called `ninja-build` instead of `ninja`.
### Build chdman
2021-12-16 18:37:21 +00:00
```
git clone https://github.com/CharlesThobe/chdman.git
cd chdman
cmake -B build -G Ninja
cmake --build build
2021-12-16 18:37:21 +00:00
```
The `chdman` binary will be in the `build/` directory.
### Install on Termux
2022-01-04 02:56:01 +00:00
After you compile, run:
2022-01-04 03:57:49 +00:00
```
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.