aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/snappy/snappy_1.1.10.bb
blob: bc3bc3aa47d5530d104cf425fa2d2371adf52f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Copyright (C) 2014 Wind River Systems, Inc.
# Released under the BSD-3-Clause license (see COPYING.BSD-3 for the terms)
#
SUMMARY = "A compression/decompression library"
DESCRIPTION = "Snappy is a fast data compression and decompression library \
It was designed to be very fast and stable, but not to achieve a high \
compression ratio."

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"

SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main \
	   file://fix-build-on-32bit-arm.patch"

SRCREV = "dc05e026488865bc69313a68bcc03ef2e4ea8e83"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

PACKAGECONFIG ??= ""
PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
TARGET_CFLAGS += "-fPIC"

EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" -DSNAPPY_BUILD_TESTS="OFF" -DSNAPPY_BUILD_BENCHMARKS="OFF"'

CVE_PRODUCT = "google:snappy"