mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
[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:
@@ -159,8 +159,10 @@ win32 {
|
|||||||
QMAKE_EXTRA_TARGETS += fix_plugin_rpath
|
QMAKE_EXTRA_TARGETS += fix_plugin_rpath
|
||||||
|
|
||||||
} else:unix: {
|
} else:unix: {
|
||||||
dep_target.files *= $$DestRoot/lib/libevent_core-*.so.*
|
# Want to use wildcards in dep_target.files, but wildcard expansion happens too early, before the files exist.
|
||||||
dep_target.files *= $$DestRoot/lib/libpng*.so.*
|
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.path = $$PREFIX/xswiftbus
|
||||||
legacy_data_target.files *= LegacyData
|
legacy_data_target.files *= LegacyData
|
||||||
|
|||||||
Reference in New Issue
Block a user