summaryrefslogtreecommitdiff
path: root/tests/examples/gl/qt/qglwtextureshare/qglwtextureshare.pro
blob: 13014ac1109a24a9a9504bb50391200d506217be (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
TEMPLATE = app
TARGET = qglwtextureshare
QT += opengl

# Add console to the CONFIG to see debug messages printed in 
# the console on Windows
# CONFIG += console
DEFINES += UNICODE QT_THREAD_SUPPORT QT_CORE_LIB QT_GUI_LIB

win32 {
DEFINES += WIN32
INCLUDEPATH += \
    C:/gstreamer/include \
    C:/gstreamer/include/libxml2 \
    C:/gstreamer/include/glib-2.0 \
    C:/gstreamer/lib/glib-2.0/include \
    C:/gstreamer/include/gstreamer-1.0
LIBS += -L"C:/gstreamer/lib" \
    -L"C:/gstreamer/bin" \
    -lgstreamer-1.0 \
    -lgstvideo-1.0 \
    -lglib-2.0 \
    -lgmodule-2.0 \
    -lgobject-2.0 \
    -lgthread-2.0 \
    -lgstvideo-1.0 \
    -lopengl32 \
    -lglu32
}
unix:!mac {
    DEFINES += UNIX
    INCLUDEPATH += /home/matt/Projects/jhbuild/native/usr/include/gstreamer-1.0 \
        /home/matt/Projects/jhbuild/native/usr/include/glib-2.0 \
        /home/matt/Projects/jhbuild/native/usr/lib/glib-2.0/include \
        /usr/include/gstreamer-1.0 \
        /usr/local/include/gstreamer-1.0 \
        /usr/include/glib-2.0 \
        /usr/lib/glib-2.0/include \
        /usr/include/libxml2
    LIBS += -L/home/matt/Projects/jhbuild/native/usr/lib \
        -lgstreamer-1.0 \
        -lgstvideo-1.0 \
        -lglib-2.0 \
        -lgmodule-2.0 \
        -lgobject-2.0 \
        -lgthread-2.0 \
        -lgstgl-1.0 \
        -lGLU \
        -lGL
}
mac {
    DEFINES += MACOSX
    INCLUDEPATH += /opt/local/include/ \
        /opt/local/include/gstreamer-1.0/ \
        /opt/local/include/glib-2.0/ \
        /opt/local/lib/glib-2.0/include \
        /opt/local/include/libxml2
    LIBS += -L/opt/local/lib \
        -lgstreamer-1.0 \
        -lgstapp-1.0 \
        -lgstvideo-1.0 \
        -lglib-2.0 \
        -lgobject-2.0 \
        -lcxcore \
        -lcvaux \
        -lcv
    OBJECTIVE_SOURCES +=  cocoa_utils.mm
    LIBS += -framework AppKit
}
DEPENDPATH += .

# Header files
HEADERS += gstthread.h \
    pipeline.h \
    qglrenderer.h \
    AsyncQueue.h \
    glcontextid.h

# Source files
SOURCES += gstthread.cpp \
    main.cpp \
    pipeline.cpp \
    qglrenderer.cpp