Warning, /games/ksirk/ksirk/iris/qcm/universal.qcm is written in an unsupported language. File is not indexed.

0001 /*
0002 -----BEGIN QCMOD-----
0003 name: Mac universal binary support
0004 section: project
0005 arg: universal,Build with Mac universal binary support.
0006 arg: mac-sdk=[path],Path to Mac universal SDK (PPC host only).
0007 -----END QCMOD-----
0008 */
0009 
0010 #define QC_UNIVERSAL
0011 bool qc_universal_enabled = false;
0012 QString qc_universal_sdk;
0013 
0014 //----------------------------------------------------------------------------
0015 // qc_universal
0016 //----------------------------------------------------------------------------
0017 class qc_universal : public ConfObj
0018 {
0019 public:
0020         qc_universal(Conf *c) : ConfObj(c) {}
0021         QString name() const { return "Mac universal binary support"; }
0022         QString shortname() const { return "universal"; }
0023         QString checkString() const { return QString(); }
0024 
0025         bool exec()
0026         {
0027 #ifdef Q_OS_MAC
0028                 if(qc_getenv("QC_UNIVERSAL") == "Y")
0029                 {
0030                         qc_universal_enabled = true;
0031 
0032                         QString str =
0033                         "contains(QT_CONFIG,x86):contains(QT_CONFIG,ppc) {\n"
0034                         "       CONFIG += x86 ppc\n"
0035                         "}\n";
0036 
0037                         QString sdk = qc_getenv("QC_MAC_SDK");
0038                         if(!sdk.isEmpty())
0039                         {
0040                                 str += QString("QMAKE_MAC_SDK = %1\n").arg(sdk);
0041                                 qc_universal_sdk = sdk;
0042                         }
0043 
0044                         conf->addExtra(str);
0045                 }
0046 #endif
0047                 return true;
0048         }
0049 };