aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-02-05 22:12:18 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-02-05 22:48:00 +0900
commit11ff4ea834832a4584753391ba12a3e9e78ba8a7 (patch)
tree7b3ce0327f69cb8b49c86b2a1b80405db92e4965
parent1c16e3234b00db8ba114c8f14414b37f877dc2fe (diff)
downloadmeta-ivi-11ff4ea834832a4584753391ba12a3e9e78ba8a7.tar.gz
meta-ivi-11ff4ea834832a4584753391ba12a3e9e78ba8a7.tar.bz2
meta-ivi-11ff4ea834832a4584753391ba12a3e9e78ba8a7.zip
audiomanager: add test package, fix up audiotmanagerConfig.cmake
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi/recipes-multimedia/audiomanager/audiomanager_7.0.bb27
1 files changed, 18 insertions, 9 deletions
diff --git a/meta-ivi/recipes-multimedia/audiomanager/audiomanager_7.0.bb b/meta-ivi/recipes-multimedia/audiomanager/audiomanager_7.0.bb
index 60178c3..96d19d2 100644
--- a/meta-ivi/recipes-multimedia/audiomanager/audiomanager_7.0.bb
+++ b/meta-ivi/recipes-multimedia/audiomanager/audiomanager_7.0.bb
@@ -23,22 +23,23 @@ SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "AudioManager.service"
SYSTEMD_AUTO_ENABLE = "disable"
-EXTRA_OECMAKE += "-DWITH_TESTS=OFF -DUSE_BUILD_LIBS=OFF"
+#EXTRA_OECMAKE += "-DWITH_TESTS=OFF -DUSE_BUILD_LIBS=OFF"
+PACKAGES += "${PN}-test "
OECMAKE_CXX_FLAGS +="-ldl"
-FILES_${PN} += " \
- ${libdir}/audioManager/command/*.so* \
- ${libdir}/audioManager/control/*.so* \
- ${libdir}/audioManager/routing/*.so* \
+FILES_${PN} = " \
+ ${bindir}/* \
${systemd_unitdir}/AudioManager.service \
${systemd_unitdir}/scripts/setup_amgr.sh \
"
-
+FILES_${PN}-dev += " \
+ ${libdir}/audiomanager/cmake* \
+ "
FILES_${PN}-dbg += " \
- ${libdir}/audioManager/command/.debug/* \
- ${libdir}/audioManager/control/.debug/* \
- ${libdir}/audioManager/routing/.debug/* \
+ ${libdir}/audiomanager/tests/.debug/* \
"
+FILES_${PN}-test = " \
+ ${libdir}/audiomanager/tests/* "
do_install_append() {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
@@ -47,4 +48,12 @@ do_install_append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/AudioManager.service ${D}${systemd_unitdir}/system
fi
+
+ perl -pi -e \
+ 's/set_and_check\(CMAKE_MODULE_PATH/#set_and_check\(CMAKE_MODULE_PATH/' \
+ ${D}${libdir}/audioManager/cmake/audiomanagerConfig.cmake
+
+ mv ${D}/home/*/tests ${D}${libdir}/audiomanager/
+ rmdir ${D}/home/*
+ rmdir ${D}/home
}