[DO-972][DO-980] add freetype and pkgconf recipes (!6)

Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/6
This commit is contained in:
Aleksandr Vodyanov
2024-12-06 16:48:28 +03:00
parent 25212f3eed
commit cb6a88b7f4
184 changed files with 1708 additions and 9302 deletions

View File

@@ -0,0 +1,19 @@
--- meson.build
+++ meson.build
@@ -31,11 +31,11 @@
- ['HAVE_CYGWIN_CONV_PATH', 'cygwin_conv_path', 'sys/cygwin.h'],
- ['HAVE_STRLCAT', 'strlcat', 'string.h'],
- ['HAVE_STRLCPY', 'strlcpy', 'string.h'],
- ['HAVE_STRNDUP', 'strndup', 'string.h'],
+ ['HAVE_CYGWIN_CONV_PATH', 'cygwin_conv_path(CCP_POSIX_TO_WIN_A, (void*)0, (void*)0, 0)', 'sys/cygwin.h'],
+ ['HAVE_STRLCAT', 'strlcat((void*)0, (void*)0, 0)', 'string.h'],
+ ['HAVE_STRLCPY', 'strlcpy((void*)0, (void*)0, 0)', 'string.h'],
+ ['HAVE_STRNDUP', 'strndup((void*)0, 0)', 'string.h'],
]
foreach f : check_functions
- if cc.has_function(f.get(1), prefix : '#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1))
+ if cc.links('#include <' + f.get(2) + '>\nint main() { ' + f.get(1) + ';}')
cdata.set(f.get(0), 1)
endif
endforeach