diff options
author | David Schulz <david.schulz@qt.io> | 2018-11-08 11:39:48 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2019-01-28 11:37:08 +0000 |
commit | 14834e6b0a4e7c1272ec3a1838b0634dd66e72ea (patch) | |
tree | 23caed8a748c0d38c59e1f92b448551122d11df2 /src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs | |
parent | 1c77d7e1a79f59485eb90c066d17ec7436f46a93 (diff) |
TextEditor: replace generic highlighter with ksyntaxhighlighting
Fixes: QTCREATORBUG-21029
Change-Id: I9894c4384e0e47da6bf030b7b8e07c3ad4737ff3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs')
-rw-r--r-- | src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs new file mode 100644 index 0000000000..248ebe0fd4 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/syntax-highlighting.qbs @@ -0,0 +1,88 @@ +import qbs 1.0 +import qbs.File +import qbs.FileInfo +import qbs.Environment + +Project { + QtcDevHeaders { + productName: "syntax-highlighting (3rd party)" + baseDir: sourceDirectory + "/src/lib" + } + QtcDevHeaders { + productName: "syntax-highlighting autogenerated (3rd party)" + baseDir: sourceDirectory + "/autogenerated/src/lib" + Group { + prefix: baseDir + '/' + files: [ + "AbstractHighlighter", + "Definition", + "FoldingRegion", + "Format", + "Repository", + "State", + "SyntaxHighlighter", + "Theme" + ] + qbs.install: true + qbs.installDir: qtc.ide_include_path + '/' + FileInfo.fileName(product.sourceDirectory) + qbs.installSourceBase: baseDir + } + } + + QtcLibrary { + name: "KSyntaxHighlighting" + + cpp.defines: base.concat("KSYNTAXHIGHLIGHTING_LIBRARY") + cpp.includePaths: [ + product.sourceDirectory + "/src/lib/", + product.sourceDirectory + "/autogenerated/src/lib/", + product.sourceDirectory + "/autogenerated/" + ] + + Depends { name: "Qt.gui" } + Depends { name: "Qt.network" } + + Group { + name: "lib" + prefix: "src/lib/" + files: [ + "*.h", + "*.cpp" + ] + } + + Group { + name: "KSyntaxHighlighting data" + qbs.install: true + qbs.installDir: qtc.ide_data_path + "/generic-highlighter/" + qbs.installSourceBase: project.ide_source_tree + "/src/libs/3rdparty/syntax-highlighting/data/" + prefix: project.ide_source_tree + "/src/libs/3rdparty/syntax-highlighting/data/" + files: [ + "syntax/**/*" + ] + } + + Group { + name: "autogenerated lib" + prefix: "autogenerated/src/lib/" + files: [ + "*.h", + "*.cpp" + ] + } + + Group { + name: "theme data" + prefix: "data/themes/" + files: [ "theme-data.qrc" ] + } + + Export { + Depends { name: "cpp" } + cpp.includePaths: [ + product.sourceDirectory + "/src/lib/", + product.sourceDirectory + "/autogenerated/src/lib/", + ] + } + } +} |