1 # Under Windows launch script start_qgit.bat needs the
2 # value GIT_EXEC_DIR to be set to the git bin directory
3 GIT_EXEC_DIR
= "$$(ProgramFiles)\\Git\\bin"
5 # Under Windows uncomment following line to enable console messages
6 #CONFIG += ENABLE_CONSOLE_MSG
8 # check for Qt >= 4.3.0
9 CUR_QT
= $$
[QT_VERSION
]
11 # WARNING greaterThan is an undocumented function
12 !greaterThan(CUR_QT
, 4.3) {
13 error("Sorry I need Qt 4.3.0 or later, you seem to have Qt $$CUR_QT instead")
16 # check for g++ compiler
17 contains(QMAKE_CC
,.*g
\\+\\+.*) {
20 contains(QMAKE_CC
,.*gcc
.*) {
26 CONFIG
+= qt warn_on exceptions debug_and_release
29 RESOURCES
+= icons
.qrc
31 # Platform dependent stuff
34 target
.path
= $$GIT_EXEC_DIR
35 CONFIG
+= windows embed_manifest_exe
41 target
.path
= $$
[QT_INSTALL_BINS
]
49 RC_FILE
= resources
/qgit
.icns
53 QMAKE_CXXFLAGS_RELEASE
+= -s
-O2
-Wno
-non
-virtual
-dtor
-Wno
-long
-long
-pedantic
-Wconversion
54 QMAKE_CXXFLAGS_DEBUG
+= -g3
-ggdb
-O0
-Wno
-non
-virtual
-dtor
-Wno
-long
-long
-pedantic
-Wconversion
70 OBJECTS_DIR
= $$BUILD_DIR
73 FORMS
+= commit
.ui console
.ui customaction
.ui fileview
.ui help
.ui \
74 mainview
.ui patchview
.ui rangeselect
.ui revsview
.ui settings
.ui
76 HEADERS
+= annotate
.h cache
.h commitimpl
.h common
.h config
.h consoleimpl
.h \
77 customactionimpl
.h dataloader
.h domain
.h exceptionmanager
.h \
78 filecontent
.h filelist
.h fileview
.h git
.h help
.h lanes
.h \
79 listview
.h mainimpl
.h myprocess
.h patchcontent
.h patchview
.h \
80 rangeselectimpl
.h revdesc
.h revsview
.h settingsimpl
.h \
81 smartbrowse
.h treeview
.h
83 SOURCES
+= annotate
.cpp cache
.cpp commitimpl
.cpp consoleimpl
.cpp \
84 customactionimpl
.cpp dataloader
.cpp domain
.cpp exceptionmanager
.cpp \
85 filecontent
.cpp filelist
.cpp fileview
.cpp git
.cpp git_startup
.cpp \
86 lanes
.cpp listview
.cpp mainimpl
.cpp myprocess
.cpp namespace_def
.cpp \
87 patchcontent
.cpp patchview
.cpp qgit
.cpp rangeselectimpl
.cpp \
88 revdesc
.cpp revsview
.cpp settingsimpl
.cpp smartbrowse
.cpp treeview
.cpp
90 DISTFILES
+= app_icon
.rc helpgen
.sh resources
/* Src.vcproj todo.txt
91 DISTFILES += ../COPYING ../exception_manager.txt ../README ../README_WIN.txt
92 DISTFILES += ../qgit_inno_setup.iss ../QGit4.sln
94 # Here we generate a batch called start_qgit.bat used, under Windows only,
95 # to start qgit with proper PATH set.
97 # NOTE: qgit must be installed in git directory, among git exe files
98 # for this to work. If you install with 'make install' this is already
101 # Remember to set proper GIT_EXEC_DIR value at the beginning of this file
104 !exists($${GIT_EXEC_DIR}/git.exe) {
105 error("I cannot found git files, please set GIT_EXEC_DIR in 'src.pro' file")
107 QGIT_BAT = ../start_qgit.bat
108 CUR_PATH = $$system(echo %PATH%)
109 LINE_1 = $$quote(set PATH=$$CUR_PATH;$$GIT_EXEC_DIR;)
110 LINE_2 = $$quote(set PATH=$$CUR_PATH;)
112 qgit_launcher.commands = @echo @echo OFF > $$QGIT_BAT
113 qgit_launcher.commands += && @echo $$LINE_1 >> $$QGIT_BAT
114 qgit_launcher.commands += && @echo bin\\$$TARGET >> $$QGIT_BAT
115 qgit_launcher.commands += && @echo $$LINE_2 >> $$QGIT_BAT
117 QMAKE_EXTRA_TARGETS += qgit_launcher
118 PRE_TARGETDEPS += qgit_launcher