1include(../common/common.pri)
2DEF_FILE_TARGET = $${TARGET}
3TARGET = $$qtLibraryTarget($${LIBEGL_NAME})
4winrt: QMAKE_USE_PRIVATE += d3d11
5QMAKE_USE_PRIVATE += dxguid
6
7LIBS_PRIVATE += -L$$QT_BUILD_TREE/lib -l$$qtLibraryTarget($${LIBGLESV2_NAME})
8
9DEFINES += GL_APICALL= GL_GLEXT_PROTOTYPES= EGLAPI= LIBEGL_IMPLEMENTATION
10
11HEADERS += \
12    $$ANGLE_DIR/src/libEGL/resource.h
13
14SOURCES += \
15    $$ANGLE_DIR/src/libEGL/libEGL.cpp
16
17!static {
18    DEF_FILE = $$ANGLE_DIR/src/libEGL/$${DEF_FILE_TARGET}.def
19    mingw:equals(QT_ARCH, i386): DEF_FILE = $$ANGLE_DIR/src/libEGL/$${DEF_FILE_TARGET}_mingw32.def
20}
21
22egl_headers.files = \
23    $$ANGLE_DIR/include/EGL/egl.h \
24    $$ANGLE_DIR/include/EGL/eglext.h \
25    $$ANGLE_DIR/include/EGL/eglext_angle.h \
26    $$ANGLE_DIR/include/EGL/eglplatform.h
27egl_headers.path = $$[QT_INSTALL_HEADERS]/QtANGLE/EGL
28INSTALLS += egl_headers
29