diff --git generator/generator.pri generator/generator.pri
index daa3e0c..3b62b9b 100644
|
|
|
TEMPLATE = app |
| 5 | 5 | TARGET = generator |
| 6 | 6 | DEPENDPATH += $$GENERATORPATH tests parser |
| 7 | 7 | mac:CONFIG -= app_bundle |
| | 8 | |
| | 9 | LIBS *= -L/opt/local/lib |
| | 10 | INCLUDEPATH += /opt/local/include/qt4 |
| | 11 | INCLUDEPATH += /opt/local/include/phonon |
| | 12 | INCLUDEPATH += /opt/local/include |
| | 13 | |
| 8 | 14 | INCLUDEPATH += $$GENERATORPATH/. |
| 9 | 15 | INCLUDEPATH += $$GENERATORPATH/../common |
| 10 | 16 | |
diff --git generator/main.h generator/main.h
index ebf153d..dd65632 100644
|
|
|
|
| 46 | 46 | |
| 47 | 47 | #include <QFile> |
| 48 | 48 | #include <QDir> |
| | 49 | #include <QDebug> |
| 49 | 50 | |
| 50 | 51 | struct Preprocess |
| 51 | 52 | { |
| … |
… |
struct Preprocess |
| 87 | 88 | includes += commandLineIncludes.split(path_splitter); |
| 88 | 89 | |
| 89 | 90 | // Include Qt |
| | 91 | qDebug() << "includes=" << includes; |
| 90 | 92 | QString qtdir = getenv ("QTDIR"); |
| 91 | 93 | if (qtdir.isEmpty()) { |
| 92 | 94 | #if defined(Q_OS_MAC) |
| 93 | 95 | qWarning("QTDIR environment variable not set. Assuming standard binary install using frameworks."); |
| 94 | | QString frameworkDir = "/Library/Frameworks"; |
| | 96 | QString frameworkDir = getenv("QTFRAMEWORKS"); |
| | 97 | if (frameworkDir.isEmpty()) { |
| | 98 | frameworkDir = "@QT_FRAMEWORKS_DIR@"; |
| | 99 | } |
| 95 | 100 | includes << (frameworkDir + "/QtXml.framework/Headers"); |
| 96 | 101 | includes << (frameworkDir + "/QtNetwork.framework/Headers"); |
| 97 | 102 | includes << (frameworkDir + "/QtCore.framework/Headers"); |
| 98 | 103 | includes << (frameworkDir + "/QtGui.framework/Headers"); |
| 99 | 104 | includes << (frameworkDir + "/QtOpenGL.framework/Headers"); |
| 100 | 105 | includes << frameworkDir; |
| | 106 | includes << "@QT_INCLUDES_DIR@"; |
| | 107 | includes << "@PREFIX@/include/phonon"; |
| | 108 | includes << "@PREFIX@/include"; |
| 101 | 109 | #else |
| 102 | 110 | qWarning("QTDIR environment variable not set. This may cause problems with finding the necessary include files."); |
| 103 | 111 | #endif |
| … |
… |
struct Preprocess |
| 110 | 118 | includes << (qtdir + "/QtOpenGL"); |
| 111 | 119 | includes << qtdir; |
| 112 | 120 | } |
| | 121 | qDebug() << "includes=" << includes; |
| 113 | 122 | |
| 114 | 123 | foreach (QString include, includes) |
| 115 | 124 | preprocess.push_include_path(QDir::convertSeparators(include).toStdString()); |
diff --git qtbindings/qtbindingsbase.pri qtbindings/qtbindingsbase.pri
index 54eb9a5..3021b73 100644
|
|
|
|
| 1 | 1 | TEMPLATE = lib |
| 2 | 2 | DEPENDPATH += . |
| 3 | 3 | INCLUDEPATH += . |
| | 4 | INCLUDEPATH += /opt/local/include/qt4 |
| | 5 | INCLUDEPATH += /opt/local/include/phonon |
| | 6 | INCLUDEPATH += /opt/local/include |
| 4 | 7 | DESTDIR = $$PWD/../plugins/script |
| 5 | 8 | QT += script |
| 6 | 9 | CONFIG += @ARCHES@ @BUILD_TYPE@ |
| 7 | 10 | GENERATEDCPP = $$PWD/../generated_cpp |
| 8 | 11 | TARGET=$$qtLibraryTarget($$TARGET) |
| 9 | 12 | target.path = $$[QT_INSTALL_PLUGINS]/script |