Files
Khem Raj 9707426b83 liboauth2: Add knob for code coverage
Keep the knob disabled by default, as it will need
c runtime to provide profiling runtime, which is not
compiled into compiler-rt by default. So it ends up
with build failures e.g.

| aarch64-yoe-linux-ld.lld: error: cannot open /mnt/b/yoe/master/kas-build/tmp/work/cortexa72-yoe-linux/liboauth2/2.2.0/recipe-sysroot/usr/lib/clang/22.1.3/lib/aarch64-yoe-linux/libclang_rt.profile.a: No such file or directory
| aarch64-yoe-linux-clang: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-17 14:16:04 -07:00

25 lines
992 B
BlitzBasic

SUMMARY = "OAuth 2.x and OpenID Connect C library"
HOMEPAGE = "https://github.com/OpenIDC/liboauth2"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
SRC_URI = " \
git://github.com/OpenIDC/liboauth2;protocol=https;branch=master;tag=v${PV} \
file://0001-fix-clang-curl_easy_setopt-takes-a-long-not-an-int.patch \
file://0002-Fix-use-of-strchr-with-new-GCC.patch \
file://0001-build-guard-coverage-linker-flag-behind-CODE_COVERAG.patch \
"
SRCREV = "12571b6d6568c2db7d5f080f60ecb55795c0db19"
DEPENDS = "libpcre2 jansson curl openssl cjose"
inherit pkgconfig autotools-brokensep
PACKAGECONFIG ??= ""
PACKAGECONFIG[memcache] = "--with-memcache,--without-memcache,libmemcached"
PACKAGECONFIG[redis] = "--with-redis,--without-redis,hiredis"
PACKAGECONFIG[jq] = "--with-jq,--without-jq,jq"
PACKAGECONFIG[apache] = "--with-apache,--without-apache,apache2"
PACKAGECONFIG[ccov] = "--enable-code-coverage,--disable-code-coverage,"