recipes-azure-device-update/deliveryoptimization-agent/deliveryoptimization-agent_git.bb (25 lines of code) (raw):
# Build and install Delivery Optimization Simple Client.
# Environment variables that can be used to configure the behaviour of this recipe.
# BUILD_TYPE Changes the type of build produced by this recipe.
# Valid values are Debug, Release, RelWithDebInfo, and MinRelSize.
# These values are the same as the CMAKE_BUILD_TYPE variable.
LICENSE = "CLOSED"
DO_GIT_BRANCH ?= "develop"
DO_SRC_URI ?= "git://github.com/microsoft/do-client"
SRC_URI = "${DO_SRC_URI};protocol=https;branch=${DO_GIT_BRANCH}"
DO_GIT_COMMIT ?= "98919b269e375f2ee317f0f1d91e655b91800a04"
SRCREV = "${DO_GIT_COMMIT}"
PV = "1.0+git${SRCPV}"
S = "${WORKDIR}/git"
DEPENDS = "boost curl libproxy msft-gsl"
inherit cmake
BUILD_TYPE ?= "Debug"
EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=${BUILD_TYPE}"
# Don't build DO tests.
EXTRA_OECMAKE += "-DDO_BUILD_TESTS=OFF"
# Specify build is for deliveryoptimization-agent
EXTRA_OECMAKE += "-DDO_INCLUDE_AGENT=ON"
# cpprest installs its config.cmake file in a non-standard location.
# Tell cmake where to find it.
EXTRA_OECMAKE += "-Dcpprestsdk_DIR=${WORKDIR}/recipe-sysroot/usr/lib/cmake"
BBCLASSEXTEND = "native nativesdk"