-
Notifications
You must be signed in to change notification settings - Fork 8
/
mafCommon.pri.in
69 lines (57 loc) · 2.07 KB
/
mafCommon.pri.in
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
###################################################
# this file defines the common variables and/or commands
# used into the mafInstallModule.pri (used by libraries)
# mafInstallTest.pri (used by test suite executables) and
# Example applications.
# console commands definition
win32 {
CP_CMD = copy
MV_CMD = rename
}
!win32 {
CP_CMD = cp
MV_CMD = mv
}
# Define the build extension for the library or the executable.
BUILD_DIR = Release
CONFIG(debug, debug|release) {
unix{
BUILD_EXT = _debug
}
win32{
BUILD_EXT = _d
}
BUILD_DIR = Debug
}
TARGET = $$join(TARGET,,,$$BUILD_EXT)
INSTALL_DIR = @@MAF_INSTALL_BASE@@
# Initialize the directory that will contains the binary
# this directory takes in account of the definition of
# the environment variable MAF3_INSTALL_DIR
# variable containing the library prefix
LIB_PREFIX = lib
win32 {
DESTDIR = $$INSTALL_DIR\bin\\$$BUILD_DIR
LIB_PREFIX = ""
}
unix {
DESTDIR = $$INSTALL_DIR/bin/$$BUILD_DIR
}
# Definitions of gcov and lcov flags.
maf_use_lcov {
QMAKE_CXXFLAGS_DEBUG += -fprofile-arcs
QMAKE_CXXFLAGS_DEBUG += -ftest-coverage
QMAKE_LFLAGS_DEBUG += -fprofile-arcs
QMAKE_LFLAGS_DEBUG += -ftest-coverage
}
# Add the Makefile to the clean command
QMAKE_CLEAN += ./MakeFile
# definitions of variable containing the MAF3 Framework libraries needed when the framework is deployed
MAF_CORE = $$DESTDIR/$${LIB_PREFIX}mafCore$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_EVENTBUS = $$DESTDIR/$${LIB_PREFIX}mafEventBus$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_QA = $$DESTDIR/$${LIB_PREFIX}mafQA$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_RESOURCES = $$DESTDIR/$${LIB_PREFIX}mafResources$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_SERIALIZATION = $$DESTDIR/$${LIB_PREFIX}mafSerialization$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_TIMESPACE = $$DESTDIR/$${LIB_PREFIX}mafTimeSpace$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_APPLICATIONLOGIC = $$DESTDIR/$${LIB_PREFIX}mafApplicationLogic$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB
MAF_GUI = $$DESTDIR/$${LIB_PREFIX}mafGUI$${BUILD_EXT}.$$QMAKE_EXTENSION_SHLIB