Unverified Commit b94bafe0 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #9002 from airmap/instrument_qrc

QML Image: Cannot open: error fix on custom build
parents 560bd1b2 68f7c760
This diff is collapsed.
#!/usr/bin/env python
import os
def main():
qrcFile = open("InstrumentValueIcons.qrc", 'wt')
qrcFile.write("\t<qresource prefix=\"/InstrumentValueIcons\">\n")
files = os.listdir("../resources/InstrumentValueIcons")
for filename in files:
if filename.endswith(".svg"):
qrcFile.write("\t\t<file alias=\"%s\">../resources/InstrumentValueIcons/%s</file>\n" % (filename, filename))
if __name__ == '__main__':
......@@ -345,6 +345,12 @@ CustomBuild {
} else {
RESOURCES += $$PWD/qgcimages.qrc
exists($$PWD/custom/InstrumentValueIcons.qrc) {
message("Using custom InstrumentValueIcons.qrc")
RESOURCES += $$PWD/custom/InstrumentValueIcons.qrc
} else {
RESOURCES += $$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc
} else {
DEFINES += QGC_APPLICATION_NAME=\"\\\"QGroundControl\\\"\"
DEFINES += QGC_ORG_NAME=\"\\\"QGroundControl.org\\\"\"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment