summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb')
-rw-r--r--meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb47
1 files changed, 0 insertions, 47 deletions
diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb
deleted file mode 100644
index 87a8cbbb88..0000000000
--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb
+++ /dev/null
@@ -1,47 +0,0 @@
1SUMMARY = "GSL: Guidelines Support Library"
2DESCRIPTION = "The Guidelines Support Library (GSL) contains functions \
3 and types that are suggested for use by the C++ Core Guidelines \
4 maintained by the Standard C++ Foundation. \
5 This repo contains Microsoft's implementation of GSL."
6HOMEPAGE = "https://github.com/microsoft/GSL"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7"
10
11SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=rel/4.2;tag=v${PV} \
12 file://run-ptest \
13 "
14SRCREV = "249146590e322123cd0b378b1f364d6069717687"
15
16inherit cmake pkgconfig ptest
17
18EXTRA_OECMAKE += "-DGSL_CXX_STANDARD=17"
19
20# this is header-only library
21ALLOW_EMPTY:${PN} = "1"
22
23PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}"
24PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest"
25
26# clang disagrees with https://github.com/google/googletest/pull/3457
27CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default"
28# Disable disabled-macro-expansion warning as error as its seen on musl
29CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion"
30
31do_install_ptest() {
32 install -d ${D}${bindir}
33 install -m 0755 ${B}/tests/gsl_tests ${D}${bindir}
34 install -m 0755 ${B}/tests/gsl_noexcept_tests ${D}${bindir}
35}
36
37FILES:${PN}-ptest = "${bindir}/gsl*_tests"
38
39# there is already other gsl recipe, so recipe name does not match the real component name
40CVE_PRODUCT = "microsoft:gsl"
41
42BBCLASSEXTEND = "native nativesdk"
43
44# This one is reproducible only on 32bit arm MACHINEs (didn't see it with qemux86 or qemux86-64 builds)
45# http://errors.yoctoproject.org/Errors/Details/766976/
46# lib32-microsoft-gsl/4.0.0/git/tests/span_tests.cpp:1275:34: error: value computed is not used [-Werror=unused-value]
47CXXFLAGS += "-Wno-error=unused-value"