forked from NatronGitHub/Natron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-macports.pri
49 lines (47 loc) · 2.37 KB
/
config-macports.pri
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
41
42
43
44
45
46
47
48
49
boost {
LIBS += -lboost_serialization-mt
}
equals(QT_MAJOR_VERSION, 5) {
shiboken: INCLUDEPATH += $$PYTHON_SITE_PACKAGES/shiboken2_generator/include
shiboken: LIBS += -L$$PYTHON_SITE_PACKAGES/shiboken2 -lshiboken2.cpython-$$PYVERNODOT-darwin.$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}
shiboken: QMAKE_RPATHDIR += $$PYTHON_SITE_PACKAGES/shiboken2
pyside: INCLUDEPATH += $$PYTHON_SITE_PACKAGES/PySide2/include
pyside: INCLUDEPATH += $$PYTHON_SITE_PACKAGES/PySide2/include/QtCore
pyside: INCLUDEPATH += $$PYTHON_SITE_PACKAGES/PySide2/include/QtGui
pyside: INCLUDEPATH += $$PYTHON_SITE_PACKAGES/PySide2/include/QtWidgets
pyside: LIBS += -L$$PYTHON_SITE_PACKAGES/PySide2 -lpyside2.cpython-$$PYVERNODOT-darwin.$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}
pyside: QMAKE_RPATHDIR += $$PYTHON_SITE_PACKAGES/PySide2
}
macx:openmp {
# clang 12+ is OK to build Natron, but libomp 12+ has a bug on macOS when
# lanching tasks from a background thread, see https://bugs.llvm.org/show_bug.cgi?id=50579
LIBS += -L/opt/local/lib -L/opt/local/lib/libomp -liomp5
QMAKE_CC = /opt/local/bin/clang-mp-12
QMAKE_CXX = /opt/local/bin/clang++-mp-12
# Recent clang cannot compile QtMac.mm
QMAKE_OBJECTIVE_CC = clang
QMAKE_OBJECTIVE_CXX = clang++
QMAKE_LINK = $$QMAKE_CXX
INCLUDEPATH += /opt/local/include /opt/local/include/libomp
cc_setting.name = CC
cc_setting.value = $$QMAKE_CC
cxx_setting.name = CXX
cxx_setting.value = $$QMAKE_CXX
# These settings are useless, unless someone finds out if there is a variable
# to override the Objective-C compiler.
objective_cc_setting.name = OBJECTIVE_CC
objective_cc_setting.value = $$QMAKE_OBJECTIVE_CC
objective_cxx_setting.name = OBJECTIVE_CXX
objective_cxx_setting.value = $$QMAKE_OBJECTIVE_CXX
ld_setting.name = LD
ld_setting.value = $$QMAKE_CC
ldxx_setting.name = LDPLUSPLUS
ldxx_setting.value = $$QMAKE_CXX
QMAKE_MAC_XCODE_SETTINGS += cc_setting cxx_setting objective_cc_setting objective_cxx_setting ld_setting ldxx_setting
QMAKE_FLAGS = "-B /usr/bin"
# clang (as of 12.0.1) does not yet support index-while-building functionality
# present in Xcode 9 and later, and Xcode's clang (as of 13.0) does not yet support OpenMP
compiler_index_store_enable_setting.name = COMPILER_INDEX_STORE_ENABLE
compiler_index_store_enable_setting.value = NO
QMAKE_MAC_XCODE_SETTINGS += compiler_index_store_enable_setting
}