gfxstream: qnx meson update build scripts
QNX hypervisor looks for "libgfxstream.so", so a softlink to
"libgfxstream_backend.so" is created. The install copies all
required files and links, avoiding the directory with the same prefix
BUG=287082350
TEST=qnx cross compile: cd qnx || make
Change-Id: I86b9dca050ef287c33250cefacab6de80e0446d9
diff --git a/qnx/common.mk b/qnx/common.mk
index 478ba15..67b996e 100644
--- a/qnx/common.mk
+++ b/qnx/common.mk
@@ -33,11 +33,16 @@
../build-gfxstream.sh
install: check-sdp check-install-root gfxstream
- $(MAKE) -f ../../pinfo.mk gfxstream/host/libgfxstream*.so
- $(CP_HOST) -d gfxstream/host/libgfxstream*.so $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/
+ $(MAKE) -f ../../pinfo.mk gfxstream/host/libgfxstream*
+ $(LN_HOST) -s libgfxstream_backend.so gfxstream/host/libgfxstream.so
+ find gfxstream/host/ -maxdepth 1 \( -type f -o -type l \) -name "libgfxstream*" \
+ -exec $(CP_HOST) -d {} $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/ \;
-clean: check-install-root
+clean:
rm -rf aemu
rm -rf gfxstream
- rm *.pinfo
- rm $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/libgfxstream*
+ rm -f *.pinfo
+ @if [ -n "$${INSTALL_ROOT_nto}" ]; then \
+ rm -f $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/libgfxstream* ;\
+ fi
+
diff --git a/qnx/nto/build-gfxstream.sh b/qnx/nto/build-gfxstream.sh
index 8ac1b5b..c2fc69b 100755
--- a/qnx/nto/build-gfxstream.sh
+++ b/qnx/nto/build-gfxstream.sh
@@ -19,4 +19,4 @@
-Ddecoders=gles,vulkan,composer \
-Dqnx_target=$QNX_TARGET
-ninja -C gfxstream
+ninja -v -C gfxstream