33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
QtCore/QtThread.mm \
QtGui/QtGUIApplication.mm \
QtGui/QtPaintDevice.mm \
QtWidgets/QtAction.mm \
QtWidgets/QtApplication.mm \
QtWidgets/QtWidget.mm
OBJCFLAGS += $$system("objfw-config --cppflags --objcflags --cxxflags")
OBJCFLAGS_WARN_ON = -Wall \
-Werror \
-Wsemicolon-before-method-body \
-Wobjc-missing-property-synthesis
# qmake treats .mm files as C++ on Mac, but as C on everything else
macx:QMAKE_CXXFLAGS += $$OBJCFLAGS
macx:QMAKE_CXXFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON
!macx:QMAKE_CC = clang++
!macx:QMAKE_CFLAGS += -std=c++11 $$OBJCFLAGS
!macx:QMAKE_CFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON
LIBS += $$system("objfw-config --ldflags --libs")
|
|
>
>
|
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
QtCore/QtThread.mm \
QtGui/QtGUIApplication.mm \
QtGui/QtPaintDevice.mm \
QtWidgets/QtAction.mm \
QtWidgets/QtApplication.mm \
QtWidgets/QtWidget.mm
OBJCFLAGS += $$system("sh -c 'objfw-config --cppflags --objcflags --cxxflags'")
OBJCFLAGS_WARN_ON = -Wall \
-Werror \
-Wsemicolon-before-method-body \
-Wobjc-missing-property-synthesis
# qmake treats .mm files as C++ on Mac, but as C on everything else
macx:QMAKE_CXXFLAGS += $$OBJCFLAGS
macx:QMAKE_CXXFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON
!macx:QMAKE_CC = clang++
!macx:QMAKE_CFLAGS += -std=c++11 $$OBJCFLAGS
!macx:QMAKE_CFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON
win32:QMAKE_CFLAGS -= -fno-keep-inline-dllexport
win32:QMAKE_CFLAGS_WARN_ON += -Wno-ignored-attributes
LIBS += $$system("sh -c 'objfw-config --ldflags --libs'")
|