Add rustlib for publishing rust runtime
This commit is contained in:
committed by
Steven Walter
parent
629aebb1c3
commit
709957b3b6
24
recipes/rust/rustlib.bb
Normal file
24
recipes/rust/rustlib.bb
Normal file
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "Rust runtime libaries"
|
||||
HOMEPAGE = "http://www.rust-lang.org"
|
||||
SECTION = "devel"
|
||||
LICENSE = "MIT | Apache-2.0"
|
||||
|
||||
inherit rust
|
||||
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}rust"
|
||||
RUSTLIB_DEP = ""
|
||||
|
||||
rustlib="${libdir}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${HOST_SYS}/lib"
|
||||
|
||||
do_install () {
|
||||
mkdir -p ${D}/${rustlib}
|
||||
cp ${STAGING_DIR_NATIVE}/${rustlib}/*.so ${D}/${rustlib}
|
||||
}
|
||||
|
||||
# This has no license file
|
||||
python do_qa_configure() {
|
||||
return True
|
||||
}
|
||||
|
||||
FILES_${PN} += "${rustlib}/*.so"
|
||||
FILES_${PN}-dbg += "${rustlib}/.debug"
|
||||
Reference in New Issue
Block a user