-
Notifications
You must be signed in to change notification settings - Fork 59
/
.qmake.cache.in
42 lines (31 loc) · 1.42 KB
/
.qmake.cache.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# http://qt-project.org/wiki/QMake-top-level-srcdir-and-builddir
top_srcdir=$$PWD
top_builddir=$$OUT_PWD
DESTDIR = $$OUT_PWD
# Note on same-named files:
# There is/was the undocumented object_with_source, object_parallel_to_source,
# but is was removed and/or requires Qt5.
# There is no real sane way to do this, so we dont.
# For mocs, we must do it because it screwes up the source dir otherwise (`$$files(*.cpp)` ...).
# Let's just hope there aren't two equally named moc files.
MOC_DIR=$$OUT_PWD/build/qt/moc
# No mac-scope because of "Using OS scope before setting MAKEFILE_GENERATOR" error from qmake.
uname = $$system(uname)
equals(uname, Darwin) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
QMAKE_CFLAGS += -isysroot /Developer/SDKs/MacOSX10.7.sdk
QMAKE_CFLAGS += -mmacosx-version-min=10.6
QMAKE_CXXFLAGS += -isysroot /Developer/SDKs/MacOSX10.7.sdk
QMAKE_CXXFLAGS += -mmacosx-version-min=10.6
QMAKE_CXXFLAGS += -stdlib=libstdc++
QMAKE_LFLAGS += -isysroot /Developer/SDKs/MacOSX10.7.sdk
QMAKE_LFLAGS += -mmacosx-version-min=10.6
QMAKE_LFLAGS += -stdlib=libstdc++
# maybe also this for libs: -single_module -compatibility_version 1 -current_version 1
# We use our own Python.
INCLUDEPATH += $$PWD/python-embedded/CPython/Include
INCLUDEPATH += $$PWD/python-embedded/pylib
# For Boost headers.
# Don't add /usr/local/include because that might confuse Qt if there is another Qt.
INCLUDEPATH += /usr/local/opt/boost/include
}