summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/embedded/qt_embedded.pri
blob: 5bdbdefd492752ca8261bcf38d897f0c573cc6d6 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Qt/Embedded Drivers

embedded {
	EMBEDDED_P = embedded

	HEADERS += $$EMBEDDED_P/tqgfxdriverinterface_p.h \
		    $$EMBEDDED_H/tqgfxdriverplugin_qws.h \
		    $$EMBEDDED_H/tqgfxdriverfactory_qws.h \
		    $$EMBEDDED_H/tqkbd_qws.h \
		    $$EMBEDDED_P/tqkbddriverinterface_p.h \
		    $$EMBEDDED_H/tqkbddriverplugin_qws.h \
		    $$EMBEDDED_H/tqkbddriverfactory_qws.h \
		    $$EMBEDDED_H/tqmouse_qws.h \
		    $$EMBEDDED_P/tqmousedriverinterface_p.h \
		    $$EMBEDDED_H/tqmousedriverplugin_qws.h \
		    $$EMBEDDED_H/tqmousedriverfactory_qws.h

	SOURCES += $$EMBEDDED_CPP/tqgfxdriverplugin_qws.cpp \
		    $$EMBEDDED_CPP/tqgfxdriverfactory_qws.cpp \
		    $$EMBEDDED_CPP/tqkbd_qws.cpp \
		    $$EMBEDDED_CPP/tqkbddriverplugin_qws.cpp \
		    $$EMBEDDED_CPP/tqkbddriverfactory_qws.cpp \
		    $$EMBEDDED_CPP/tqmouse_qws.cpp \
		    $$EMBEDDED_CPP/tqmousedriverplugin_qws.cpp \
		    $$EMBEDDED_CPP/tqmousedriverfactory_qws.cpp

#
# Graphics drivers
#
        linux-* {
	        HEADERS += $$EMBEDDED_H/tqgfxlinuxfb_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxlinuxfb_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_LINUXFB

	tqcontains( gfx-drivers, qvfb ) {
		HEADERS += $$EMBEDDED_H/tqgfxvfb_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxvfb_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_VFB

	tqcontains( gfx-drivers, vnc ) {
		HEADERS += $$EMBEDDED_H/tqgfxvnc_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxvnc_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_VNC

	!tqcontains( DEFINES, TQT_NO_QWS_LINUXFB):tqcontains( gfx-drivers, vga16 ) {
		HEADERS += $$EMBEDDED_H/tqgfxvga16_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxvga16_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_VGA16

	tqcontains( gfx-drivers, transformed ) {
		HEADERS += $$EMBEDDED_H/tqgfxtransformed_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxtransformed_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_TRANSFORMED

	tqcontains( gfx-drivers, snap ) {
        exists( $(SCITECH)/include/snap/graphics.h) {
    		HEADERS += $$EMBEDDED_H/tqgfxsnap_qws.h
    		SOURCES += $$EMBEDDED_CPP/tqgfxsnap_qws.cpp
            INCLUDEPATH += $(SCITECH)/include
            debug:LIBS  += -L$(SCITECH)/lib/debug/linux/gcc/x86/so -lpm
            else:LIBS   += -L$(SCITECH)/lib/release/linux/gcc/x86/so -lpm
        }
        else {
            message("SciTech SNAP SDK is not properly set up! Please make sure the SCITECH")
            message("environment variable is pointing to the SciTech SNAP SDK.")
            error("Please fix and re-build the makefiles.")
        }
	}
	else:DEFINES += TQT_NO_QWS_SNAP

	tqcontains( gfx-drivers, mach64 ) {
		HEADERS += $$EMBEDDED_H/tqgfxmach64_qws.h \
			   $$EMBEDDED_H/tqgfxmach64defs_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxmach64_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MACH64

	tqcontains( gfx-drivers, voodoo ) {
		HEADERS += $$EMBEDDED_H/tqgfxvoodoo_qws.h \
			   $$EMBEDDED_H/tqgfxvoodoodefs_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxvoodoo_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_VOODOO3

	tqcontains( gfx-drivers, matrox ) {
		HEADERS += $$EMBEDDED_H/tqgfxmatrox_qws.h \
			   $$EMBEDDED_H/tqgfxmatroxdefs_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxmatrox_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MATROX

	tqcontains( gfx-drivers, shadowfb ) {
		HEADERS += $$EMBEDDED_H/tqgfxshadow_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxshadow_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_SHADOWFB

	tqcontains( gfx-drivers, repeater ) {
		HEADERS += $$EMBEDDED_H/tqgfxrepeater_qws.h
		SOURCES += $$EMBEDDED_CPP/tqgfxrepeater_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_REPEATER

#
# Keyboard drivers
#

	tqcontains( kbd-drivers, sl5000 ) {
		HEADERS +=$$EMBEDDED_H/tqkbdsl5000_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdsl5000_qws.cpp
		!tqcontains( kbd-drivers, tty ) {
		    kbd-drivers += tty
		}
	}
	else:DEFINES += TQT_NO_QWS_KBD_SL5000

	tqcontains( kbd-drivers, tty ) {
		HEADERS +=$$EMBEDDED_H/tqkbdtty_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdtty_qws.cpp
		!tqcontains( kbd-drivers, pc101 ) {
		    kbd-drivers += pc101
		}
	}
	else:DEFINES += TQT_NO_QWS_KBD_TTY

	tqcontains( kbd-drivers, usb ) {
		HEADERS +=$$EMBEDDED_H/tqkbdusb_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdusb_qws.cpp
		!tqcontains( kbd-drivers, pc101 ) {
		    kbd-drivers += pc101
		}
	}
	else:DEFINES += TQT_NO_QWS_KBD_USB

	tqcontains( kbd-drivers, pc101 ) {
		HEADERS +=$$EMBEDDED_H/tqkbdpc101_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdpc101_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_KBD_PC101

	tqcontains( kbd-drivers, yopy ) {
		HEADERS +=$$EMBEDDED_H/tqkbdyopy_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdyopy_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_KBD_YOPY

	tqcontains( kbd-drivers, vr41xx ) {
		HEADERS +=$$EMBEDDED_H/tqkbdvr41xx_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqkbdvr41xx_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_KBD_VR41

#
# Mouse drivers
#

	tqcontains( mouse-drivers, pc ) {
		HEADERS +=$$EMBEDDED_H/tqmousepc_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqmousepc_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MOUSE_PC

	tqcontains( mouse-drivers, bus ) {
		HEADERS +=$$EMBEDDED_H/tqmousebus_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqmousebus_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MOUSE_BUS

	tqcontains( mouse-drivers, linuxtp ) {
		HEADERS +=$$EMBEDDED_H/tqmouselinuxtp_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqmouselinuxtp_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MOUSE_LINUXTP

	tqcontains( mouse-drivers, vr41xx ) {
		HEADERS +=$$EMBEDDED_H/tqmousevr41xx_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqmousevr41xx_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MOUSE_VR41

	tqcontains( mouse-drivers, yopy ) {
		HEADERS +=$$EMBEDDED_H/tqmouseyopy_qws.h
		SOURCES +=$$EMBEDDED_CPP/tqmouseyopy_qws.cpp
	}
	else:DEFINES += TQT_NO_QWS_MOUSE_YOPY
}