Merge changes from Calinou:improve-readme branch while reverting the installation line.

Improve README
This commit is contained in:
Charles the Thobe 2023-01-05 06:54:28 +02:00 committed by GitHub
commit 7d794ce266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,40 @@
# chdman standalone # chdman standalone
can be built on termux
### Installing building tools. Can be built on [Termux](https://termux.dev/).
## Compilation
### Install dependencies
``` ```
apt update && apt dist-upgrade -y apt update && apt dist-upgrade -y
apt install build-essential git ninja apt install build-essential git cmake ninja
``` ```
### Building > **Note**
>
> On Debian/Ubuntu, the Ninja package is called `ninja-build` instead of `ninja`.
### Build chdman
``` ```
git clone https://github.com/CharlesThobe/chdman.git git clone https://github.com/CharlesThobe/chdman.git
cd chdman cd chdman
mkdir build && cd build cmake -B build -G Ninja
cmake -G Ninja .. && ninja cmake --build build
``` ```
the `chdman` binary will be in the build directory. The `chdman` binary will be in the `build/` directory.
### Installing on termux ### Install on Termux
after you compile run:
After you compile, run:
``` ```
cp chdman ~/../usr/bin/. 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. > **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.