Warning, /packaging/yocto-meta-kf6/classes/kf6-cmake.bbclass is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2023 Andreas Cord-Landwehr <cordlandwehr@kde.org> 0002 # 0003 # SPDX-License-Identifier: MIT 0004 0005 inherit qt6-cmake 0006 0007 do_compile:append() { 0008 # Rewrite source code location comments in generated files to only contain the relative source folder path. 0009 # examples: 0010 # - qdbusxml2cpp: "* Command line was: qdbusxml2cpp -m -p jobviewserverinterface ${S}/kjobwidgets-5.247.0/src/org.kde.JobViewServer.xml" 0011 # - rcc: "// ${B}/src/.qsb/shadowedrectangle.vert.qsb 0012 # - qtwaylandscanner: "// source file is ${RECIPE_SYSROOT}/usr/share/plasma-wayland-protocols/keystate.xml" 0013 if [ "0" -ne $(find ${B} \( -name "*.h" -or -name "*.cpp" \) | wc -l) ]; then 0014 find ${B} \( -name "*.h" -or -name "*.cpp" \) -exec \ 0015 sed -i -e 's| ${S}| |g' \ 0016 sed -i -e 's| ${B}| |g' \ 0017 sed -i -e 's| ${RECIPE_SYSROOT}| |g' \ 0018 {} \; 0019 fi 0020 } 0021 0022 do_install:append() { 0023 # imported targets may leak full paths to system targets 0024 if [ "0" -ne $(find ${D} \( -name "*.cmake" \) | wc -l) ]; then 0025 find ${D} \( -name "*.cmake" \) -exec \ 0026 sed -i -e 's|${RECIPE_SYSROOT}/usr|\$\{_IMPORT_PREFIX\}|g' \ 0027 {} \; 0028 fi 0029 }