Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CMake build system #256

Open
TheAssassin opened this issue Jul 1, 2023 · 1 comment · May be fixed by #261
Open

Use CMake build system #256

TheAssassin opened this issue Jul 1, 2023 · 1 comment · May be fixed by #261

Comments

@TheAssassin
Copy link

The current Makefile does not check any dependencies and is overall a bit limited. How about setting up a modern build system like CMake?

@wllm-rbnt
Copy link

wllm-rbnt commented Aug 22, 2023

I gave it a shot on my fork.

To test it, first clone my branch and enter the repo:

$ git clone -b cmake https://github.com/wllm-rbnt/squashfs-tools/
$ cd squashfs-tools/squashfs-tools

Then, edit user defined variables & options in CMakeLists.txt (top section).

Then you can test it using Ninja:

$ sudo apt install ninja-build
$ cmake -B build -G Ninja
$ ninja -C build
$ ninja -C build install

or make

$ cmake -B build
$ cd build
$ make
$ make install

DATE, VERSION and YEAR have to be edited manually.
Only pre-built manpages installation will work for now.
Building with LZMA1 support is not supported.

William

@wllm-rbnt wllm-rbnt linked a pull request Aug 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants