Fixed: choose filetransfer transport by priority (thanks Dealer_WeARE)
[iris.git] / qcm / universal.qcm
blob5b6f7c4d6f3ce3b4c062e6664a995dcd0c3bc8a4
1 /*
2 -----BEGIN QCMOD-----
3 name: Mac universal binary support
4 section: project
5 arg: universal,Build with Mac universal binary support.
6 arg: mac-sdk=[path],Path to Mac universal SDK (PPC host only).
7 -----END QCMOD-----
8 */
10 #define QC_UNIVERSAL
11 bool qc_universal_enabled = false;
12 QString qc_universal_sdk;
14 //----------------------------------------------------------------------------
15 // qc_universal
16 //----------------------------------------------------------------------------
17 class qc_universal : public ConfObj
19 public:
20         qc_universal(Conf *c) : ConfObj(c) {}
21         QString name() const { return "Mac universal binary support"; }
22         QString shortname() const { return "universal"; }
23         QString checkString() const { return QString(); }
25         bool exec()
26         {
27 #ifdef Q_OS_MAC
28                 if(qc_getenv("QC_UNIVERSAL") == "Y")
29                 {
30                         qc_universal_enabled = true;
32                         QString str =
33                         "contains(QT_CONFIG,x86):contains(QT_CONFIG,ppc) {\n"
34                         "       CONFIG += x86 ppc\n"
35                         "}\n";
37                         QString sdk = qc_getenv("QC_MAC_SDK");
38                         if(!sdk.isEmpty())
39                         {
40                                 str += QString("QMAKE_MAC_SDK = %1\n").arg(sdk);
41                                 qc_universal_sdk = sdk;
42                         }
44                         conf->addExtra(str);
45                 }
46 #endif
47                 return true;
48         }