author | kergoth <kergoth> | 2002-11-01 00:24:02 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-01 00:24:02 (UTC) |
commit | 4c5b7d437a5bf71c17941202395c7e56cdcc900b (patch) (unidiff) | |
tree | 86e50799cc73d68c54e8f7a73d4ee4790c119584 /mkspecs/qws | |
parent | 5042e3cf0d3514552769e441f5aad590c8eaf967 (diff) | |
download | opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.zip opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.gz opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.bz2 |
Adding spec files for qmake :)
-rw-r--r-- | mkspecs/qws/freebsd-generic-g++/qmake.conf | 71 | ||||
-rw-r--r-- | mkspecs/qws/linux-arm-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-generic-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-ipaq-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-mips-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-sharp-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-sharp-g++/qplatformdefs.h | 103 | ||||
-rw-r--r-- | mkspecs/qws/linux-x86-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/macx-generic-g++/qmake.conf | 80 | ||||
-rw-r--r-- | mkspecs/qws/macx-generic-g++/qplatformdefs.h | 92 | ||||
-rw-r--r-- | mkspecs/qws/qnx4-cc/qmake.conf | 70 | ||||
-rw-r--r-- | mkspecs/qws/qnx4-cc/qplatformdefs.h | 78 | ||||
-rw-r--r-- | mkspecs/qws/qnx6-generic-cc/qmake.conf | 77 | ||||
-rw-r--r-- | mkspecs/qws/qnx6-generic-cc/qplatformdefs.h | 82 | ||||
-rw-r--r-- | mkspecs/qws/qnx6-generic-g++/qmake.conf | 77 | ||||
-rw-r--r-- | mkspecs/qws/qnx6-generic-g++/qplatformdefs.h | 82 | ||||
-rw-r--r-- | mkspecs/qws/solaris-generic-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/solaris-generic-g++/qplatformdefs.h | 110 |
18 files changed, 1454 insertions, 0 deletions
diff --git a/mkspecs/qws/freebsd-generic-g++/qmake.conf b/mkspecs/qws/freebsd-generic-g++/qmake.conf new file mode 100644 index 0000000..3588caf --- a/dev/null +++ b/mkspecs/qws/freebsd-generic-g++/qmake.conf | |||
@@ -0,0 +1,71 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for freebsd-g++ with Qt/Embedded | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_DEPS= -M | ||
18 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
19 | QMAKE_CFLAGS_WARN_OFF= -w | ||
20 | QMAKE_CFLAGS_RELEASE= -O2 -fno-default-inline | ||
21 | QMAKE_CFLAGS_DEBUG= -g | ||
22 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
23 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
24 | QMAKE_CFLAGS_THREAD= -pthread -D_THREAD_SAFE | ||
25 | |||
26 | QMAKE_CXX = g++ | ||
27 | QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS | ||
28 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_TRANSFORMED -DQWS -fno-exceptions -fno-rtti | ||
29 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
30 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
31 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
32 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
33 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
34 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
35 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
36 | |||
37 | # Addon software goes into /usr/local on the BSDs, by default we will look there | ||
38 | QMAKE_INCDIR = /usr/local/include | ||
39 | QMAKE_LIBDIR = /usr/local/lib | ||
40 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
41 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
42 | |||
43 | QMAKE_LINK = g++ | ||
44 | QMAKE_LINK_SHLIB= g++ | ||
45 | QMAKE_LFLAGS = | ||
46 | QMAKE_LFLAGS_RELEASE= | ||
47 | QMAKE_LFLAGS_DEBUG= | ||
48 | QMAKE_LFLAGS_SHLIB = -shared | ||
49 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
50 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
51 | QMAKE_LFLAGS_THREAD = -pthread | ||
52 | QMAKE_RPATH = -Wl,-rpath, | ||
53 | |||
54 | QMAKE_LIBS = | ||
55 | QMAKE_LIBS_QT = -lqte | ||
56 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
57 | QMAKE_LIBS_THREAD = | ||
58 | |||
59 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
60 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
61 | |||
62 | QMAKE_AR = ar cqs | ||
63 | QMAKE_RANLIB = | ||
64 | |||
65 | QMAKE_TAR = tar -cf | ||
66 | QMAKE_GZIP = gzip -9f | ||
67 | |||
68 | QMAKE_COPY = cp -f | ||
69 | QMAKE_MOVE = mv -f | ||
70 | QMAKE_DEL_FILE = rm -f | ||
71 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-arm-g++/qmake.conf b/mkspecs/qws/linux-arm-g++/qmake.conf new file mode 100644 index 0000000..7927ac5 --- a/dev/null +++ b/mkspecs/qws/linux-arm-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = arm-linux-gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = arm-linux-g++ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = arm-linux-g++ | ||
45 | QMAKE_LINK_SHLIB= arm-linux-g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-generic-g++/qmake.conf b/mkspecs/qws/linux-generic-g++/qmake.conf new file mode 100644 index 0000000..69b14dc --- a/dev/null +++ b/mkspecs/qws/linux-generic-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = g++ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = g++ | ||
45 | QMAKE_LINK_SHLIB= g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-ipaq-g++/qmake.conf b/mkspecs/qws/linux-ipaq-g++/qmake.conf new file mode 100644 index 0000000..ac27d2a --- a/dev/null +++ b/mkspecs/qws/linux-ipaq-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = arm-linux-gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = arm-linux-g++ -DQT_QWS_IPAQ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = arm-linux-g++ | ||
45 | QMAKE_LINK_SHLIB= arm-linux-g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-mips-g++/qmake.conf b/mkspecs/qws/linux-mips-g++/qmake.conf new file mode 100644 index 0000000..a748f52 --- a/dev/null +++ b/mkspecs/qws/linux-mips-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the mipsel-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = mipsel-linux-gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = mipsel-linux-g++ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = mipsel-linux-g++ | ||
45 | QMAKE_LINK_SHLIB= mipsel-linux-g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-sharp-g++/qmake.conf b/mkspecs/qws/linux-sharp-g++/qmake.conf new file mode 100644 index 0000000..4744fee --- a/dev/null +++ b/mkspecs/qws/linux-sharp-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = arm-linux-gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = arm-linux-g++ -DQT_QWS_SHARP -DQT_QWS_EBX | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = arm-linux-g++ | ||
45 | QMAKE_LINK_SHLIB= arm-linux-g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-sharp-g++/qplatformdefs.h b/mkspecs/qws/linux-sharp-g++/qplatformdefs.h new file mode 100644 index 0000000..8fea644 --- a/dev/null +++ b/mkspecs/qws/linux-sharp-g++/qplatformdefs.h | |||
@@ -0,0 +1,103 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | // DNS system header files are a mess! | ||
11 | // <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using | ||
12 | // 'u_char' and includes <sys/types.h>. Now the problem is that | ||
13 | // <sys/types.h> defines 'u_char' only if __USE_BSD is defined. | ||
14 | // __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. | ||
15 | #ifndef _BSD_SOURCE | ||
16 | # define _BSD_SOURCE | ||
17 | #endif | ||
18 | |||
19 | // 1) need to reset default environment if _BSD_SOURCE is defined | ||
20 | // 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 | ||
21 | // 3) it seems older glibc need this to include the X/Open stuff | ||
22 | #ifndef _GNU_SOURCE | ||
23 | # define _GNU_SOURCE | ||
24 | #endif | ||
25 | |||
26 | #include <unistd.h> | ||
27 | |||
28 | |||
29 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
30 | |||
31 | |||
32 | #ifdef QT_THREAD_SUPPORT | ||
33 | #include <pthread.h> | ||
34 | #endif | ||
35 | |||
36 | #include <dirent.h> | ||
37 | #include <fcntl.h> | ||
38 | #include <grp.h> | ||
39 | #include <pwd.h> | ||
40 | #include <signal.h> | ||
41 | #include <dlfcn.h> | ||
42 | #define QT_RTLD_FLAGSRTLD_LAZY|RTLD_GLOBAL | ||
43 | |||
44 | #include <sys/types.h> | ||
45 | #include <sys/ioctl.h> | ||
46 | #include <sys/ipc.h> | ||
47 | #include <sys/time.h> | ||
48 | #include <sys/shm.h> | ||
49 | #include <sys/socket.h> | ||
50 | #include <sys/stat.h> | ||
51 | #include <sys/wait.h> | ||
52 | |||
53 | // DNS header files are not fully covered by X/Open specifications. | ||
54 | // In particular nothing is said about res_* :/ | ||
55 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
56 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
57 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
58 | #include <netinet/in.h> | ||
59 | #include <arpa/nameser.h> | ||
60 | #include <resolv.h> | ||
61 | |||
62 | |||
63 | #if !defined(QT_NO_COMPAT) | ||
64 | #define QT_STATBUF struct stat | ||
65 | #define QT_STATBUF4TSTATstruct stat | ||
66 | #define QT_STAT ::stat | ||
67 | #define QT_FSTAT ::fstat | ||
68 | #define QT_STAT_REG S_IFREG | ||
69 | #define QT_STAT_DIR S_IFDIR | ||
70 | #define QT_STAT_MASK S_IFMT | ||
71 | #define QT_STAT_LNK S_IFLNK | ||
72 | #define QT_FILENO fileno | ||
73 | #define QT_OPEN ::open | ||
74 | #define QT_CLOSE ::close | ||
75 | #define QT_LSEEK ::lseek | ||
76 | #define QT_READ ::read | ||
77 | #define QT_WRITE ::write | ||
78 | #define QT_ACCESS ::access | ||
79 | #define QT_GETCWD ::getcwd | ||
80 | #define QT_CHDIR ::chdir | ||
81 | #define QT_MKDIR ::mkdir | ||
82 | #define QT_RMDIR ::rmdir | ||
83 | #define QT_OPEN_RDONLY O_RDONLY | ||
84 | #define QT_OPEN_WRONLY O_WRONLY | ||
85 | #define QT_OPEN_RDWR O_RDWR | ||
86 | #define QT_OPEN_CREAT O_CREAT | ||
87 | #define QT_OPEN_TRUNC O_TRUNC | ||
88 | #define QT_OPEN_APPEND O_APPEND | ||
89 | #endif | ||
90 | |||
91 | #define QT_SIGNAL_RETTYPEvoid | ||
92 | #define QT_SIGNAL_ARGS int | ||
93 | #define QT_SIGNAL_IGNORESIG_IGN | ||
94 | |||
95 | #define QT_SOCKLEN_T socklen_t | ||
96 | |||
97 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||
98 | #define QT_SNPRINTF ::snprintf | ||
99 | #define QT_VSNPRINTF ::vsnprintf | ||
100 | #endif | ||
101 | |||
102 | |||
103 | #endif // QPLATFORMDEFS_H | ||
diff --git a/mkspecs/qws/linux-x86-g++/qmake.conf b/mkspecs/qws/linux-x86-g++/qmake.conf new file mode 100644 index 0000000..e9e4352 --- a/dev/null +++ b/mkspecs/qws/linux-x86-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = g++ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = g++ | ||
45 | QMAKE_LINK_SHLIB= g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/macx-generic-g++/qmake.conf b/mkspecs/qws/macx-generic-g++/qmake.conf new file mode 100644 index 0000000..d361bdc --- a/dev/null +++ b/mkspecs/qws/macx-generic-g++/qmake.conf | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for macx-g++ with Qt/Embedded | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | QMAKE_EXTENSION_SHLIB= dylib | ||
11 | |||
12 | QMAKE_CC = $(TB)cc | ||
13 | QMAKE_LEX = flex | ||
14 | QMAKE_LEXFLAGS = | ||
15 | QMAKE_YACC = yacc | ||
16 | QMAKE_YACCFLAGS = -d | ||
17 | QMAKE_CFLAGS = -pipe | ||
18 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
19 | QMAKE_CFLAGS_WARN_OFF= | ||
20 | QMAKE_CFLAGS_RELEASE= -O2 -fno-default-inline | ||
21 | QMAKE_CFLAGS_DEBUG= -g | ||
22 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
23 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
24 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
25 | |||
26 | QMAKE_CXX = $(TB)c++ | ||
27 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_TRANSFORMED -DQWS -fno-exceptions -fno-rtti | ||
28 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
29 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
30 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
31 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
32 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
33 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
34 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
35 | |||
36 | QMAKE_INCDIR = | ||
37 | QMAKE_LIBDIR = | ||
38 | QMAKE_INCDIR_X11= | ||
39 | QMAKE_LIBDIR_X11= | ||
40 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
41 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
42 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
43 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
44 | |||
45 | QMAKE_LINK = $$QMAKE_CXX | ||
46 | QMAKE_LINK_SHLIB= $$QMAKE_CXX | ||
47 | QMAKE_LFLAGS = | ||
48 | QMAKE_LFLAGS_RELEASE= | ||
49 | QMAKE_LFLAGS_DEBUG= | ||
50 | QMAKE_LFLAGS_SHLIB= -dynamiclib | ||
51 | QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace | ||
52 | QMAKE_LFLAGS_PLUGIN= -bundle | ||
53 | QMAKE_LFLAGS_SONAME= | ||
54 | QMAKE_LFLAGS_THREAD= | ||
55 | QMAKE_RPATH = | ||
56 | |||
57 | QMAKE_LIBS = | ||
58 | QMAKE_LIBS_X11 = | ||
59 | QMAKE_LIBS_X11SM= | ||
60 | QMAKE_LIBS_QT = -lqte | ||
61 | QMAKE_LIBS_QT_THREAD= -lqte-mt | ||
62 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
63 | QMAKE_LIBS_THREAD= | ||
64 | |||
65 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
66 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
67 | |||
68 | QMAKE_AR = ar cqs | ||
69 | QMAKE_RANLIB = | ||
70 | |||
71 | QMAKE_TAR = tar -cf | ||
72 | QMAKE_GZIP = gzip -9f | ||
73 | |||
74 | QMAKE_COPY = cp -f | ||
75 | QMAKE_MOVE = mv -f | ||
76 | QMAKE_DEL_FILE = rm -f | ||
77 | QMAKE_DEL_DIR = rmdir | ||
78 | |||
79 | |||
80 | |||
diff --git a/mkspecs/qws/macx-generic-g++/qplatformdefs.h b/mkspecs/qws/macx-generic-g++/qplatformdefs.h new file mode 100644 index 0000000..0bb71b4 --- a/dev/null +++ b/mkspecs/qws/macx-generic-g++/qplatformdefs.h | |||
@@ -0,0 +1,92 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | |||
9 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
10 | |||
11 | #include <unistd.h> | ||
12 | |||
13 | |||
14 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
15 | |||
16 | |||
17 | #ifdef QT_THREAD_SUPPORT | ||
18 | #include <pthread.h> | ||
19 | #endif | ||
20 | |||
21 | #include <ctype.h> | ||
22 | #include <dirent.h> | ||
23 | #include <errno.h> | ||
24 | #include <fcntl.h> | ||
25 | #include <grp.h> | ||
26 | #include <limits.h> | ||
27 | #include <locale.h> | ||
28 | #include <pwd.h> | ||
29 | #include <signal.h> | ||
30 | #include <stdlib.h> | ||
31 | #include <stdio.h> | ||
32 | #include <time.h> | ||
33 | |||
34 | #include <sys/types.h> | ||
35 | #include <sys/ioctl.h> | ||
36 | #include <sys/ipc.h> | ||
37 | #include <sys/time.h> | ||
38 | #include <sys/shm.h> | ||
39 | #include <sys/socket.h> | ||
40 | #include <sys/stat.h> | ||
41 | #include <sys/wait.h> | ||
42 | #define QT_NO_LIBRARY_UNLOAD | ||
43 | |||
44 | // DNS header files are not fully covered by X/Open specifications. | ||
45 | // In particular nothing is said about res_* :/ | ||
46 | // On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not | ||
47 | // included by <resolv.h>. Note that <arpa/nameser.h> must be included | ||
48 | // before <resolv.h>. | ||
49 | #include <netinet/in.h> | ||
50 | #include <arpa/nameser.h> | ||
51 | #include <resolv.h> | ||
52 | |||
53 | |||
54 | #if !defined(QT_NO_COMPAT) | ||
55 | #define QT_STATBUF struct stat | ||
56 | #define QT_STATBUF4TSTATstruct stat | ||
57 | #define QT_STAT ::stat | ||
58 | #define QT_FSTAT ::fstat | ||
59 | #define QT_STAT_REG S_IFREG | ||
60 | #define QT_STAT_DIR S_IFDIR | ||
61 | #define QT_STAT_MASK S_IFMT | ||
62 | #define QT_STAT_LNK S_IFLNK | ||
63 | #define QT_FILENO fileno | ||
64 | #define QT_OPEN ::open | ||
65 | #define QT_CLOSE ::close | ||
66 | #define QT_LSEEK ::lseek | ||
67 | #define QT_READ ::read | ||
68 | #define QT_WRITE ::write | ||
69 | #define QT_ACCESS ::access | ||
70 | #define QT_GETCWD ::getcwd | ||
71 | #define QT_CHDIR ::chdir | ||
72 | #define QT_MKDIR ::mkdir | ||
73 | #define QT_RMDIR ::rmdir | ||
74 | #define QT_OPEN_RDONLY O_RDONLY | ||
75 | #define QT_OPEN_WRONLY O_WRONLY | ||
76 | #define QT_OPEN_RDWR O_RDWR | ||
77 | #define QT_OPEN_CREAT O_CREAT | ||
78 | #define QT_OPEN_TRUNC O_TRUNC | ||
79 | #define QT_OPEN_APPEND O_APPEND | ||
80 | #endif | ||
81 | |||
82 | #define QT_SIGNAL_RETTYPEvoid | ||
83 | #define QT_SIGNAL_ARGS int | ||
84 | #define QT_SIGNAL_IGNORE(void (*)(int))1 | ||
85 | |||
86 | #define QT_SOCKLEN_T int | ||
87 | |||
88 | #define QT_SNPRINTF ::snprintf | ||
89 | #define QT_VSNPRINTF ::vsnprintf | ||
90 | |||
91 | |||
92 | #endif // QPLATFORMDEFS_H | ||
diff --git a/mkspecs/qws/qnx4-cc/qmake.conf b/mkspecs/qws/qnx4-cc/qmake.conf new file mode 100644 index 0000000..a756b60 --- a/dev/null +++ b/mkspecs/qws/qnx4-cc/qmake.conf | |||
@@ -0,0 +1,70 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for qnx4-gcc | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release no_mocdepend | ||
10 | |||
11 | QMAKE_CC = cc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -WC,-sg | ||
17 | QMAKE_CFLAGS_WARN_ON = -w1 | ||
18 | QMAKE_CFLAGS_WARN_OFF = -w0 | ||
19 | QMAKE_CFLAGS_RELEASE = -O | ||
20 | QMAKE_CFLAGS_DEBUG= -g2d | ||
21 | QMAKE_CFLAGS_SHLIB= | ||
22 | QMAKE_CFLAGS_YACC= | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT -WC,-bm | ||
24 | |||
25 | QMAKE_CXX = cc | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS | ||
27 | DEFINES += QT_NO_SOUND QT_CLEAN_NAMESPACE QT_NO_QWS_TRANSFORMED QT_NO_QWS_MOUSE_AUTO QT_NO_QWS_MOUSE_MANUAL QT_NO_QWS_LINUXFB | ||
28 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
29 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
30 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
31 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
32 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
33 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
34 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
35 | |||
36 | QMAKE_INCDIR = /usr/local/include /usr/include/graphics | ||
37 | QMAKE_LIBDIR = /usr/local/lib $(QTDIR)/lib | ||
38 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
39 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
40 | |||
41 | QMAKE_LINK = cc | ||
42 | QMAKE_LINK_SHLIB= cc | ||
43 | QMAKE_LFLAGS = -lsocket | ||
44 | QMAKE_LFLAGS_RELEASE= | ||
45 | QMAKE_LFLAGS_DEBUG= -g2d | ||
46 | QMAKE_LFLAGS_SHLIB= -d | ||
47 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | ||
48 | QMAKE_LFLAGS_SONAME= | ||
49 | QMAKE_LFLAGS_THREAD= | ||
50 | QMAKE_RPATH = | ||
51 | |||
52 | QMAKE_LIBS = -lsocket | ||
53 | QMAKE_LIBS_DYNLOAD= | ||
54 | QMAKE_LIBS_QT = -T 1 -lqte | ||
55 | QMAKE_LIBS_QT_THREAD= -lqte-mt | ||
56 | QMAKE_LIBS_THREAD= | ||
57 | |||
58 | QMAKE_MOC = $(QTDIR)/util/scripts/qnx4moc.sh $(CXXFLAGS) $(INCPATH) | ||
59 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
60 | |||
61 | QMAKE_AR = wlib -n -c | ||
62 | QMAKE_RANLIB = | ||
63 | |||
64 | QMAKE_TAR = tar -cf | ||
65 | QMAKE_GZIP = gzip -9f | ||
66 | |||
67 | QMAKE_COPY = cp -f | ||
68 | QMAKE_MOVE = mv -f | ||
69 | QMAKE_DEL_FILE = rm -f | ||
70 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/qnx4-cc/qplatformdefs.h b/mkspecs/qws/qnx4-cc/qplatformdefs.h new file mode 100644 index 0000000..7c170fb --- a/dev/null +++ b/mkspecs/qws/qnx4-cc/qplatformdefs.h | |||
@@ -0,0 +1,78 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | #include "qglobal.h" | ||
6 | |||
7 | #include <unix.h> | ||
8 | |||
9 | #ifdef QT_THREAD_SUPPORT | ||
10 | #include <pthread.h> | ||
11 | #endif | ||
12 | |||
13 | #include <dirent.h> | ||
14 | #include <fcntl.h> | ||
15 | #include <grp.h> | ||
16 | #include <pwd.h> | ||
17 | #include <signal.h> | ||
18 | |||
19 | #include <sys/types.h> | ||
20 | #include <sys/ioctl.h> | ||
21 | #include <sys/select.h> | ||
22 | #include <sys/time.h> | ||
23 | #include <sys/socket.h> | ||
24 | #include <sys/stat.h> | ||
25 | #include <sys/wait.h> | ||
26 | |||
27 | // DNS header files are not fully covered by X/Open specifications. | ||
28 | // In particular nothing is said about res_* :/ | ||
29 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
30 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
31 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
32 | #include <netinet/in.h> | ||
33 | #include <arpa/nameser.h> | ||
34 | #define class c_class | ||
35 | extern "C" { | ||
36 | #include <resolv.h> | ||
37 | } | ||
38 | #undef class | ||
39 | |||
40 | |||
41 | #define QT_STATBUF struct stat | ||
42 | #define QT_STATBUF4TSTATstruct stat | ||
43 | #define QT_STAT ::stat | ||
44 | #define QT_FSTAT ::fstat | ||
45 | #define QT_STAT_REG S_IFREG | ||
46 | #define QT_STAT_DIR S_IFDIR | ||
47 | #define QT_STAT_MASK S_IFMT | ||
48 | #define QT_STAT_LNK S_IFLNK | ||
49 | #define QT_FILENO fileno | ||
50 | #define QT_OPEN ::open | ||
51 | #define QT_CLOSE ::close | ||
52 | #define QT_LSEEK ::lseek | ||
53 | #define QT_READ ::read | ||
54 | #define QT_WRITE ::write | ||
55 | #define QT_ACCESS ::access | ||
56 | #define QT_GETCWD ::getcwd | ||
57 | #define QT_CHDIR ::chdir | ||
58 | #define QT_MKDIR ::mkdir | ||
59 | #define QT_RMDIR ::rmdir | ||
60 | #define QT_OPEN_RDONLY O_RDONLY | ||
61 | #define QT_OPEN_WRONLY O_WRONLY | ||
62 | #define QT_OPEN_RDWR O_RDWR | ||
63 | #define QT_OPEN_CREAT O_CREAT | ||
64 | #define QT_OPEN_TRUNC O_TRUNC | ||
65 | #define QT_OPEN_APPEND O_APPEND | ||
66 | |||
67 | #define QT_SIGNAL_RETTYPEvoid | ||
68 | #define QT_SIGNAL_ARGS int | ||
69 | #define QT_SIGNAL_IGNORESIG_IGN | ||
70 | |||
71 | #define QT_SOCKLEN_T int | ||
72 | |||
73 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||
74 | #define QT_SNPRINTF ::snprintf | ||
75 | #define QT_VSNPRINTF ::vsnprintf | ||
76 | #endif | ||
77 | |||
78 | #endif // QPLATFORMDEFS_H | ||
diff --git a/mkspecs/qws/qnx6-generic-cc/qmake.conf b/mkspecs/qws/qnx6-generic-cc/qmake.conf new file mode 100644 index 0000000..b0bacf0 --- a/dev/null +++ b/mkspecs/qws/qnx6-generic-cc/qmake.conf | |||
@@ -0,0 +1,77 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for qnx-rtp-gcc | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = cc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -Bstatic -fPIC -pipe -fno-inline -fno-pack-struct -fhonor-std -fno-builtins -fexceptions -D_STRINGS_H_INCLUDED | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall | ||
18 | QMAKE_CFLAGS_WARN_OFF= -w | ||
19 | QMAKE_CFLAGS_RELEASE= -O | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses -fno-inline -fno-pack-struct | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = cc | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -DQT_POSIX_QSHM -DQT_NO_SOUND -DQT_CLEAN_NAMESPACE -DQT_NO_QWS_TRANSFORMED -DQT_NO_QWS_MOUSE_AUTO -DQT_NO_QWS_MOUSE_MANUAL -DQT_NO_QWS_VFB -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_MULTIPROCESS | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = /usr/local/include /usr/include/graphics | ||
36 | QMAKE_LIBDIR = /usr/local/lib $(QTDIR)/lib | ||
37 | QMAKE_INCDIR_X11= $(CVSDIR)/hardware/devg/public/graphics/ | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = cc | ||
45 | QMAKE_LINK_SHLIB= cc | ||
46 | QMAKE_LFLAGS = -lsocket -ldisputil | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB= -shared | ||
50 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME= -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD= | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = -lsocket -lcpp | ||
56 | QMAKE_LIBS_DYNLOAD= | ||
57 | QMAKE_LIBS_X11 = -ldisputil -lm | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD= -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD= -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
77 | |||
diff --git a/mkspecs/qws/qnx6-generic-cc/qplatformdefs.h b/mkspecs/qws/qnx6-generic-cc/qplatformdefs.h new file mode 100644 index 0000000..303e44c --- a/dev/null +++ b/mkspecs/qws/qnx6-generic-cc/qplatformdefs.h | |||
@@ -0,0 +1,82 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | #include <unistd.h> | ||
11 | |||
12 | |||
13 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
14 | |||
15 | |||
16 | #ifdef QT_THREAD_SUPPORT | ||
17 | #include <pthread.h> | ||
18 | #endif | ||
19 | |||
20 | #include <dirent.h> | ||
21 | #include <fcntl.h> | ||
22 | #include <grp.h> | ||
23 | #include <pwd.h> | ||
24 | #include <signal.h> | ||
25 | |||
26 | #include <sys/types.h> | ||
27 | #include <sys/ioctl.h> | ||
28 | #include <sys/ipc.h> | ||
29 | #include <sys/time.h> | ||
30 | #include <sys/socket.h> | ||
31 | #include <sys/stat.h> | ||
32 | #include <sys/wait.h> | ||
33 | |||
34 | // DNS header files are not fully covered by X/Open specifications. | ||
35 | // In particular nothing is said about res_* :/ | ||
36 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
37 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
38 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
39 | #include <netinet/in.h> | ||
40 | #include <arpa/nameser.h> | ||
41 | #include <resolv.h> | ||
42 | |||
43 | |||
44 | #if !defined(QT_NO_COMPAT) | ||
45 | #define QT_STATBUF struct stat | ||
46 | #define QT_STATBUF4TSTATstruct stat | ||
47 | #define QT_STAT ::stat | ||
48 | #define QT_FSTAT ::fstat | ||
49 | #define QT_STAT_REG S_IFREG | ||
50 | #define QT_STAT_DIR S_IFDIR | ||
51 | #define QT_STAT_MASK S_IFMT | ||
52 | #define QT_STAT_LNK S_IFLNK | ||
53 | #define QT_FILENO fileno | ||
54 | #define QT_OPEN ::open | ||
55 | #define QT_CLOSE ::close | ||
56 | #define QT_LSEEK ::lseek | ||
57 | #define QT_READ ::read | ||
58 | #define QT_WRITE ::write | ||
59 | #define QT_ACCESS ::access | ||
60 | #define QT_GETCWD ::getcwd | ||
61 | #define QT_CHDIR ::chdir | ||
62 | #define QT_MKDIR ::mkdir | ||
63 | #define QT_RMDIR ::rmdir | ||
64 | #define QT_OPEN_RDONLY O_RDONLY | ||
65 | #define QT_OPEN_WRONLY O_WRONLY | ||
66 | #define QT_OPEN_RDWR O_RDWR | ||
67 | #define QT_OPEN_CREAT O_CREAT | ||
68 | #define QT_OPEN_TRUNC O_TRUNC | ||
69 | #define QT_OPEN_APPEND O_APPEND | ||
70 | #endif | ||
71 | |||
72 | #define QT_SIGNAL_RETTYPEvoid | ||
73 | #define QT_SIGNAL_ARGS int | ||
74 | #define QT_SIGNAL_IGNORESIG_IGN | ||
75 | |||
76 | #define QT_SOCKLEN_T size_t | ||
77 | |||
78 | #define QT_SNPRINTF ::snprintf | ||
79 | #define QT_VSNPRINTF ::vsnprintf | ||
80 | |||
81 | |||
82 | #endif // QPLATFORMDEFS_H | ||
diff --git a/mkspecs/qws/qnx6-generic-g++/qmake.conf b/mkspecs/qws/qnx6-generic-g++/qmake.conf new file mode 100644 index 0000000..065a9fa --- a/dev/null +++ b/mkspecs/qws/qnx6-generic-g++/qmake.conf | |||
@@ -0,0 +1,77 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for qnx-rtp-gcc | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = cc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe -fno-inline -fno-pack-struct -fhonor-std -fexceptions -D_STRINGS_H_INCLUDED | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall | ||
18 | QMAKE_CFLAGS_WARN_OFF= -w | ||
19 | QMAKE_CFLAGS_RELEASE= -O | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses -fno-inline -fno-pack-struct | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = cc | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -DQT_POSIX_QSHM -DQT_NO_QWS_MULTIPROCESS -DQT_NO_SOUND -DQT_CLEAN_NAMESPACE -DQT_NO_QWS_TRANSFORMED -DQT_NO_QWS_MOUSE_AUTO -DQT_NO_QWS_MOUSE_MANUAL -DQT_NO_PROCESS -DQT_NO_QWS_VFB -DQT_NO_QWS_LINUXFB | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = /usr/local/include /usr/include/graphics | ||
36 | QMAKE_LIBDIR = /usr/local/lib $(QTDIR)/lib | ||
37 | QMAKE_INCDIR_X11= $(CVSDIR)/hardware/devg/public/graphics/ | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = cc -fhonor-std | ||
45 | QMAKE_LINK_SHLIB= cc -fhonor-std | ||
46 | QMAKE_LFLAGS = -lsocket -ldisputil | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB= -shared | ||
50 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME= -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD= | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = -lsocket | ||
56 | QMAKE_LIBS_DYNLOAD= | ||
57 | QMAKE_LIBS_X11 = -ldisputil -lm | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD= -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD= -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
77 | |||
diff --git a/mkspecs/qws/qnx6-generic-g++/qplatformdefs.h b/mkspecs/qws/qnx6-generic-g++/qplatformdefs.h new file mode 100644 index 0000000..303e44c --- a/dev/null +++ b/mkspecs/qws/qnx6-generic-g++/qplatformdefs.h | |||
@@ -0,0 +1,82 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | #include <unistd.h> | ||
11 | |||
12 | |||
13 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
14 | |||
15 | |||
16 | #ifdef QT_THREAD_SUPPORT | ||
17 | #include <pthread.h> | ||
18 | #endif | ||
19 | |||
20 | #include <dirent.h> | ||
21 | #include <fcntl.h> | ||
22 | #include <grp.h> | ||
23 | #include <pwd.h> | ||
24 | #include <signal.h> | ||
25 | |||
26 | #include <sys/types.h> | ||
27 | #include <sys/ioctl.h> | ||
28 | #include <sys/ipc.h> | ||
29 | #include <sys/time.h> | ||
30 | #include <sys/socket.h> | ||
31 | #include <sys/stat.h> | ||
32 | #include <sys/wait.h> | ||
33 | |||
34 | // DNS header files are not fully covered by X/Open specifications. | ||
35 | // In particular nothing is said about res_* :/ | ||
36 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
37 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
38 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
39 | #include <netinet/in.h> | ||
40 | #include <arpa/nameser.h> | ||
41 | #include <resolv.h> | ||
42 | |||
43 | |||
44 | #if !defined(QT_NO_COMPAT) | ||
45 | #define QT_STATBUF struct stat | ||
46 | #define QT_STATBUF4TSTATstruct stat | ||
47 | #define QT_STAT ::stat | ||
48 | #define QT_FSTAT ::fstat | ||
49 | #define QT_STAT_REG S_IFREG | ||
50 | #define QT_STAT_DIR S_IFDIR | ||
51 | #define QT_STAT_MASK S_IFMT | ||
52 | #define QT_STAT_LNK S_IFLNK | ||
53 | #define QT_FILENO fileno | ||
54 | #define QT_OPEN ::open | ||
55 | #define QT_CLOSE ::close | ||
56 | #define QT_LSEEK ::lseek | ||
57 | #define QT_READ ::read | ||
58 | #define QT_WRITE ::write | ||
59 | #define QT_ACCESS ::access | ||
60 | #define QT_GETCWD ::getcwd | ||
61 | #define QT_CHDIR ::chdir | ||
62 | #define QT_MKDIR ::mkdir | ||
63 | #define QT_RMDIR ::rmdir | ||
64 | #define QT_OPEN_RDONLY O_RDONLY | ||
65 | #define QT_OPEN_WRONLY O_WRONLY | ||
66 | #define QT_OPEN_RDWR O_RDWR | ||
67 | #define QT_OPEN_CREAT O_CREAT | ||
68 | #define QT_OPEN_TRUNC O_TRUNC | ||
69 | #define QT_OPEN_APPEND O_APPEND | ||
70 | #endif | ||
71 | |||
72 | #define QT_SIGNAL_RETTYPEvoid | ||
73 | #define QT_SIGNAL_ARGS int | ||
74 | #define QT_SIGNAL_IGNORESIG_IGN | ||
75 | |||
76 | #define QT_SOCKLEN_T size_t | ||
77 | |||
78 | #define QT_SNPRINTF ::snprintf | ||
79 | #define QT_VSNPRINTF ::vsnprintf | ||
80 | |||
81 | |||
82 | #endif // QPLATFORMDEFS_H | ||
diff --git a/mkspecs/qws/solaris-generic-g++/qmake.conf b/mkspecs/qws/solaris-generic-g++/qmake.conf new file mode 100644 index 0000000..d9e0866 --- a/dev/null +++ b/mkspecs/qws/solaris-generic-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for solaris-g++ with Qt/Embedded | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= -O2 -fno-default-inline | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = g++ | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_SOUND -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_TRANSFORMED -DQWS -fno-exceptions -fno-rtti | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = g++ | ||
45 | QMAKE_LINK_SHLIB= g++ | ||
46 | QMAKE_LFLAGS = | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB= -shared | ||
50 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME= -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD= | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = -lsocket -lnsl -lresolv | ||
56 | QMAKE_LIBS_DYNLOAD= -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD= -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD= -lthread -lrt | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cq | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/solaris-generic-g++/qplatformdefs.h b/mkspecs/qws/solaris-generic-g++/qplatformdefs.h new file mode 100644 index 0000000..a4ca615 --- a/dev/null +++ b/mkspecs/qws/solaris-generic-g++/qplatformdefs.h | |||
@@ -0,0 +1,110 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | #include <unistd.h> | ||
11 | |||
12 | |||
13 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
14 | |||
15 | |||
16 | #ifdef QT_THREAD_SUPPORT | ||
17 | #include <pthread.h> | ||
18 | #endif | ||
19 | |||
20 | #include <dirent.h> | ||
21 | #include <fcntl.h> | ||
22 | #include <grp.h> | ||
23 | #include <pwd.h> | ||
24 | #include <signal.h> | ||
25 | #include <dlfcn.h> | ||
26 | |||
27 | #include <sys/types.h> | ||
28 | #include <sys/ioctl.h> | ||
29 | #include <sys/filio.h> | ||
30 | #include <sys/ipc.h> | ||
31 | #include <sys/time.h> | ||
32 | #include <sys/shm.h> | ||
33 | #include <sys/socket.h> | ||
34 | #include <sys/stat.h> | ||
35 | #include <sys/wait.h> | ||
36 | |||
37 | // DNS header files are not fully covered by X/Open specifications. | ||
38 | // In particular nothing is said about res_* :/ | ||
39 | // On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not | ||
40 | // included by <resolv.h>. Note that <arpa/nameser.h> must be included | ||
41 | // before <resolv.h>. | ||
42 | #include <netinet/in.h> | ||
43 | #include <arpa/nameser.h> | ||
44 | #include <resolv.h> | ||
45 | |||
46 | |||
47 | #if !defined(QT_NO_COMPAT) | ||
48 | #define QT_STATBUF struct stat | ||
49 | #define QT_STATBUF4TSTATstruct stat | ||
50 | #define QT_STAT ::stat | ||
51 | #define QT_FSTAT ::fstat | ||
52 | #define QT_STAT_REG S_IFREG | ||
53 | #define QT_STAT_DIR S_IFDIR | ||
54 | #define QT_STAT_MASK S_IFMT | ||
55 | #define QT_STAT_LNK S_IFLNK | ||
56 | #define QT_FILENO fileno | ||
57 | #define QT_OPEN ::open | ||
58 | #define QT_CLOSE ::close | ||
59 | #define QT_LSEEK ::lseek | ||
60 | #define QT_READ ::read | ||
61 | #define QT_WRITE ::write | ||
62 | #define QT_ACCESS ::access | ||
63 | #define QT_GETCWD ::getcwd | ||
64 | #define QT_CHDIR ::chdir | ||
65 | #define QT_MKDIR ::mkdir | ||
66 | #define QT_RMDIR ::rmdir | ||
67 | #define QT_OPEN_RDONLY O_RDONLY | ||
68 | #define QT_OPEN_WRONLY O_WRONLY | ||
69 | #define QT_OPEN_RDWR O_RDWR | ||
70 | #define QT_OPEN_CREAT O_CREAT | ||
71 | #define QT_OPEN_TRUNC O_TRUNC | ||
72 | #define QT_OPEN_APPEND O_APPEND | ||
73 | #endif | ||
74 | |||
75 | #define QT_SIGNAL_RETTYPEvoid | ||
76 | #define QT_SIGNAL_ARGS int | ||
77 | #define QT_SIGNAL_IGNORESIG_IGN | ||
78 | |||
79 | #if !defined(_XOPEN_UNIX) | ||
80 | // Function usleep() is in C library but not in header files on Solaris 2.5.1. | ||
81 | // Not really a surprise, usleep() is specified by XPG4v2 and XPG4v2 is only | ||
82 | // supported by Solaris 2.6 and better. | ||
83 | // So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is | ||
84 | // not defined by <unistd.h> when XPG4v2 is not supported. | ||
85 | typedef unsigned int useconds_t; | ||
86 | extern "C" int usleep(useconds_t); | ||
87 | #endif | ||
88 | |||
89 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) && (_XOPEN_VERSION-0 >= 500) | ||
90 | // on Solaris 7 and better with specific feature test macros | ||
91 | #define QT_SOCKLEN_T socklen_t | ||
92 | #elif defined(_XOPEN_SOURCE_EXTENDED) && defined(_XOPEN_UNIX) | ||
93 | // on Solaris 2.6 and better with specific feature test macros | ||
94 | #define QT_SOCKLEN_T size_t | ||
95 | #else | ||
96 | // always this case in practice | ||
97 | #define QT_SOCKLEN_T int | ||
98 | #endif | ||
99 | |||
100 | #if defined(_XOPEN_UNIX) | ||
101 | // Supported by Solaris 2.6 and better. XPG4v2 and XPG4v2 is also supported | ||
102 | // by Solaris 2.6 and better. So we are trying to detect Solaris 2.6 using | ||
103 | // macro _XOPEN_UNIX which is not defined by <unistd.h> when XPG4v2 is not | ||
104 | // supported. | ||
105 | #define QT_SNPRINTF ::snprintf | ||
106 | #define QT_VSNPRINTF ::vsnprintf | ||
107 | #endif | ||
108 | |||
109 | |||
110 | #endif // QPLATFORMDEFS_H | ||