-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpenSS-CLI.pri
More file actions
72 lines (61 loc) · 2.67 KB
/
OpenSS-CLI.pri
File metadata and controls
72 lines (61 loc) · 2.67 KB
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
# This file is part of the Open|SpeedShop Graphical User Interface
# Copyright (C) 2010-2013 Argo Navis Technologies, LLC
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
!isEmpty(OPENSS_PRI_INCLUDED):error("OpenSS-CLI.pri already included")
OPENSS_PRI_INCLUDED = 1
###########################
# LIBRARY & INCLUDE PATHS #
###########################
!win32 {
isEmpty(LIBOPENSS_INC) {
warning()
warning("The LIBOPENSS_INC variable must be set to the location of the Open|SpeedShop framework includes in order to " \
"interface directly with Open|SpeedShop command-line interface (CLI) functionality.")
warning()
} else {
INCLUDEPATH += $$quote($${LIBOPENSS_INC}/include)
DEPENDPATH += $$quote($${LIBOPENSS_INC}/include)
isEmpty(OPENSS_LIBPATH): OPENSS_LIBPATH = $${OPENSS_PATH}
OPENSS_LIBFILES += openss-cli
OPENSS_LIBFILES += openss-framework
OPENSS_LIBFILES += openss-framework-cbtf
OPENSS_LIBFILES += openss-framework-symtabapi
OPENSS_LIBFILES += openss-message
OPENSS_LIBFILES += openss-queries
OPENSS_LIBFILES += openss-queries-cuda
for(OPENSS_LIBFILE, OPENSS_LIBFILES) {
INCLUDEPATH += $$quote($${LIBOPENSS_INC}/include/lib$${OPENSS_LIBFILE})
DEPENDPATH += $$quote($${LIBOPENSS_INC}/include/lib$${OPENSS_LIBFILE})
OPENSS_DIRECTORIES = $${OPENSS_LIBPATH}
OPENSS_DIRECTORIES += $${OPENSS_LIBPATH}/lib
OPENSS_DIRECTORIES += $${OPENSS_LIBPATH}/lib64
OPENSS_FILENAME = lib$${OPENSS_LIBFILE}.so
for(OPENSS_DIRECTORY, OPENSS_DIRECTORIES) {
exists($${OPENSS_DIRECTORY}/$${OPENSS_FILENAME}) {
LIBS += -L$$quote($${OPENSS_DIRECTORY}) -l$${OPENSS_LIBFILE}
unset(OPENSS_DIRECTORIES)
break()
}
}
!isEmpty(OPENSS_DIRECTORIES) {
for(OPENSS_DIRECTORY, OPENSS_DIRECTORIES) {
warning("$${OPENSS_DIRECTORY}/$${OPENSS_FILENAME} was not found")
}
error("Please ensure that you have already built the Open|SpeedShop tool framework.")
}
}
}
}