mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

This recipe is for showing a "real world" example of a crate that depends on some git repositories. Usually, this kind of crate is built within a global workspace (here it is the zbus project) and so doesn't need a Cargo.lock on its own. For the sake of the demonstration, I had to tweak things a little to be able to compile zvariant in standalone (no relative path in dependency, no symlink to LICENSE provide a Cargo.lock) The use case where the crate had some git repository in dependency is very common for "private" crate that are not aimed to be published on crates.io. When the project grow bigger, it is common to have a bin and multiple lib developped in parallel, and these libs are surely on a git repostitory. A test case have been also added to check for: - the previous patch about git subpath parameter and devtool - the correctness of overriding dependencies (first patch of the series) (From OE-Core rev: 409e045f96f69877de6f36ed14c5c19a9cb74eaf) Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
665 B
HTML
15 lines
665 B
HTML
SRC_URI += "\
|
|
git://github.com/gtk-rs/glib;protocol=https;nobranch=1;name=glib;destsuffix=glib;type=git-dependency \
|
|
git://github.com/gtk-rs/sys;protocol=https;nobranch=1;name=glib-sys;destsuffix=glib-sys;subpath=glib-sys;type=git-dependency \
|
|
git://github.com/gtk-rs/sys;protocol=https;nobranch=1;name=gobject-sys;destsuffix=gobject-sys;subpath=gobject-sys;type=git-dependency \
|
|
"
|
|
|
|
SRCREV_FORMAT .= "_glib"
|
|
SRCREV_glib = "c9ee583cea07830c099cdcccd33eda9ef705ea93"
|
|
|
|
SRCREV_FORMAT .= "_glib-sys"
|
|
SRCREV_glib-sys = "5f35e26c65d24f8f018f643218de0f5807ba5f01"
|
|
|
|
SRCREV_FORMAT .= "_gobject-sys"
|
|
SRCREV_gobject-sys = "5f35e26c65d24f8f018f643218de0f5807ba5f01"
|