blob: 228b8b65406a89e9293a954d4c09c481ab48bae6 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4DESCRIPTION = "Lightweight cross platform C++ GUID/UUID library"
5HOMEPAGE = "https://github.com/graeme-hill/crossguid"
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=1373274bc8d8001edc54933919f36f68"
8DEPENDS += "util-linux"
9
10PV = "0.0+git${SRCPV}"
11
12SRCREV = "b56957ac453575e91ca1b63a80c0077c2b0d011a"
13SRC_URI = "git://github.com/graeme-hill/crossguid;protocol=https"
14
15S = "${WORKDIR}/git"
16
17do_compile() {
18 ${CXX} -c guid.cpp -o guid.o ${CXXFLAGS} -std=c++11 -DGUID_LIBUUID
19 ${AR} rvs libcrossguid.a guid.o
20}
21
22do_install() {
23 install -D -m 0644 ${B}/libcrossguid.a ${D}${libdir}/libcrossguid.a
24 install -D -m 0644 ${S}/guid.h ${D}${includedir}/guid.h
25}