~renatofilho/buteo-syncfw/more-verbose

« back to all changes in this revision

Viewing changes to libsyncpluginmgr/libsyncpluginmgr.pro

  • Committer: Sergey Gerasimenko
  • Date: 2010-06-29 12:51:21 UTC
  • Revision ID: git-v1:cd8dab07b102ac96752ece4f3cde5fc62697d717
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEMPLATE = lib
 
2
 
 
3
VER_MAJ = 0
 
4
VER_MIN = 4
 
5
VER_PAT = 4
 
6
 
 
7
 
 
8
TARGET = syncpluginmgr
 
9
 
 
10
DEPENDPATH += .
 
11
 
 
12
INCLUDEPATH += . \
 
13
    .. \
 
14
    ../libsynccommon \
 
15
    ../libsyncprofile
 
16
 
 
17
QMAKE_LFLAGS += -ldl
 
18
 
 
19
CONFIG += dll debug silent
 
20
 
 
21
QT+=sql
 
22
QT -= gui
 
23
 
 
24
# Input
 
25
HEADERS += ClientPlugin.h \
 
26
        PluginCbInterface.h \
 
27
        PluginManager.h \
 
28
        ServerPlugin.h \
 
29
        StorageItem.h \
 
30
        StoragePlugin.h \
 
31
        SyncPluginBase.h \
 
32
    DeletedItemsIdStorage.h   
 
33
 
 
34
SOURCES += ClientPlugin.cpp \
 
35
        PluginManager.cpp \
 
36
        ServerPlugin.cpp \
 
37
        StorageItem.cpp \
 
38
        StoragePlugin.cpp \
 
39
        SyncPluginBase.cpp \
 
40
    DeletedItemsIdStorage.cpp
 
41
 
 
42
QMAKE_CXXFLAGS = -Wall \
 
43
    -g \
 
44
    -Wno-cast-align \
 
45
    -O2 -finline-functions
 
46
 
 
47
 
 
48
 
 
49
# clean
 
50
QMAKE_CLEAN += $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
 
51
 
 
52
QMAKE_CLEAN += $(OBJECTS_DIR)/moc_*
 
53
 
 
54
# install
 
55
target.path = /usr/lib/
 
56
headers.path = /usr/include/libsyncpluginmgr
 
57
headers.files = ClientPlugin.h \
 
58
    PluginCbInterface.h \
 
59
    PluginManager.h \
 
60
    ServerPlugin.h \
 
61
    StorageItem.h \
 
62
    StoragePlugin.h \
 
63
    SyncPluginBase.h \
 
64
    DeletedItemsIdStorage.h
 
65
INSTALLS += target headers
 
66
 
 
67
# #####################################################################
 
68
# make coverage (debug)
 
69
# #####################################################################
 
70
coverage.CONFIG += recursive
 
71
QMAKE_EXTRA_TARGETS += coverage
 
72
CONFIG(debug,debug|release){
 
73
    QMAKE_EXTRA_TARGETS += cov_cxxflags \
 
74
                          cov_lflags
 
75
    cov_cxxflags.target = coverage
 
76
    cov_cxxflags.depends = CXXFLAGS \
 
77
         += \
 
78
        -fprofile-arcs \
 
79
        -ftest-coverage
 
80
    cov_lflags.target = coverage
 
81
    cov_lflags.depends = LFLAGS \
 
82
        += \
 
83
        -fprofile-arcs \
 
84
        -ftest-coverage
 
85
     
 
86
    coverage.commands = @echo \
 
87
        "Built with coverage support..."
 
88
    build_pass|!debug_and_release : coverage.depends = all
 
89
    QMAKE_CLEAN += $(OBJECTS_DIR)/*.gcda \
 
90
        $(OBJECTS_DIR)/*.gcno \
 
91
        $(OBJECTS_DIR)/*.gcov
 
92
}