Closes #202
This commit is contained in:
Max Howell 2023-04-11 16:48:43 -04:00
parent 567177d56b
commit ff60942840

View file

@ -0,0 +1,32 @@
distributable:
url: https://c-ares.org/download/c-ares-{{version}}.tar.gz
strip-components: 1
versions:
- 1.19.0
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: ^3
working-directory: build
script: |
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DCMAKE_BUILD_TYPE=Release
make --jobs {{hw.concurrency}} install
test:
dependencies:
tea.xyz/gx/cc: c99
fixture: |
#include <stdio.h>
#include <ares.h>
int main() {
ares_library_init(ARES_LIB_INIT_ALL);
ares_library_cleanup();
return 0;
}
script: |
mv $FIXTURE b.c
cc b.c -lcares
./a.out