bool PokySDKKitInformation::isPokySDKKit(const Kit *kit) { if (!kit->isAutoDetected()) return false; ToolChain *tc = ToolChainKitInformation::toolChain(kit); if (tc && !findEnvFromCompiler(tc->compilerCommand()).isEmpty()) return true; else if (!findEnvFromSysroot(SysRootKitInformation::sysRoot(kit)).isEmpty()) return true; else return false; }
FileName PokySDKKitInformation::environmentFile(const Kit *kit) { FileName envFile; ToolChain *tc = ToolChainKitInformation::toolChain(kit); if (tc) { envFile = findEnvFromCompiler(tc->compilerCommand()); if (QFile::exists(envFile.toString())) return envFile; } envFile = findEnvFromSysroot(SysRootKitInformation::sysRoot(kit)); if (QFile::exists(envFile.toString())) return envFile; else return FileName(); }