mirror of
https://github.com/php/pecl-text-ssdeep.git
synced 2026-03-23 23:02:09 +01:00
- adds a basic CI setup to build and test on linux and windows - as expected tests on PHP 8 are currently failing
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("ssdeep", "ssdeep support", "no");
|
|
|
|
if (PHP_SSDEEP != "no") {
|
|
if (CHECK_LIB("fuzzy_a.lib;fuzzy.lib", "ssdeep", PHP_SSDEEP) &&
|
|
CHECK_HEADER_ADD_INCLUDE("fuzzy.h", "CFLAGS_SSDEEP") &&
|
|
CHECK_HEADER_ADD_INCLUDE("edit_dist.h", "CFLAGS_SSDEEP")) {
|
|
EXTENSION("ssdeep", "ssdeep.c");
|
|
} else {
|
|
WARNING("ssdeep not enabled; libraries and headers not found");
|
|
}
|
|
}
|