forked from rprichard/CxxCodeBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsourceweb.pro
55 lines (49 loc) · 1.48 KB
/
sourceweb.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
include(./config.pri)
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += \
third_party \
libindexdb \
clang-indexer \
index-tool \
navigator
# HACK: Stop qmake from attempting to strip the scripts.
QMAKE_STRIP = /bin/echo
# Unix btrace.
linux-*|freebsd-*|darwin-*|macx-* {
SUBDIRS += btrace
btrace_script.path = $$BIN_DIR
btrace_script.files += \
btrace/sw-btrace \
btrace/sw-btrace-to-compiledb
INSTALLS += btrace_script
}
# Linux executable wrapper scripts.
linux-* {
SUBDIRS += linux-elfvinfo
libCfgFile = $(INSTALL_ROOT)/$$LIBEXEC_DIR/sw-libstdcxx-path
libPath = $$CLANG_DIR/lib
lib64Path = $$CLANG_DIR/lib64
libstdcxx =
libstdcxxSep =
exists($$libPath/libstdc++.so.6) {
libstdcxx = $$libPath$$libstdcxxSep$$libstdcxx
libstdcxxSep = :
}
exists($$lib64Path/libstdc++.so.6) {
libstdcxx = $$lib64Path$$libstdcxxSep$$libstdcxx
libstdcxxSep = :
}
wrapper = $$_PRO_FILE_PWD_/linux-wrapper.sh
linux_wrapper_scripts.path = $$PREFIX
linux_wrapper_scripts.extra += rm -f $$libCfgFile;
!equals(libstdcxx, "") {
linux_wrapper_scripts.extra += echo $$libstdcxx > $$libCfgFile;
}
linux_wrapper_scripts.extra += \
cp $$wrapper $(INSTALL_ROOT)/$$BIN_DIR/sourceweb; \
cp $$wrapper $(INSTALL_ROOT)/$$BIN_DIR/sw-clang-indexer; \
cp $$wrapper $(INSTALL_ROOT)/$$BIN_DIR/sw-index-tool;
INSTALLS += linux_wrapper_scripts
}
include(./check-clang.pri)