Change Axivion analysis result format

Dividing qtgrpc into essentials and add-ons in analysis

Task-number: QTQAINFRA-5965
Change-Id: I26bdd98759ecec06c1cb11987a7d14b0074abbeb
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
This commit is contained in:
Matti Paaso 2024-05-21 11:15:40 +03:00
parent 565f2bb598
commit 036b4c5c50
2 changed files with 35 additions and 17 deletions

View File

@ -2,31 +2,19 @@
"Project": {
"BuildSystemIntegration": {
"child_order": [
"GCCSetup",
"CMake",
"LinkLibraries"
]
},
"CMake": {
"_active": true,
"_copy_from": "CMakeIntegration",
"build_environment": {},
"build_options": "-j4",
"generate_options": "--fresh",
"generator": "Ninja"
},
"GCCSetup": {
"_active": true,
"_copy_from": "Command",
"build_command": "gccsetup --cc gcc --cxx g++ --config ../../../axivion/"
},
"LinkLibraries": {
"_active": true,
"_copy_from": "AxivionLinker",
"input_files": [
"build/lib/lib*.so*.ir"
"$(splitpath:TARGET_NAME)"
],
"ir": "build/$(env:TESTED_MODULE_COIN).ir"
"ir": "$(env:IRNAME)",
"plugin_files": [
"$(splitpath:PLUGINS)"
]
}
},
"_Format": "1.0",

30
coin/axivion/start_analysis.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
$HOME/bauhaus-suite/setup.sh --non-interactive
export PATH=/home/qt/bauhaus-suite/bin:$PATH
export BAUHAUS_CONFIG=$(cd $(dirname $(readlink -f $0)) && pwd)
export AXIVION_VERSION_NAME=$(git rev-parse HEAD)
export EXCLUDE_FILES="build/*:src/3rdparty/*"
export CAFECC_BASEPATH="/home/qt/work/qt/$TESTED_MODULE_COIN"
gccsetup --cc gcc --cxx g++ --config "$BAUHAUS_CONFIG"
cd "$CAFECC_BASEPATH"
BAUHAUS_IR_COMPRESSION=none COMPILE_ONLY=1 cmake -G Ninja -DAXIVION_ANALYSIS_TOOLCHAIN_FILE=/home/qt/bauhaus-suite/profiles/cmake/axivion-launcher-toolchain.cmake -DCMAKE_PREFIX_PATH=/home/qt/work/qt/qtgrpc/build -DCMAKE_PROJECT_INCLUDE_BEFORE=/home/qt/bauhaus-suite/profiles/cmake/axivion-before-project-hook.cmake -B build -S . --fresh
cmake --build build -j4
for MODULE in qtgrpc qtprotobuf; do
export MODULE
export PLUGINS=""
export IRNAME=build/$MODULE.ir
if [ "$MODULE" == "qtgrpc" ]
then
export TARGET_NAME="build/lib/libQt6Grpc.so.*.ir:build/lib/libQt6GrpcQuick.so.*.ir:"
export PLUGINS="build/qml/QtGrpc/libgrpcquickplugin.so"
export PACKAGE="Add-ons"
elif [ "$MODULE" == "qtprotobuf" ]
then
export TARGET_NAME="build/lib/libQt6QtProtobuf.so.*.ir:build/lib/libQt6ProtobufQtGuiTypes.so:build/lib/libQt6ProtobufQtCoreTypes.so.*.ir:build/lib/libQt6ProtobufWellKnownTypes.so.*.ir"
export PACKAGE="Add-ons"
fi
axivion_ci "$@"
done