[xswiftbus] Workaround for shortcoming of qmake INSTALLS wildcard expansion

When using wildcards in the `files` member of an `INSTALLS` variable,
the files must exist when qmake is run or the wildcards won't be expanded.
The libevent and libpng libraries are copied to `$$DestRoot/lib` as a
post-build step in `blackmisc.pro`, so I work around with a shell command.
This commit is contained in:
Mat Sutcliffe
2021-04-08 16:29:09 +01:00
parent 29ff8f9b90
commit f6eaa469aa

View File

@@ -159,8 +159,10 @@ win32 {
QMAKE_EXTRA_TARGETS += fix_plugin_rpath
} else:unix: {
dep_target.files *= $$DestRoot/lib/libevent_core-*.so.*
dep_target.files *= $$DestRoot/lib/libpng*.so.*
# Want to use wildcards in dep_target.files, but wildcard expansion happens too early, before the files exist.
dep_target.extra += $(QINSTALL) $$DestRoot/lib/libevent_core-*.so.* $$dep_target.path/`basename $$DestRoot/lib/libevent_core-*.so.*`
dep_target.extra += &&
dep_target.extra += $(QINSTALL) $$DestRoot/lib/libpng*.so.* $$dep_target.path/`basename $$DestRoot/lib/libpng*.so.*`
legacy_data_target.path = $$PREFIX/xswiftbus
legacy_data_target.files *= LegacyData