diff options
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.bb | 47 |
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 @@ | |||
| 1 | SUMMARY = "GSL: Guidelines Support Library" | ||
| 2 | DESCRIPTION = "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." | ||
| 6 | HOMEPAGE = "https://github.com/microsoft/GSL" | ||
| 7 | |||
| 8 | LICENSE = "MIT" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=rel/4.2;tag=v${PV} \ | ||
| 12 | file://run-ptest \ | ||
| 13 | " | ||
| 14 | SRCREV = "249146590e322123cd0b378b1f364d6069717687" | ||
| 15 | |||
| 16 | inherit cmake pkgconfig ptest | ||
| 17 | |||
| 18 | EXTRA_OECMAKE += "-DGSL_CXX_STANDARD=17" | ||
| 19 | |||
| 20 | # this is header-only library | ||
| 21 | ALLOW_EMPTY:${PN} = "1" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}" | ||
| 24 | PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest" | ||
| 25 | |||
| 26 | # clang disagrees with https://github.com/google/googletest/pull/3457 | ||
| 27 | CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default" | ||
| 28 | # Disable disabled-macro-expansion warning as error as its seen on musl | ||
| 29 | CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion" | ||
| 30 | |||
| 31 | do_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 | |||
| 37 | FILES:${PN}-ptest = "${bindir}/gsl*_tests" | ||
| 38 | |||
| 39 | # there is already other gsl recipe, so recipe name does not match the real component name | ||
| 40 | CVE_PRODUCT = "microsoft:gsl" | ||
| 41 | |||
| 42 | BBCLASSEXTEND = "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] | ||
| 47 | CXXFLAGS += "-Wno-error=unused-value" | ||
