1TEMPLATE = app 2TARGET = qglwtextureshare 3QT += opengl 4 5# Add console to the CONFIG to see debug messages printed in 6# the console on Windows 7# CONFIG += console 8DESTDIR = ./debug 9DEFINES += UNICODE QT_THREAD_SUPPORT QT_CORE_LIB QT_GUI_LIB 10CONFIG += link_pkgconfig 11PKGCONFIG=gstreamer-1.0 gstreamer-video-1.0 gstreamer-gl-1.0 12 13win32 { 14DEFINES += WIN32 15INCLUDEPATH += \ 16 C:/gstreamer/include \ 17 C:/gstreamer/include/libxml2 \ 18 C:/gstreamer/include/glib-2.0 \ 19 C:/gstreamer/lib/glib-2.0/include \ 20 C:/gstreamer/include/gstreamer-1.0 21LIBS += -L"C:/gstreamer/lib" \ 22 -L"C:/gstreamer/bin" \ 23 -lgstreamer-1.0 \ 24 -lgstgl-1.0 \ 25 -lgstvideo-1.0 \ 26 -lglib-2.0 \ 27 -lgmodule-2.0 \ 28 -lgobject-2.0 \ 29 -lgthread-2.0 \ 30 -lgstvideo-1.0 \ 31 -lopengl32 \ 32 -lglu32 33} 34unix:!mac { 35 DEFINES += UNIX 36 LIBS += \ 37 -lgstvideo-1.0 \ 38 -lgstgl-1.0 \ 39 -lGLU \ 40 -lGL 41 QT += x11extras 42} 43mac { 44 DEFINES += MACOSX 45 INCLUDEPATH += /opt/local/include/ \ 46 /opt/local/include/gstreamer-1.0/ \ 47 /opt/local/include/glib-2.0/ \ 48 /opt/local/lib/glib-2.0/include \ 49 /opt/local/include/libxml2 50 LIBS += -L/opt/local/lib \ 51 -lgstreamer-1.0 \ 52 -lgstapp-1.0 \ 53 -lgstvideo-1.0 \ 54 -lglib-2.0 \ 55 -lgobject-2.0 \ 56 -lcxcore \ 57 -lcvaux \ 58 -lcv 59 OBJECTIVE_SOURCES += cocoa_utils.mm 60 LIBS += -framework AppKit 61} 62DEPENDPATH += . 63 64# Header files 65HEADERS += gstthread.h \ 66 pipeline.h \ 67 qglrenderer.h \ 68 AsyncQueue.h \ 69 70# Source files 71SOURCES += gstthread.cpp \ 72 main.cpp \ 73 pipeline.cpp \ 74 qglrenderer.cpp 75 76DEPENDPATH += . 77MOC_DIR += ./GeneratedFiles/debug 78OBJECTS_DIR += debug 79UI_DIR += ./GeneratedFiles 80RCC_DIR += ./GeneratedFiles 81