-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathsrc.pro
51 lines (40 loc) · 1.02 KB
/
src.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
CONFIG += debug
CONFIG += warn_off
CONFIG += silent
QT_CONFIG-=no-pkg-config
CONFIG+=link_pkgconfig
PKGCONFIG=apr-1 apr-util-1
PKGCONFIG+=libsvn_fs libsvn_repos libsvn_subr
exists(local-config.pri):include(local-config.pri)
macos {
CONFIG -= app_bundle
CONFIG += sdk_no_version_check
QMAKE_MACOSX_DEPLOYMENT_TARGET=12.0
LIBS += -L$$system(brew --prefix)/lib
}
if(!defined(VERSION, var)) {
VERSION = $$system(git --no-pager show --pretty=oneline --no-notes | head -1 | cut -b-40)
}
VERSTR = '\\"$${VERSION}\\"' # place quotes around the version string
DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string
TEMPLATE = app
TARGET = svn-all-fast-export
DESTDIR = ../
isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
INSTALLS += target
target.path = $$BINDIR
DEPENDPATH += .
QT = core
# Input
SOURCES += ruleparser.cpp \
repository.cpp \
svn.cpp \
main.cpp \
CommandLineParser.cpp \
HEADERS += ruleparser.h \
repository.h \
svn.h \
CommandLineParser.h \