summaryrefslogtreecommitdiff
path: root/src/src.pro
blob: 134b9c7e02e9c445bd80d2ec7ab6c90608c23f58 (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
84
85
86
87
TEMPLATE = lib
CONFIG += dll
#CONFIG += staticlib
QT -= gui
TARGET = SerialPort

win32 {
    DEFINES += SERIALPORT_BUILD SERIALPORT_SHARED
}

INCLUDEPATH += ../include
HEADERS += \
    ../include/serialport.h \
    ../include/serialportinfo.h

HEADERS += \
    serialport_p.h \
    ringbuffer_p.h \
    serialportengine_p.h \
    serialportinfo_p.h

SOURCES += \
    serialport.cpp \
    serialportinfo.cpp

win32 {
    HEADERS += \
        serialportengine_p_win.h
    SOURCES += \
        serialportengine_p_win.cpp \
        serialportinfo_win.cpp

    !wince*: LIBS += -lsetupapi -luuid -ladvapi32
}


symbian {
    MMP_RULES += EXPORTUNFROZEN
    #MMP_RULES += DEBUGGABLE_UDEBONLY
    TARGET.UID3 = 0xE7E62DFD
    TARGET.CAPABILITY =
    TARGET.EPOCALLOWDLLDATA = 1
    addFiles.sources = SerialPort.dll
    addFiles.path = !:/sys/bin
    DEPLOYMENT += addFiles
    
    # FIXME !!!
    #INCLUDEPATH += c:/Nokia/devices/Nokia_Symbian3_SDK_v1.0/epoc32/include/platform
    INCLUDEPATH += c:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform

    HEADERS += \
        serialportengine_p_symbian.h
    SOURCES += \
        serialportengine_p_symbian.cpp \
        serialportinfo_symbian.cpp
    LIBS += -leuser -lefsrv -lc32
}

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
    
    HEADERS += \
        ttylocker_p_unix.h \
        serialportengine_p_unix.h
    SOURCES += \
        ttylocker_p_unix.cpp \
        serialportengine_p_unix.cpp

    macx {
        SOURCES += serialportinfo_mac.cpp
        LIBS += -framework IOKit -framework CoreFoundation
    } else {
        SOURCES += serialportinfo_unix.cpp
        contains( DEFINES, HAVE_UDEV ) {
            LIBS += -ludev
        }
    }
}