-
Notifications
You must be signed in to change notification settings - Fork 0
/
launcher.pro
89 lines (78 loc) · 2.34 KB
/
launcher.pro
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
88
89
TEMPLATE = app
LANGUAGE = C++
TARGETDEPS += ${REG_STEER_HOME}/lib32/libReG_Steer.a
TARGETDEPS += ${REG_STEER_HOME}/lib32/libReG_Steer_Utils.a
TARGETDEPS += ${REG_STEER_HOME}/lib32/libReG_Steer_SOAP.a
CONFIG += qt warn_on release thread opengl x11
# Check that ReG steering env. is setup
STEER_HOME = $$(REG_STEER_HOME)
isEmpty( STEER_HOME ){
error("REG_STEER_HOME environment variable not set")
}
LIBS += -lxml2 -L${REG_STEER_HOME}/lib32
# We check for existance of ReG_Steer_Utils library as indication
# of whether we have version 1.2 or version 2.0+ of steering
# library
exists( $$(REG_STEER_HOME)/lib32/libReG_Steer_Utils* ){
message("ReG_Steer_Utils library found")
DEFINES += WITH_OPENSSL
LIBS += -lReG_Steer_Utils -lssl -lcrypto
}
LIBS += -lReG_Steer
exists( $$(REG_STEER_HOME)/lib32/libReG_Steer_SOAP* ){
message("ReG_Steer_SOAP library found")
LIBS += -lReG_Steer_SOAP
}
INCLUDEPATH += include /usr/include/libxml2 ${REG_STEER_HOME}/include
# The $$() notation ensures that the environment variable
# is expanded and used in the qmake expression
!exists( $$(HOME)/.realitygrid/launcher.conf ){
message("launcher.conf isn't already installed")
CONF_FILES = conf/launcher.conf
}
!exists( $$(HOME)/.realitygrid/security.conf ){
message("security.conf isn't already installed")
isEmpty(CONF_FILES){
CONF_FILES = conf/security.conf
}
else{
CONF_FILES += conf/security.conf
}
}
!isEmpty( CONF_FILES ){
message("Creating install target for config file(s)")
config_files.path = ${HOME}/.realitygrid
config_files.files = $$join(CONF_FILES, " ", " ")
INSTALLS += config_files
}
HEADERS += include/LauncherConfig.h \
include/Gridifier.h \
include/Utility.h \
include/CheckPointTree.h \
include/CheckPointTreeItem.h \
include/chkptvariableform.h \
include/JobStatusThread.h \
include/ProgressBarThread.h \
include/jobmetadata.h \
include/qmdcodec.h
SOURCES += src/main.cpp \
src/LauncherConfig.cpp \
src/Gridifier.cpp \
src/Utility.cpp \
src/CheckPointTree.cpp \
src/CheckPointTreeItem.cpp \
src/chkptvariableform.cpp \
src/JobStatusThread.cpp \
src/ProgressBarThread.cpp \
src/jobmetadata.cpp \
src/qmdcodec.cpp
FORMS = ui/reglauncher.ui \
ui/componentlauncher.ui \
ui/RunningJobsDialog.ui \
ui/textviewdialog.ui \
ui/GlobalParamConstructionForm.ui
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}