initial commit
This commit is contained in:
commit
9d20827c46
2469 changed files with 470994 additions and 0 deletions
44
qcm/xss.qcm
Normal file
44
qcm/xss.qcm
Normal 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;
|
||||
}
|
||||
};
|
||||
Reference in a new issue