summaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb
blob: f48693681b8bff666fedfd4547f18d1c55a1a15c (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SUMARY = "Common persistence object used by client library and administrator"
HOMEPAGE = "http://projects.genivi.org/persistence-client-library"
BUGTRACKER = "http://bugs.genivi.org/enter_bug.cgi?product=Persistence"
SECTION = "base"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=815ca599c9df247a0c7f619bab123dad"

SRC_URI = " \
    git://git.projects.genivi.org/persistence/persistence-common-object.git;tag=${PV} \
    file://configure.ac-fix-typo.patch \
    file://B251_typedef_uint64_t.patch \
    "
#link for bug 251 in bugzilla https://bugs.genivi.org/show_bug.cgi?id=251

DEPENDS = "glib-2.0 libitzam dlt-daemon"

S = "${WORKDIR}/git"

inherit autotools-brokensep pkgconfig

EXTRA_OECONF = "--with-dbuspolicydir=${sysconfdir} --with-database=key-value-store"

FILES_${PN} += "${datadir}"

#
# for test
#
EXTRA_OECONF += "--enable-tests"

do_install_append() {
   install -d ${D}${bindir}
   install -m 0755 ${S}/test/.libs/test_pco_key_value_store ${D}${bindir}
}

PACKAGES += "${PN}-testenv"
RDEPENDS_${PN} += "${PN}-testenv"

FILES_${PN} = " \
    ${libdir}/*.so.* \
    ${sysconfdir} \
    ${datadir}/dbus-1/interfaces/* \
    "

FILES_${PN}-testenv = " \
   ${bindir}/test_pco_key_value_store \
   "