1*4882a593SmuzhiyunSUMMARY = "LevelDB is a fast key-value storage library" 2*4882a593SmuzhiyunDESCRIPTION = "LevelDB is a fast key-value storage library that provides an ordered mapping from string keys to string values" 3*4882a593SmuzhiyunHOMEPAGE = "https://github.com/google/leveldb" 4*4882a593SmuzhiyunLICENSE = "BSD-3-Clause" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=92d1b128950b11ba8495b64938fc164d" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSRC_URI = "git://github.com/google/${BPN}.git;branch=main;protocol=https \ 8*4882a593Smuzhiyun file://run-ptest" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSRCREV = "78b39d68c15ba020c0d60a3906fb66dbf1697595" 11*4882a593SmuzhiyunS = "${WORKDIR}/git" 12*4882a593Smuzhiyun 13*4882a593Smuzhiyuninherit cmake ptest 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunPACKAGECONFIG ??= "" 16*4882a593SmuzhiyunPACKAGECONFIG[benchmarks] = "-DLEVELDB_BUILD_BENCHMARKS=ON,-DLEVELDB_BUILD_BENCHMARKS=OFF,sqlite" 17*4882a593SmuzhiyunPACKAGECONFIG[snappy] = ",,snappy" 18*4882a593SmuzhiyunPACKAGECONFIG[tcmalloc] = ",,gperftools" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunEXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON \ 21*4882a593Smuzhiyun -DLEVELDB_BUILD_TESTS=${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'ON', 'OFF', d)}" 22*4882a593Smuzhiyun 23*4882a593Smuzhiyundo_install:append() { 24*4882a593Smuzhiyun install -D -m 0755 ${B}/leveldbutil ${D}${bindir}/leveldbutil 25*4882a593Smuzhiyun} 26*4882a593Smuzhiyun 27*4882a593Smuzhiyundo_install_ptest() { 28*4882a593Smuzhiyun install -m 0755 ${B}/*_test ${D}${PTEST_PATH} 29*4882a593Smuzhiyun} 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun# Do not try to build lib32-leveldb for mips64, but allow libn32-leveldb. 32*4882a593Smuzhiyun# 33*4882a593SmuzhiyunCOMPATIBLE_HOST:mipsarcho32:pn-lib32-leveldb = "null" 34