aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/module-providers/Qt/templates/gui.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/module-providers/Qt/templates/gui.qbs')
-rw-r--r--share/qbs/module-providers/Qt/templates/gui.qbs65
1 files changed, 65 insertions, 0 deletions
diff --git a/share/qbs/module-providers/Qt/templates/gui.qbs b/share/qbs/module-providers/Qt/templates/gui.qbs
new file mode 100644
index 000000000..eb69e0cad
--- /dev/null
+++ b/share/qbs/module-providers/Qt/templates/gui.qbs
@@ -0,0 +1,65 @@
+import qbs.FileInfo
+import qbs.ModUtils
+import '../QtModule.qbs' as QtModule
+
+QtModule {
+ qtModuleName: "Gui"
+
+ property string uicName: "uic"
+
+ FileTagger {
+ patterns: ["*.ui"]
+ fileTags: ["ui"]
+ }
+
+ Rule {
+ inputs: ["ui"]
+
+ Artifact {
+ filePath: FileInfo.joinPaths(input.moduleProperty("Qt.core", "generatedHeadersDir"),
+ 'ui_' + input.completeBaseName + '.h')
+ fileTags: ["hpp"]
+ }
+
+ prepare: {
+ var cmd = new Command(ModUtils.moduleProperty(product, "binPath") + '/'
+ + ModUtils.moduleProperty(product, "uicName"),
+ [input.filePath, '-o', output.filePath])
+ cmd.description = 'uic ' + input.fileName;
+ cmd.highlight = 'codegen';
+ return cmd;
+ }
+ }
+
+ property string defaultQpaPlugin: @defaultQpaPlugin@
+ architectures: @archs@
+ targetPlatform: @targetPlatform@
+ staticLibsDebug: @staticLibsDebug@
+ staticLibsRelease: @staticLibsRelease@
+ dynamicLibsDebug: @dynamicLibsDebug@
+ dynamicLibsRelease: @dynamicLibsRelease@
+ linkerFlagsDebug: @linkerFlagsDebug@
+ linkerFlagsRelease: @linkerFlagsRelease@
+ frameworksDebug: @frameworksDebug@
+ frameworksRelease: @frameworksRelease@
+ frameworkPathsDebug: @frameworkPathsDebug@
+ frameworkPathsRelease: @frameworkPathsRelease@
+ libNameForLinkerDebug: @libNameForLinkerDebug@
+ libNameForLinkerRelease: @libNameForLinkerRelease@
+ libFilePathDebug: @libFilePathDebug@
+ libFilePathRelease: @libFilePathRelease@
+ pluginTypes: @pluginTypes@
+
+ cpp.defines: @defines@
+ cpp.includePaths: @includes@
+ cpp.libraryPaths: @libraryPaths@
+
+ Properties {
+ condition: Qt.core.staticBuild && qbs.targetOS.contains("ios")
+ cpp.frameworks: base.concat(["UIKit", "QuartzCore", "CoreText", "CoreGraphics",
+ "Foundation", "CoreFoundation", "AudioToolbox"])
+ }
+ cpp.frameworks: base
+ @additionalContent@
+}
+