CMake: Add HarmonyOS support


Disable the qtdiag and qtplugininfo tools on HarmonyOS, similar to how
they are disabled on other mobile/embedded platforms.

Bail out of FindWrapLibClang when targeting HarmonyOS. The LLVM that
ships with the HarmonyOS SDK is broken and find_package(LLVM) fails,
complaining about missing files:(e.g. libLLVMDemangle.a).

Setting QT_FORCE_FIND_PACKAGE_LLVM_ON_OHOS overrides the bail-out, for
the case that a working LLVM is available via LLVM_INSTALL_DIR.

Pick-to: 6.12
Change-Id: Ifc3187df2b5fb7fc619b8dea5b05b0ffa2ed8bf8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit2c86ce4c81731b2df71bf9f6f30c53c0b4b8e75f
parent61aaa96c909fd1d3c5ffca0c6798802873ceaa56
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeMon, 8 Jun 2026 14:14:21 +0000