1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-21 13:28:58 +01:00

Fixed qmake copy of qss by borrowing code from Oleg who has a better

handle on qmake than I guess I ever will.
This commit is contained in:
David Ankers 2012-07-31 04:11:33 +10:00
parent bcfb4df519
commit c93cfc5d50

View File

@ -29,10 +29,13 @@ win32 {
OTHER_FILES += openpilotgcs.rc
PLATFORMS = windows macos linux
STYLESHEETS = windows.qss \
macos.qss \
linux.qss
for(platform, PLATFORMS) {
style_copy.commands += $(COPY_FILE) $$targetPath(\"$$GCS_SOURCE_TREE/src/app/stylesheets/$$platform.qss\") $$targetPath(\"$$GCS_APP_PATH\") $$addNewline()
for(qss, STYLESHEETS) {
style_copy.commands += $(COPY_FILE) $$targetPath(\"$$GCS_SOURCE_TREE/src/app/stylesheets/$$qss\") $$targetPath(\"$$GCS_APP_PATH/$$qss\") $$addNewline()
}
style_copy.target = FORCE
QMAKE_EXTRA_TARGETS += style_copy