]> git.ipfire.org Git - thirdparty/zstd.git/commit
[build] Add support for ASM files in Make + CMake 2783/head
authorNick Terrell <terrelln@fb.com>
Fri, 17 Sep 2021 18:42:08 +0000 (11:42 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 17 Sep 2021 21:13:53 +0000 (14:13 -0700)
commit8bf699aa59372d7c2bb4216bcf8037cab7dae51e
tree345b8b30e23bb4794d5744462c25568fcd6da4da
parent9d2a45a705e22ad4817b41442949cd0f78597154
[build] Add support for ASM files in Make + CMake

* Extract out common portion of `lib/Makefile` into `lib/libzstd.mk`.
  Most relevantly, the way we find library files.
* Use `lib/libzstd.mk` in the other Makefiles instead of repeating the
  same code.
* Add a test `tests/test-variants.sh` that checks that the builds of
  `make -C programs allVariants` are correct, and run it in Actions.
* Adds support for ASM files in the CMake build.

The Meson build is not updated because it lists every file in zstd,
and supports ASM off the bat, so the Huffman ASM commit will just add
the ASM file to the list.

The Visual Studios build is not updated because I'm not adding ASM
support to Visual Studios yet.
16 files changed:
.circleci/config.yml
.github/workflows/dev-short-tests.yml
Makefile
build/cmake/lib/CMakeLists.txt
contrib/freestanding_lib/freestanding.py
contrib/linux-kernel/test/Makefile
contrib/pzstd/Makefile
lib/Makefile
lib/compress/huf_compress.c
lib/libzstd.mk [new file with mode: 0644]
programs/Makefile
tests/Makefile
tests/fuzz/Makefile
tests/fuzzer.c
tests/regression/Makefile
tests/test-variants.sh [new file with mode: 0755]