Commit ff92cdec authored by Joerg Bornemann's avatar Joerg Bornemann Committed by hjk

add qbs files

Change-Id: If6bf71797ae81655d24a77e6badb86a77312af38
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 74da2172
import qbs.base 1.0
Product {
type: ["installed_content"]
name: "QtComponents"
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/"
fileTags: ["install"]
files: [
"Menu.qml",
"ScrollBar.qml",
"ContextMenu.qml",
"TextArea.qml",
"Switch.qml",
"Tab.qml",
"Slider.qml",
"TabFrame.qml",
"TextField.qml",
"TabBar.qml",
"MenuItem.qml",
"Dial.qml",
"ButtonRow.qml",
"ToolBar.qml",
"qmldir",
"ProgressBar.qml",
"RadioButton.qml",
"TableColumn.qml",
"GroupBox.qml",
"Button.qml",
"TableView.qml",
"Frame.qml",
"ToolButton.qml",
"ScrollArea.qml",
"SplitterRow.qml",
"ChoiceList.qml",
"CheckBox.qml",
"SpinBox.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/images"
fileTags: ["install"]
files: [
"images/folder_new.png",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/private"
fileTags: ["install"]
files: [
"custom/private/ChoiceListPopup.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/behaviors"
fileTags: ["install"]
files: [
"custom/behaviors/ButtonBehavior.qml",
"custom/behaviors/ModalPopupBehavior.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom"
fileTags: ["install"]
files: [
"custom/ButtonGroup.js",
"custom/Slider.qml",
"custom/TextField.qml",
"custom/ButtonRow.qml",
"custom/qmldir",
"custom/BasicButton.qml",
"custom/ProgressBar.qml",
"custom/GroupBox.qml",
"custom/Button.qml",
"custom/ButtonColumn.qml",
"custom/SplitterRow.qml",
"custom/ChoiceList.qml",
"custom/CheckBox.qml",
"custom/SpinBox.qml",
]
}
}
import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
Module {
additionalProductFileTags: ["pluginSpec"]
property int ide_version_major: project.ide_version_major
property int ide_version_minor: project.ide_version_minor
property int ide_version_release: project.ide_version_release
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
property string destdir: "lib/qtcreator/plugins/Nokia/"
FileTagger {
pattern: "*.in"
fileTags: ["pluginSpecIn"]
}
Rule {
inputs: ["pluginSpecIn"]
Artifact {
fileTags: ["pluginSpec"]
fileName: {
var destdir = input.modules.pluginspec.destdir;
if (!destdir.match(/\/$/))
destdir += "/";
return destdir + input.fileName.replace(/\.[^\.]*$/,'');
}
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "prepare " + FileInfo.fileName(output.fileName);
cmd.highlight = "codegen";
cmd.qtcreator_version = product.module.qtcreator_version;
cmd.ide_version_major = product.module.ide_version_major;
cmd.ide_version_minor = product.module.ide_version_minor;
cmd.ide_version_release = product.module.ide_version_release;
cmd.sourceCode = function() {
var i;
var vars = {};
var inf = new TextFile(input.fileName);
var all = inf.readAll();
// replace quoted quotes
all = all.replace(/\\\"/g, "\"");
// replace config vars
vars['QTCREATOR_VERSION'] = qtcreator_version;
vars['IDE_VERSION_MAJOR'] = ide_version_major;
vars['IDE_VERSION_MINOR'] = ide_version_minor;
vars['IDE_VERSION_RELEASE'] = ide_version_release;
for (i in vars) {
all = all.replace(new RegExp('\\\$\\\$' + i.toUpperCase() + '(?!\w)', 'g'), vars[i]);
}
var file = new TextFile(output.fileName, TextFile.WriteOnly);
file.truncate();
file.write(all);
file.close();
}
return cmd;
}
}
}
import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
Project {
property string ide_version_major: '2'
property string ide_version_minor: '4'
property string ide_version_release: '81'
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
property var additionalCppDefines: [ 'IDE_LIBRARY_BASENAME="lib"' ]
moduleSearchPaths: "qbs"
references: [
"lib/qtcreator/qtcomponents/qtcomponents.qbs",
"share/share.qbs",
"src/libs/3rdparty/botan/botan.qbs",
"src/libs/aggregation/aggregation.qbs",
"src/libs/cplusplus/cplusplus.qbs",
"src/libs/extensionsystem/extensionsystem.qbs",
"src/libs/glsl/glsl.qbs",
"src/libs/languageutils/languageutils.qbs",
"src/libs/qmleditorwidgets/qmleditorwidgets.qbs",
"src/libs/qmljs/qmljs.qbs",
"src/libs/qmljsdebugclient/qmljsdebugclient.qbs",
"src/libs/qtcomponents/styleitem/styleitem.qbs",
"src/libs/symbianutils/symbianutils.qbs",
"src/libs/utils/utils.qbs",
"src/plugins/analyzerbase/analyzerbase.qbs",
"src/plugins/bazaar/bazaar.qbs",
"src/plugins/bineditor/bineditor.qbs",
"src/plugins/bookmarks/bookmarks.qbs",
"src/plugins/classview/classview.qbs",
"src/plugins/cmakeprojectmanager/cmakeprojectmanager.qbs",
"src/plugins/coreplugin/coreplugin.qbs",
"src/plugins/cpaster/cpaster.qbs",
"src/plugins/cppeditor/cppeditor.qbs",
"src/plugins/cpptools/cpptools.qbs",
"src/plugins/cvs/cvs.qbs",
"src/plugins/debugger/debugger.qbs",
"src/plugins/designer/designer.qbs",
"src/plugins/fakevim/fakevim.qbs",
"src/plugins/find/find.qbs",
"src/plugins/genericprojectmanager/genericprojectmanager.qbs",
"src/plugins/git/git.qbs",
"src/plugins/glsleditor/glsleditor.qbs",
"src/plugins/helloworld/helloworld.qbs",
"src/plugins/help/help.qbs",
"src/plugins/imageviewer/imageviewer.qbs",
"src/plugins/locator/locator.qbs",
"src/plugins/macros/macros.qbs",
"src/plugins/madde/madde.qbs",
"src/plugins/mercurial/mercurial.qbs",
"src/plugins/perforce/perforce.qbs",
"src/plugins/projectexplorer/projectexplorer.qbs",
"src/plugins/qmljseditor/qmljseditor.qbs",
"src/plugins/qmljsinspector/qmljsinspector.qbs",
"src/plugins/qmljstools/qmljstools.qbs",
"src/plugins/qmlprofiler/qmlprofiler.qbs",
"src/plugins/qmlprojectmanager/qmlprojectmanager.qbs",
"src/plugins/qt4projectmanager/qt4projectmanager.qbs",
"src/plugins/qtsupport/qtsupport.qbs",
"src/plugins/remotelinux/remotelinux.qbs",
"src/plugins/resourceeditor/resourceeditor.qbs",
"src/plugins/subversion/subversion.qbs",
"src/plugins/tasklist/tasklist.qbs",
"src/plugins/texteditor/texteditor.qbs",
"src/plugins/valgrind/valgrind.qbs",
"src/plugins/vcsbase/vcsbase.qbs",
"src/plugins/welcome/welcome.qbs",
]
Product {
name: "app_version_header"
type: "hpp"
files: "src/app/app_version.h.in"
property string ide_version_major: project.ide_version_major
property string ide_version_minor: project.ide_version_minor
property string ide_version_release: project.ide_version_release
property string qtcreator_version: project.qtcreator_version
Transformer {
inputs: ["src/app/app_version.h.in"]
Artifact {
fileName: "app/app_version.h"
fileTags: "hpp"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating app_version.h";
cmd.highlight = "codegen";
cmd.qtcreator_version = product.qtcreator_version;
cmd.ide_version_major = product.ide_version_major;
cmd.ide_version_minor = product.ide_version_minor;
cmd.ide_version_release = product.ide_version_release;
cmd.onWindows = (product.modules.qbs.targetOS == "windows");
cmd.sourceCode = function() {
var file = new TextFile(input.fileName);
var content = file.readAll();
// replace quoted quotes
content = content.replace(/\\\"/g, "\"");
// replace Windows line endings
if (onWindows)
content = content.replace(/\r\n/g, "\n");
// replace the magic qmake incantations
content = content.replace(/(\n#define IDE_VERSION) .+\n/, "$1 " + qtcreator_version + "\n");
content = content.replace(/(\n#define IDE_VERSION_MAJOR) .+\n/, "$1 " + ide_version_major + "\n")
content = content.replace(/(\n#define IDE_VERSION_MINOR) .+\n/, "$1 " + ide_version_minor + "\n")
content = content.replace(/(\n#define IDE_VERSION_RELEASE) .+\n/, "$1 " + ide_version_release + "\n")
file = new TextFile(output.fileName, TextFile.WriteOnly);
file.truncate();
file.write(content);
file.close();
}
return cmd;
}
}
}
Product {
name: "qtcreator"
type: ["application", "installed_content"]
destination: "bin"
cpp.rpaths: ["$ORIGIN/../lib"]
cpp.defines: project.additionalCppDefines
cpp.includePaths: [
"src",
"src/libs",
"src/shared/qtsingleapplication",
"src/shared/qtlockedfile",
buildDirectory
]
Depends { name: "app_version_header" }
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["gui", "network"] }
Depends { name: "utils" }
Depends { name: "extensionsystem" }
files: [
"src/app/main.cpp",
"src/shared/qtsingleapplication/qtsingleapplication.h",
"src/shared/qtsingleapplication/qtsingleapplication.cpp",
"src/shared/qtsingleapplication/qtlocalpeer.h",
"src/shared/qtsingleapplication/qtlocalpeer.cpp",
"src/shared/qtlockedfile/qtlockedfile.cpp"
]
Group {
files: "bin/qtcreator.sh"
fileTags: "install"
}
Group {
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
files: [
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
]
}
Group {
condition: qbs.targetOS == "windows"
files: [
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
]
}
}
}
This diff is collapsed.
This diff is collapsed.
import qbs.base 1.0
DynamicLibrary {
name: "aggregation"
destination: "lib"
cpp.includePaths: [
".",
".."
]
cpp.defines: [
"AGGREGATION_LIBRARY"
]
Depends { name: "cpp" }
Depends { name: "Qt.core" }
files: [
"aggregation_global.h",
"aggregate.h",
"aggregate.cpp"
]
}
import qbs.base 1.0
DynamicLibrary {
name: "CPlusPlus"
destination: "lib"
cpp.includePaths: [
".",
"..",
"../3rdparty/cplusplus",
"../../plugins"
]
cpp.defines: [
"NDEBUG",
"CPLUSPLUS_BUILD_LIB"
]
cpp.optimization: "fast"
Depends { name: "cpp" }
Depends { name: "Qt.gui" }
Group {
prefix: "../3rdparty/cplusplus/"
files: [
"ASTPatternBuilder.cpp",
"CPlusPlus.h",
"LiteralTable.cpp",
"ObjectiveCTypeQualifiers.h",
"Templates.cpp",
"Templates.h",
"ASTVisitor.cpp",
"Control.cpp",
"Control.h",
"CoreTypes.cpp",
"CoreTypes.h",
"DiagnosticClient.cpp",
"DiagnosticClient.h",
"FullySpecifiedType.cpp",
"FullySpecifiedType.h",
"Lexer.h",
"LiteralTable.h",
"Literals.h",
"MemoryPool.cpp",
"MemoryPool.h",
"Name.cpp",
"Name.h",
"NameVisitor.cpp",
"NameVisitor.h",
"Names.cpp",
"Names.h",
"ObjectiveCAtKeywords.cpp",
"ObjectiveCTypeQualifiers.cpp",
"Scope.cpp",
"Scope.h",
"SymbolVisitor.cpp",
"SymbolVisitor.h",
"Symbols.h",
"Type.cpp",
"Type.h",
"TypeMatcher.cpp",
"TypeMatcher.h",
"TypeVisitor.cpp",
"TypeVisitor.h",
"AST.cpp",
"AST.h",
"ASTClone.cpp",
"ASTMatch0.cpp",
"ASTMatcher.cpp",
"ASTMatcher.h",
"ASTPatternBuilder.h",
"ASTVisit.cpp",
"ASTVisitor.h",
"ASTfwd.h",
"Bind.cpp",
"Bind.h",
"Keywords.cpp",
"Lexer.cpp",
"Literals.cpp",
"Parser.cpp",
"Parser.h",
"QtContextKeywords.cpp",
"QtContextKeywords.h",
"Symbol.cpp",
"Symbol.h",
"Symbols.cpp",
"Token.cpp",
"Token.h",
"TranslationUnit.cpp",
"TranslationUnit.h"
]
}
files: [
"cplusplus.qrc",
"ASTParent.cpp",
"ASTParent.h",
"ASTPath.cpp",
"ASTPath.h",
"BackwardsScanner.cpp",
"BackwardsScanner.h",
"CppDocument.cpp",
"CppDocument.h",
"CppRewriter.cpp",
"CppRewriter.h",
"DependencyTable.cpp",
"DependencyTable.h",
"DeprecatedGenTemplateInstance.cpp",
"DeprecatedGenTemplateInstance.h",
"ExpressionUnderCursor.cpp",
"ExpressionUnderCursor.h",
"FastPreprocessor.cpp",
"FastPreprocessor.h",
"FindUsages.cpp",
"FindUsages.h",
"Icons.cpp",
"Icons.h",
"LookupContext.cpp",
"LookupContext.h",
"LookupItem.cpp",
"LookupItem.h",
"Macro.cpp",
"Macro.h",
"MatchingText.cpp",
"MatchingText.h",
"ModelManagerInterface.cpp",
"ModelManagerInterface.h",
"NamePrettyPrinter.cpp",
"NamePrettyPrinter.h",
"Overview.cpp",
"Overview.h",
"OverviewModel.cpp",
"OverviewModel.h",
"PreprocessorClient.cpp",
"PreprocessorClient.h",
"PreprocessorEnvironment.cpp",
"PreprocessorEnvironment.h",
"ResolveExpression.cpp",
"ResolveExpression.h",
"SimpleLexer.cpp",
"SimpleLexer.h",
"SnapshotSymbolVisitor.cpp",
"SnapshotSymbolVisitor.h",
"SymbolNameVisitor.cpp",
"SymbolNameVisitor.h",
"TypeHierarchyBuilder.cpp",
"TypeHierarchyBuilder.h",
"TypeOfExpression.cpp",
"TypeOfExpression.h",
"TypePrettyPrinter.cpp",
"TypePrettyPrinter.h",
"findcdbbreakpoint.cpp",
"findcdbbreakpoint.h",
"pp-cctype.h",
"pp-engine.cpp",
"pp-engine.h",
"pp-macro-expander.cpp",
"pp-macro-expander.h",
"pp-scanner.cpp",
"pp-scanner.h",
"pp.h",
"images/class.png",
"images/enum.png",
"images/enumerator.png",
"images/func.png",
"images/func_priv.png",
"images/func_prot.png",
"images/keyword.png",
"images/macro.png",
"images/namespace.png",
"images/signal.png",
"images/slot.png",
"images/slot_priv.png",
"images/slot_prot.png",
"images/var.png",
"images/var_priv.png",
"images/var_prot.png"
]
ProductModule {
cpp.includePaths: [
".",
"../3rdparty",
"../3rdparty/cplusplus"
]
}
}
import qbs.base 1.0
DynamicLibrary {
name: "extensionsystem"
destination: "lib"
cpp.includePaths: [
".",
".."
]
cpp.defines: [
"EXTENSIONSYSTEM_LIBRARY",
"IDE_TEST_DIR=\".\""
]
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["core", "gui"] }
Depends { name: "aggregation" }
files: [
"plugindetailsview.ui",
"pluginerrorview.ui",
"pluginview.qrc",
"pluginview.ui",
"extensionsystem_global.h",
"invoker.cpp",
"invoker.h",
"iplugin.cpp",
"iplugin.h",
"iplugin_p.h",
"optionsparser.cpp",
"optionsparser.h",
"plugincollection.cpp",
"plugincollection.h",
"plugindetailsview.cpp",
"plugindetailsview.h",
"pluginerroroverview.cpp",
"pluginerroroverview.h",
"pluginerroroverview.ui",
"pluginerrorview.cpp",
"pluginerrorview.h",
"pluginmanager.cpp",
"pluginmanager.h",
"pluginmanager_p.h",
"pluginspec.h",
"pluginspec_p.h",
"pluginview.cpp",
"pluginview.h",
"pluginview_p.h",
"pluginspec.cpp",
"images/error.png",
"images/notloaded.png",
"images/ok.png",
]
}
import qbs.base 1.0
DynamicLibrary {
name: "GLSL"
destination: "lib"
cpp.includePaths: [
".",
".."
]
cpp.defines: [
"QT_CREATOR",
"GLSL_BUILD_LIB"
]
Depends { name: "cpp" }
Depends { name: "Qt.gui" }
files: [
"glsl.h", "glsllexer.h", "glslparser.h", "glslparsertable_p.h", "glslast.h",
"glslastvisitor.h", "glslengine.h", "glslmemorypool.h", "glslastdump.h",
"glslsemantic.h", "glsltype.h", "glsltypes.h", "glslsymbol.h", "glslsymbols.h",
"glslkeywords.cpp", "glslparser.cpp", "glslparsertable.cpp",
"glsllexer.cpp", "glslast.cpp",
"glslastvisitor.cpp", "glslengine.cpp", "glslmemorypool.cpp", "glslastdump.cpp",
"glslsemantic.cpp", "glsltype.cpp", "glsltypes.cpp", "glslsymbol.cpp", "glslsymbols.cpp",
"glsl.g"
]
ProductModule {
cpp.includePaths: ["."]
}
}
import qbs.base 1.0
DynamicLibrary {
name: "LanguageUtils"
destination: "lib"
cpp.includePaths: [
".",
"..",
"../3rdparty/cplusplus"
]
cpp.defines: [
"QT_CREATOR",
"LANGUAGEUTILS_BUILD_DIR"
]
cpp.optimization: "fast"
Depends { name: "cpp" }
Depends { name: "Qt.core" }
files: [
"languageutils_global.h",
"fakemetaobject.h",
"componentversion.h",
"fakemetaobject.cpp",
"componentversion.cpp"
]
}
import qbs.base 1.0
DynamicLibrary {
name: "QmlEditorWidgets"
destination: "lib"
cpp.includePaths: [
".",
"..",
"easingpane"
]
cpp.defines: [
"QWEAKPOINTER_ENABLE_ARROW",
"BUILD_QMLEDITORWIDGETS_LIB",
"QT_CREATOR"
]
cpp.optimization: "fast"
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["gui", "declarative", "script"] }
Depends { name: "QmlJS" }
files: [
"resources.qrc",
"fontsizespinbox.h",
"filewidget.h",
"contextpanewidgetrectangle.h",
"contextpanewidgetimage.h",
"contextpanewidget.h",
"contextpanetextwidget.h",
"colorwidgets.h",
"colorbutton.h",
"colorbox.h",
"customcolordialog.h",
"gradientline.h",
"huecontrol.h",
"qmleditorwidgets_global.h",
"fontsizespinbox.cpp",
"filewidget.cpp",
"contextpanewidgetrectangle.cpp",
"contextpanewidgetimage.cpp",
"contextpanewidget.cpp",
"contextpanetextwidget.cpp",
"colorwidgets.cpp",
"colorbox.cpp",
"customcolordialog.cpp",
"huecontrol.cpp",
"gradientline.cpp",
"colorbutton.cpp",
"contextpanewidgetrectangle.ui",
"contextpanewidgetimage.ui",
"contextpanewidgetborderimage.ui",
"contextpanetext.ui",
"easingpane/easinggraph.cpp",
"easingpane/easingcontextpane.cpp",
"easingpane/easinggraph.h",
"easingpane/easingcontextpane.h",
"easingpane/easingpane.qrc",
"easingpane/easingcontextpane.ui"
]
ProductModule {
cpp.includePaths: ["."]
}
}
import qbs.base 1.0
DynamicLibrary {
name: "QmlJS"
destination: "lib"
cpp.includePaths: [
".",
"..",
"parser"
]
cpp.defines: [
"QMLJS_BUILD_DIR",
"QT_CREATOR"
]
cpp.optimization: "fast"
Depends { name: "utils" }
Depends { name: "languageutils" }
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ['gui', 'script'] }