ObjQt  Check-in [0df95396ff]

Overview
Comment:Make Qt project work on non-Mac systems
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0df95396ffe05aadf8dbc9d0c33ac84cab801d3850ebfb47fb8b8cc05b409489
User & Date: js on 2017-04-15 02:42:37
Other Links: manifest | tags
Context
2017-04-15
17:18
Make toOF/toQt more powerful and complete QtWidget check-in: 3ece549448 user: js tags: trunk
02:42
Make Qt project work on non-Mac systems check-in: 0df95396ff user: js tags: trunk
02:16
Add QtAction and add more methods to QtWidget check-in: d43a881019 user: js tags: trunk
Changes

Modified ObjQt.pro from [24307d8f20] to [34f4d80068].

31
32
33
34
35
36
37
38
39
40
41
42













43
31
32
33
34
35
36
37





38
39
40
41
42
43
44
45
46
47
48
49
50
51







-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+

	   QtCore/QtThread.mm		\
	   QtGui/QtGuiApplication.mm	\
	   QtGui/QtPaintDevice.mm	\
	   QtWidgets/QtAction.mm	\
	   QtWidgets/QtApplication.mm	\
	   QtWidgets/QtWidget.mm

QMAKE_CXXFLAGS += $$system("objfw-config --cppflags --objcflags --cxxflags")
QMAKE_CXXFLAGS_WARN_ON = -Wall					\
			 -Werror				\
			 -Wsemicolon-before-method-body		\
			 -Wobjc-missing-property-synthesis
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")