Add perfparser as a submodule

Task-number: QTCREATORBUG-21348
Change-Id: I2f7e4aa97e554d7042db05c952c46ed7ac199dbe
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Ulf Hermann
2018-10-18 14:13:12 +02:00
committed by Alessandro Portale
parent 75d070b9b8
commit 3a3dc1bae3
4 changed files with 42 additions and 0 deletions

4
.gitmodules vendored
View File

@@ -2,3 +2,7 @@
path = src/shared/qbs
url = ../../qbs/qbs.git
ignore = dirty
[submodule "perfparser"]
path = src/tools/perfparser
url = ../perfparser.git
ignore = dirty

1
src/tools/perfparser Submodule

Submodule src/tools/perfparser added at 28751d2232

View File

@@ -49,3 +49,32 @@ isEmpty(BUILD_CPLUSPLUS_TOOLS):BUILD_CPLUSPLUS_TOOLS=$$(BUILD_CPLUSPLUS_TOOLS)
}
}
}
exists(perfparser/perfparser.pro) {
win32 {
SUBDIRS += perfparser
PERFPARSER_APP_DESTDIR = $$IDE_BUILD_TREE/bin
PERFPARSER_APP_INSTALLDIR = $$QTC_PREFIX/bin
# On windows we take advantage of the fixed path in eblopenbackend.c: "..\lib\elfutils\"
PERFPARSER_ELFUTILS_INSTALLDIR = $$QTC_PREFIX/bin
PERFPARSER_ELFUTILS_BACKENDS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
} else {
SUBDIRS += perfparser
PERFPARSER_APP_DESTDIR = $$IDE_BUILD_TREE/libexec/qtcreator
PERFPARSER_APP_INSTALLDIR = $$QTC_PREFIX/libexec/qtcreator
# On linux we have "$ORIGIN/../$LIB/elfutils" in eblopenbackend.c. Unfortunately $LIB can
# be many different things, so we target the second try where it just loads the plain file
# name. This also allows us to put libdw and libelf in a subdir of lib.
PERFPARSER_ELFUTILS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
PERFPARSER_ELFUTILS_BACKENDS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
}
cache(PERFPARSER_APP_DESTDIR)
cache(PERFPARSER_APP_INSTALLDIR)
cache(PERFPARSER_ELFUTILS_INSTALLDIR)
cache(PERFPARSER_ELFUTILS_BACKENDS_INSTALLDIR)
}
OTHER_FILES += tools.qbs

View File

@@ -17,4 +17,12 @@ Project {
"iostool/iostool.qbs",
"winrtdebughelper/winrtdebughelper.qbs"
].concat(project.additionalTools)
Project {
name: "PerfParser Tool"
references: [
"perfparser/perfparser.qbs"
]
condition: File.exists(project.ide_source_tree + "/src/tools/perfparser/perfparser.qbs")
}
}