diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-06-08 17:10:04 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-06-13 08:36:26 +0000 |
commit | f085cb223612b549f7026bf8272ad437ae07931f (patch) | |
tree | 5757e799ccf0a052cb0fd593b08bf96d09654d51 /src/plugins/qtsupport/qtsupport.qbs | |
parent | 44771d245b225ff7567df63491af72b70a6c03bf (diff) |
qbs build: More steps toward creating a "development installation".
Namely:
- Install header files.
- Install imports and modules.
- Create modules from products and install them.
This is most of what we need. The main thing still left to do is
dealing with paths in Export items. These have to be translated
somehow. (Currently we only copy the Depends items out of the
Export items and ignore everything else.)
Change-Id: I12d49fa31d1c1e05bc77a0e0ce3ec9c78c27192a
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtsupport.qbs')
-rw-r--r-- | src/plugins/qtsupport/qtsupport.qbs | 236 |
1 files changed, 120 insertions, 116 deletions
diff --git a/src/plugins/qtsupport/qtsupport.qbs b/src/plugins/qtsupport/qtsupport.qbs index 2a9e2d97412..8673a0ffcbe 100644 --- a/src/plugins/qtsupport/qtsupport.qbs +++ b/src/plugins/qtsupport/qtsupport.qbs @@ -1,133 +1,137 @@ import qbs 1.0 -QtcPlugin { +Project { name: "QtSupport" - Depends { name: "Qt"; submodules: ["quick", "widgets", "xml"]; } - Depends { name: "QmlJS" } - Depends { name: "Utils" } + QtcDevHeaders { } - Depends { name: "Core" } - Depends { name: "ProjectExplorer" } - Depends { name: "CppTools" } + QtcPlugin { + Depends { name: "Qt"; submodules: ["quick", "widgets", "xml"]; } + Depends { name: "QmlJS" } + Depends { name: "Utils" } - cpp.includePaths: base.concat([ - project.sharedSourcesDir, - ]) + Depends { name: "Core" } + Depends { name: "ProjectExplorer" } + Depends { name: "CppTools" } - cpp.defines: base.concat([ - "QMAKE_AS_LIBRARY", - "QMAKE_LIBRARY", - "PROPARSER_THREAD_SAFE", - "PROEVALUATOR_THREAD_SAFE", - "PROEVALUATOR_CUMULATIVE", - "QMAKE_BUILTIN_PRFS", - "PROEVALUATOR_SETENV" - ]) + cpp.includePaths: base.concat([ + project.sharedSourcesDir, + ]) - Group { - name: "Shared" - prefix: project.sharedSourcesDir + "/proparser/" - files: [ - "ioutils.cpp", - "ioutils.h", - "profileevaluator.cpp", - "profileevaluator.h", - "proitems.cpp", - "proitems.h", - "proparser.qrc", - "prowriter.cpp", - "prowriter.h", - "qmake_global.h", - "qmakebuiltins.cpp", - "qmakeevaluator.cpp", - "qmakeevaluator.h", - "qmakeevaluator_p.h", - "qmakeglobals.cpp", - "qmakeglobals.h", - "qmakeparser.cpp", - "qmakeparser.h", - "qmakevfs.cpp", - "qmakevfs.h", - ] - } + cpp.defines: base.concat([ + "QMAKE_AS_LIBRARY", + "QMAKE_LIBRARY", + "PROPARSER_THREAD_SAFE", + "PROEVALUATOR_THREAD_SAFE", + "PROEVALUATOR_CUMULATIVE", + "QMAKE_BUILTIN_PRFS", + "PROEVALUATOR_SETENV" + ]) - files: [ - "baseqtversion.cpp", - "baseqtversion.h", - "codegenerator.cpp", - "codegenerator.h", - "codegensettings.cpp", - "codegensettings.h", - "codegensettingspage.cpp", - "codegensettingspage.h", - "codegensettingspagewidget.ui", - "qtconfigwidget.cpp", - "qtconfigwidget.h", - "qtsupport.qrc", - "exampleslistmodel.cpp", - "exampleslistmodel.h", - "profilereader.cpp", - "profilereader.h", - "qmldumptool.cpp", - "qmldumptool.h", - "qscxmlcgenerator.cpp", - "qscxmlcgenerator.h", - "qtkitconfigwidget.cpp", - "qtkitconfigwidget.h", - "qtkitinformation.cpp", - "qtkitinformation.h", - "qtoptionspage.cpp", - "qtoptionspage.h", - "qtoutputformatter.cpp", - "qtoutputformatter.h", - "qtparser.cpp", - "qtparser.h", - "qtsupport_global.h", - "qtsupportconstants.h", - "qtsupportplugin.cpp", - "qtsupportplugin.h", - "qtversionfactory.cpp", - "qtversionfactory.h", - "qtversioninfo.ui", - "qtversionmanager.cpp", - "qtversionmanager.h", - "qtversionmanager.ui", - "screenshotcropper.cpp", - "screenshotcropper.h", - "showbuildlog.ui", - "uicgenerator.cpp", - "uicgenerator.h", - ] + Group { + name: "Shared" + prefix: project.sharedSourcesDir + "/proparser/" + files: [ + "ioutils.cpp", + "ioutils.h", + "profileevaluator.cpp", + "profileevaluator.h", + "proitems.cpp", + "proitems.h", + "proparser.qrc", + "prowriter.cpp", + "prowriter.h", + "qmake_global.h", + "qmakebuiltins.cpp", + "qmakeevaluator.cpp", + "qmakeevaluator.h", + "qmakeevaluator_p.h", + "qmakeglobals.cpp", + "qmakeglobals.h", + "qmakeparser.cpp", + "qmakeparser.h", + "qmakevfs.cpp", + "qmakevfs.h", + ] + } - Group { - name: "QtVersion" files: [ - "desktopqtversion.cpp", "desktopqtversion.h", - "desktopqtversionfactory.cpp", "desktopqtversionfactory.h", - "winceqtversion.cpp", "winceqtversion.h", - "winceqtversionfactory.cpp", "winceqtversionfactory.h", + "baseqtversion.cpp", + "baseqtversion.h", + "codegenerator.cpp", + "codegenerator.h", + "codegensettings.cpp", + "codegensettings.h", + "codegensettingspage.cpp", + "codegensettingspage.h", + "codegensettingspagewidget.ui", + "qtconfigwidget.cpp", + "qtconfigwidget.h", + "qtsupport.qrc", + "exampleslistmodel.cpp", + "exampleslistmodel.h", + "profilereader.cpp", + "profilereader.h", + "qmldumptool.cpp", + "qmldumptool.h", + "qscxmlcgenerator.cpp", + "qscxmlcgenerator.h", + "qtkitconfigwidget.cpp", + "qtkitconfigwidget.h", + "qtkitinformation.cpp", + "qtkitinformation.h", + "qtoptionspage.cpp", + "qtoptionspage.h", + "qtoutputformatter.cpp", + "qtoutputformatter.h", + "qtparser.cpp", + "qtparser.h", + "qtsupport_global.h", + "qtsupportconstants.h", + "qtsupportplugin.cpp", + "qtsupportplugin.h", + "qtversionfactory.cpp", + "qtversionfactory.h", + "qtversioninfo.ui", + "qtversionmanager.cpp", + "qtversionmanager.h", + "qtversionmanager.ui", + "screenshotcropper.cpp", + "screenshotcropper.h", + "showbuildlog.ui", + "uicgenerator.cpp", + "uicgenerator.h", ] - } - Group { - name: "Getting Started Welcome Page" - files: [ - "gettingstartedwelcomepage.cpp", - "gettingstartedwelcomepage.h" - ] - } + Group { + name: "QtVersion" + files: [ + "desktopqtversion.cpp", "desktopqtversion.h", + "desktopqtversionfactory.cpp", "desktopqtversionfactory.h", + "winceqtversion.cpp", "winceqtversion.h", + "winceqtversionfactory.cpp", "winceqtversionfactory.h", + ] + } + Group { + name: "Getting Started Welcome Page" + files: [ + "gettingstartedwelcomepage.cpp", + "gettingstartedwelcomepage.h" + ] + } - Export { - cpp.includePaths: "../../shared" - cpp.defines: [ - "QMAKE_AS_LIBRARY", - "PROPARSER_THREAD_SAFE", - "PROEVALUATOR_CUMULATIVE", - "PROEVALUATOR_THREAD_SAFE", - "QMAKE_BUILTIN_PRFS", - "PROEVALUATOR_SETENV" - ] + + Export { + cpp.includePaths: "../../shared" + cpp.defines: [ + "QMAKE_AS_LIBRARY", + "PROPARSER_THREAD_SAFE", + "PROEVALUATOR_CUMULATIVE", + "PROEVALUATOR_THREAD_SAFE", + "QMAKE_BUILTIN_PRFS", + "PROEVALUATOR_SETENV" + ] + } } } |