mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-15 03:49:33 +00:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
/*
|
|
-----BEGIN QCMOD-----
|
|
name: Mac universal binary support
|
|
section: project
|
|
arg: universal,Build with Mac universal binary support.
|
|
arg: mac-sdk=[path],Path to Mac universal SDK (PPC host only).
|
|
-----END QCMOD-----
|
|
*/
|
|
|
|
#define QC_UNIVERSAL
|
|
bool qc_universal_enabled = false;
|
|
QString qc_universal_sdk;
|
|
|
|
//----------------------------------------------------------------------------
|
|
// qc_universal
|
|
//----------------------------------------------------------------------------
|
|
class qc_universal : public ConfObj
|
|
{
|
|
public:
|
|
qc_universal(Conf *c) : ConfObj(c) {}
|
|
QString name() const { return "Mac universal binary support"; }
|
|
QString shortname() const { return "universal"; }
|
|
QString checkString() const { return QString(); }
|
|
|
|
bool exec()
|
|
{
|
|
#ifdef Q_OS_MAC
|
|
if(qc_getenv("QC_UNIVERSAL") == "Y")
|
|
{
|
|
qc_universal_enabled = true;
|
|
|
|
QString str =
|
|
"contains(QT_CONFIG,x86):contains(QT_CONFIG,ppc) {\n"
|
|
" CONFIG += x86 ppc\n"
|
|
"}\n";
|
|
|
|
QString sdk = qc_getenv("QC_MAC_SDK");
|
|
if(!sdk.isEmpty())
|
|
{
|
|
str += QString("QMAKE_MAC_SDK = %1\n").arg(sdk);
|
|
qc_universal_sdk = sdk;
|
|
}
|
|
|
|
conf->addExtra(str);
|
|
}
|
|
#endif
|
|
return true;
|
|
}
|
|
};
|