1 !isEmpty(QMAKE_INCDIR_EGL): INCLUDEPATH += $$QMAKE_INCDIR_EGL |
1 # On UNIX, we can use config tests to figure out if egl.h is in |
2 !isEmpty(QMAKE_LIBDIR_EGL): LIBS += -L$$QMAKE_LIBDIR_EGL |
2 # EGL/egl.h or GLES/egl.h. Sadly, there are no config tests on WinCE |
3 !isEmpty(QMAKE_LIBS_EGL): LIBS += $$QMAKE_LIBS_EGL |
3 # so we have to assume that for GLES 1.1 (CL), the EGL header is in |
|
4 # GLES/egl.h. We also assume there is no separate libEGL.lib library, |
|
5 # so we use the GL library instead. |
|
6 |
|
7 wince*:contains(QT_CONFIG, opengles1) { |
|
8 INCLUDEPATH += $$QMAKE_INCDIR_OPENGL_ES1 |
|
9 LIBS_PRIVATE += $$QMAKE_LIBS_OPENGL_ES1 |
|
10 for(p, QMAKE_LIBDIR_OPENGL_ES1) { |
|
11 exists($$p):LIBS_PRIVATE += -L$$p |
|
12 } |
|
13 DEFINES += QT_GLES_EGL |
|
14 } else:wince*:contains(QT_CONFIG, opengles1cl) { |
|
15 INCLUDEPATH += $$QMAKE_INCDIR_OPENGL_ES1CL |
|
16 LIBS_PRIVATE += $$QMAKE_LIBS_OPENGL_ES1CL |
|
17 LIBS += $$QMAKE_LFLAGS_EGL |
|
18 for(p, QMAKE_LIBDIR_OPENGL_ES1CL) { |
|
19 exists($$p):LIBS_PRIVATE += -L$$p |
|
20 } |
|
21 DEFINES += QT_GLES_EGL |
|
22 } else { |
|
23 INCLUDEPATH += $$QMAKE_INCDIR_EGL |
|
24 LIBS_PRIVATE += $$QMAKE_LIBS_EGL |
|
25 LIBS += $$QMAKE_LFLAGS_EGL |
|
26 for(p, QMAKE_LIBDIR_EGL) { |
|
27 exists($$p):LIBS_PRIVATE += -L$$p |
|
28 } |
|
29 } |