diff options
Diffstat (limited to 'meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb')
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb index 9cb325870..e6c65d306 100644 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb +++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb | |||
@@ -27,4 +27,27 @@ EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \ | |||
27 | 27 | ||
28 | SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}" | 28 | SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}" |
29 | 29 | ||
30 | PACKAGES_DYNAMIC = "^libabsl-*" | ||
31 | PACKAGES_DYNAMIC:class-native = "" | ||
32 | |||
33 | PACKAGESPLITFUNCS =+ "split_dynamic_packages" | ||
34 | |||
35 | python split_dynamic_packages() { | ||
36 | libdir = d.getVar('libdir') | ||
37 | |||
38 | libpackages = do_split_packages( | ||
39 | d, | ||
40 | root=libdir, | ||
41 | file_regex=r'^libabsl_(.*)\.so\..*$', | ||
42 | output_pattern='libabsl-%s', | ||
43 | description="abseil shared library %s", | ||
44 | prepend=True, | ||
45 | extra_depends='', | ||
46 | ) | ||
47 | if libpackages: | ||
48 | d.appendVar('RDEPENDS:' + d.getVar('PN'), ' ' + ' '.join(libpackages)) | ||
49 | } | ||
50 | |||
51 | ALLOW_EMPTY:${PN} = "1" | ||
52 | |||
30 | BBCLASSEXTEND = "native nativesdk" | 53 | BBCLASSEXTEND = "native nativesdk" |