2021-12-16 18:37:21 +00:00
|
|
|
# chdman standalone
|
|
|
|
|
2023-01-02 19:06:25 +00:00
|
|
|
Can be built on [Termux](https://termux.dev/).
|
|
|
|
|
2023-01-29 22:58:27 +00:00
|
|
|
This repository is a fork of [MAME](https://github.com/mamedev/mame/)
|
|
|
|
|
|
|
|
for real contributors to the chdman utility, please visit their repository.
|
|
|
|
|
2023-01-02 19:06:25 +00:00
|
|
|
## 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
|
2023-01-02 19:06:25 +00:00
|
|
|
apt install build-essential git cmake ninja
|
2021-12-16 18:37:21 +00:00
|
|
|
```
|
|
|
|
|
2023-01-02 19:06:25 +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
|
2023-01-02 19:06:25 +00:00
|
|
|
cmake -B build -G Ninja
|
|
|
|
cmake --build build
|
2021-12-16 18:37:21 +00:00
|
|
|
```
|
|
|
|
|
2023-01-02 19:06:25 +00:00
|
|
|
The `chdman` binary will be in the `build/` directory.
|
|
|
|
|
|
|
|
### Install on Termux
|
2022-01-04 02:56:01 +00:00
|
|
|
|
2023-01-02 19:06:25 +00:00
|
|
|
After you compile, run:
|
2022-01-04 03:57:49 +00:00
|
|
|
```
|
|
|
|
cp chdman ~/../usr/bin/.
|
|
|
|
```
|
|
|
|
|
2023-01-02 19:06:25 +00:00
|
|
|
> **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.
|