File: common.pri

package info (click to toggle)
ffdiaporama 1.5-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,772 kB
  • ctags: 3,454
  • sloc: cpp: 30,926; xml: 183; makefile: 10
file content (81 lines) | stat: -rwxr-xr-x 4,575 bytes parent folder | download | duplicates (2)
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
#--------------------------------------------------
# COMMON PROJECT FILES TO DEFINE BUILD DIRECTORIES
# AND COMMON INCLUSIONS (INCLUDES AND LIBS)
#--------------------------------------------------

DEFINES +=SHARE_DIR=\\\"$$PREFIX\\\"

QMAKE_LFLAGS += ${LDFLAGS}
QMAKE_CXXFLAGS += ${CPPFLAGS}

unix {
    CONFIG(release, debug|release) {
        DESTDIR         += ../../../build
        OBJECTS_DIR     += ../../../build/src/$$TARGET
        MOC_DIR         += ../../../build/src/$$TARGET
        RCC_DIR         += ../../../build/src/$$TARGET
        UI_DIR          += ../../../build/src/$$TARGET
        UI_HEADERS_DIR  += ../../../build/src/$$TARGET
        UI_SOURCES_DIR  += ../../../build/src/$$TARGET
    }
    CONFIG(debug, debug|release) {
        DESTDIR         += ../../../debugbuild
        OBJECTS_DIR     += ../../../debugbuild/src/$$TARGET
        MOC_DIR         += ../../../debugbuild/src/$$TARGET
        RCC_DIR         += ../../../debugbuild/src/$$TARGET
        UI_DIR          += ../../../debugbuild/src/$$TARGET
        UI_HEADERS_DIR  += ../../../debugbuild/src/$$TARGET
        UI_SOURCES_DIR  += ../../../debugbuild/src/$$TARGET
        INCLUDEPATH     += ../../../debugbuild/src/$$TARGET
        DEFINES         += DEBUG_MODE
    }

    INCLUDEPATH += /usr/include/ffmpeg/                                     # Specific for Fedora
    INCLUDEPATH += /usr/include/SDL
    LIBS        += -lexiv2                                                  #------ Exiv2
    LIBS        += -lqimageblitz                                            #------ QImageBlitz
}

win32 {
    CONFIG(release, debug|release) {
        DESTDIR         += ..\\..\\..\\winbuild
        OBJECTS_DIR     += ..\\..\\..\\winbuild\\src\\$$TARGET
        MOC_DIR         += ..\\..\\..\\winbuild\\src\\$$TARGET
        RCC_DIR         += ..\\..\\..\\winbuild\\src\\$$TARGET
        UI_DIR          += ..\\..\\..\\winbuild\\src\\$$TARGET
        UI_HEADERS_DIR  += ..\\..\\..\\winbuild\\src\\$$TARGET
        UI_SOURCES_DIR  += ..\\..\\..\\winbuild\\src\\$$TARGET
    }
    CONFIG(debug, debug|release) {
        DESTDIR         += ..\\..\\..\\windebugbuild
        OBJECTS_DIR     += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        MOC_DIR         += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        RCC_DIR         += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        UI_DIR          += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        UI_HEADERS_DIR  += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        UI_SOURCES_DIR  += ..\\..\\..\\windebugbuild\\src\\$$TARGET
        DEFINES         += DEBUG_MODE
    }

    #INCLUDEPATH += C:\\ffDiaporama-trunk-Qt\\libav-win32\\usr\\include      #------ libav library path
    INCLUDEPATH += C:\\ffDiaporama-trunk-Qt\\ffmpeg-win32-dev\\include      #------ ffmpeg library path
    INCLUDEPATH += C:\\ffDiaporama-trunk-Qt\\SDL-1.2.15\\include\\SDL       #------ SDL library path
    INCLUDEPATH += C:\\ffDiaporama-trunk-Qt\\ThirdLib\\include              #------ TAGlib and EXIV2 library path
    INCLUDEPATH += C:\\ffDiaporama-trunk-Qt\\qimageblitz-0.0.6\\blitz       #------ QImageBlitz
    INCLUDEPATH += .                                                        #------ I don't know why, but windows need this !

    #LIBS        += -L"C:\\ffDiaporama-trunk-Qt\\libav-win32\\usr\\bin"      #------ libav library path
    LIBS        += -L"C:\\ffDiaporama-trunk-Qt\\ffmpeg-win32-dev\\lib"      #------ ffmpeg library path
    LIBS        += -L"C:\\ffDiaporama-trunk-Qt\\SDL-1.2.15\\lib"            #------ SDL library path
    LIBS        += -L"C:\\ffDiaporama-trunk-Qt\\ThirdLib\\lib"              #------ library path (dynamic version) of third party libs (exiv2lib and taglib)
    LIBS        += -L"C:\\ffDiaporama-trunk-Qt\\qimageblitz-0.0.6\\bin\\bin"#------ QImageBlitz
    LIBS        += -lgdi32 -lkernel32 -luser32 -lshell32 -ladvapi32         #------ Windows GDI libs link
    LIBS        += -llibexiv2                                               #------ Exiv2 (dynamic version, so not -llibexpat -lxmpsdk -lzlib1)
    LIBS        += -llibQImageBlitz                                         #------ QImageBlitz
    LIBS        += -lswresample                                             #------ LibAV swresample
}

#---- Libs for windows and linux
LIBS        += -ltag                                                        #------ TAGlib
LIBS	    += -lSDL                                                        #------ SDL
LIBS        += -lavformat -lavcodec -lavutil -lswscale -lavfilter -lavresample #------ libav lib link