diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-06-09 19:48:48 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-06-13 09:34:10 +0000 |
commit | 44c5c6ac58fab3b1842b46ad3d65b4febce80e1d (patch) | |
tree | 407d38d021c99042d56002e0db5b5f756c4cb106 /src/shared/proparser | |
parent | f085cb223612b549f7026bf8272ad437ae07931f (diff) |
Add static library for qmake project file parser.
This is needed to build plugins "out of source".
Change-Id: If842cde86e1eb54daa3daf7f9d6f27751f657d9e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/shared/proparser')
-rw-r--r-- | src/shared/proparser/proparser.qbs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/shared/proparser/proparser.qbs b/src/shared/proparser/proparser.qbs new file mode 100644 index 00000000000..315f041d5a1 --- /dev/null +++ b/src/shared/proparser/proparser.qbs @@ -0,0 +1,62 @@ +import qbs + +Project { + name: "ProParser" + + QtcDevHeaders { } + + // Built as required by the QtSupport plugin. Other potential users need to include the sources + // directly. + QtcProduct { + type: ["staticlibrary", "qtc.dev-module"] + install: qtc.make_dev_package + installDir: qtc.ide_library_path + installTags: ["staticlibrary"] + + cpp.defines: base.concat([ + "QMAKE_BUILTIN_PRFS", + "QMAKE_AS_LIBRARY", + "PROPARSER_THREAD_SAFE", + "PROEVALUATOR_THREAD_SAFE", + "PROEVALUATOR_CUMULATIVE", + "PROEVALUATOR_SETENV", + ]) + + Depends { name: "Qt.xml" } + + Export { + Depends { name: "cpp" } + cpp.defines: base.concat([ + "QMAKE_AS_LIBRARY", + "PROPARSER_THREAD_SAFE", + "PROEVALUATOR_THREAD_SAFE", + "PROEVALUATOR_CUMULATIVE", + "PROEVALUATOR_SETENV", + ]) + cpp.includePaths: base.concat([".."]) + } + + 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", + ] + } +} |