xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/snappy/snappy_1.1.9.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#
2# Copyright (C) 2014 Wind River Systems, Inc.
3# Released under the BSD-3-Clause license (see COPYING.BSD-3 for the terms)
4#
5SUMMARY = "A compression/decompression library"
6DESCRIPTION = "Snappy is a fast data compression and decompression library \
7It was designed to be very fast and stable, but not to achieve a high \
8compression ratio."
9
10LICENSE = "BSD-3-Clause"
11LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
12
13SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main \
14    file://0001-Add-inline-with-SNAPPY_ATTRIBUTE_ALWAYS_INLINE.patch \
15"
16SRCREV = "2b63814b15a2aaae54b7943f0cd935892fae628f"
17S = "${WORKDIR}/git"
18
19
20inherit cmake pkgconfig
21
22PACKAGECONFIG ??= ""
23PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
24TARGET_CFLAGS += "-fPIC"
25
26EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" -DSNAPPY_BUILD_TESTS="OFF" -DSNAPPY_BUILD_BENCHMARKS="OFF"'
27