initial commit

This commit is contained in:
mikhail "synzr" 2025-12-25 01:37:49 +05:00
commit 9d20827c46
2469 changed files with 470994 additions and 0 deletions

44
qcm/xss.qcm Normal file
View file

@ -0,0 +1,44 @@
/*
-----BEGIN QCMOD-----
name: the XScreenSaver extension
-----END QCMOD-----
*/
//----------------------------------------------------------------------------
// qc_xss
//----------------------------------------------------------------------------
class qc_xss : public ConfObj
{
public:
qc_xss(Conf *c) : ConfObj(c) {}
QString name() const { return "the XScreenSaver extension"; }
QString shortname() const { return "xss"; }
bool exec()
{
QString str =
"#include<X11/Xlib.h>\n"
"#include<X11/Xutil.h>\n"
"#include<X11/extensions/scrnsaver.h>\n"
"\n"
"int main()\n"
"{\n"
" XScreenSaverQueryExtension(NULL, NULL, NULL);\n"
" return 0;\n"
"}\n";
QString proextra = "CONFIG += x11\n";
if (!conf->doCompileAndLink(str, QStringList(), "-lXss", proextra, NULL)) {
if (!conf->doCompileAndLink(str, QStringList(), QString(), proextra, NULL)) {
return false;
}
}
else {
conf->addLib("-lXss");
}
conf->addDefine("HAVE_XSS");
return true;
}
};