aboutsummaryrefslogtreecommitdiff
path: root/jobs/apigen.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/apigen.yaml')
-rw-r--r--jobs/apigen.yaml58
1 files changed, 58 insertions, 0 deletions
diff --git a/jobs/apigen.yaml b/jobs/apigen.yaml
new file mode 100644
index 00000000..8bb61d39
--- /dev/null
+++ b/jobs/apigen.yaml
@@ -0,0 +1,58 @@
+preprocess:
+ "%CLIENT_RELEASE_LABEL%": r0
+ "%CLIENT_MAJOR_VERSION%": r0
+
+env:
+ preamble: preamble.mustache
+ copyrightName: Kitsune Ral
+ copyrightEmail: <kitsune-ral@users.sf.net>
+ imports: { set: }
+ returnFile?: { bool: false }
+
+templates:
+- "{{base}}.h.mustache"
+- "{{base}}.cpp.mustache"
+
+outFilesList: apifiles.txt
+
+# Structure:
+# swaggerType: <targetTypeSpec>
+# OR
+# swaggerType:
+# - swaggerFormat: <targetTypeSpec>
+# - /swaggerFormatRegEx/: <targetTypeSpec>
+# - //: <targetTypeSpec> # default, if the format doesn't mach anything above
+# WHERE
+# targetTypeSpec = targetType OR
+# { type: targetType, imports: <filename OR [ filenames... ]>, <other attributes...> }
+types:
+ integer:
+ - int64: qint64
+ - int32: qint32
+ - //: int
+ number:
+ - float: float
+ - double: double
+ boolean: bool
+ string:
+ - /byte|binary/: { type: QByteArray, imports: <QtCore/QByteArray> }
+ - date:
+ type: QDate
+ avoidCopy?: true
+ imports: <QtCore/QDate>
+ - dateTime:
+ type: QDateTime
+ avoidCopy?: true
+ imports: <QtCore/QDateTime>
+ - //: { type: QString, imports: <QtCore/QString> }
+ file:
+ type: QByteArray
+ imports: <QtCore/QByteArray>
+ returnFile?: true
+ name: data
+ "[]": { type: "QVector<{{type}}>", imports: <QtCore/QVector> }
+ "{}":
+ type: "QHash<QString, {{type}}>"
+ imports: [ <QtCore/QHash>, <QtCore/QString> ]
+
+operations: \ No newline at end of file