Chris@172
|
1
|
Chris@613
|
2 CONFIG += release
|
Chris@215
|
3
|
Chris@172
|
4 TEMPLATE = app
|
Chris@211
|
5 TARGET = EasyMercurial
|
Chris@211
|
6
|
Chris@664
|
7 QT += widgets
|
Chris@664
|
8 QMAKE_CXXFLAGS += -DQT_DISABLE_DEPRECATED_BEFORE=0x000000
|
Chris@646
|
9
|
Chris@584
|
10 # We use the 10.5 SDK and Carbon for all 32-bit OS/X,
|
Chris@587
|
11 # and 10.6 with Cocoa for all 64-bit. (Since EasyHg 1.2,
|
Chris@587
|
12 # we can sadly no longer build for 10.4 because we need
|
Chris@587
|
13 # the FSEvents API)
|
Chris@315
|
14 macx-g++40 {
|
Chris@315
|
15 # Note, to use the 10.4 SDK on 10.6+ you need qmake -spec macx-g++40
|
Chris@584
|
16 QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
|
Chris@584
|
17 QMAKE_CFLAGS += -mmacosx-version-min=10.5
|
Chris@584
|
18 QMAKE_CXXFLAGS += -mmacosx-version-min=10.5
|
Chris@315
|
19 CONFIG += x86 ppc
|
Chris@315
|
20 }
|
Chris@315
|
21 macx-g++ {
|
Chris@315
|
22 QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk
|
Chris@335
|
23 CONFIG += x86_64
|
Chris@315
|
24 }
|
Chris@615
|
25 macx-llvm {
|
Chris@615
|
26 CONFIG += x86_64
|
Chris@615
|
27 QMAKE_CFLAGS += -mmacosx-version-min=10.6
|
Chris@615
|
28 QMAKE_CXXFLAGS += -mmacosx-version-min=10.6
|
Chris@615
|
29 }
|
Chris@315
|
30
|
Chris@172
|
31 unix {
|
Chris@172
|
32 DESTDIR = .
|
Chris@172
|
33 }
|
Chris@172
|
34
|
Chris@172
|
35 TRANSLATIONS = easyhg_en.ts
|
Chris@172
|
36
|
Chris@172
|
37 OBJECTS_DIR = o
|
Chris@172
|
38 MOC_DIR = o
|
Chris@172
|
39
|
Chris@370
|
40 HEADERS = \
|
Chris@370
|
41 src/mainwindow.h \
|
Chris@370
|
42 src/hgtabwidget.h \
|
Chris@370
|
43 src/common.h \
|
Chris@370
|
44 src/grapher.h \
|
Chris@370
|
45 src/hgrunner.h \
|
Chris@370
|
46 src/changeset.h \
|
Chris@370
|
47 src/changesetitem.h \
|
Chris@370
|
48 src/changesetdetailitem.h \
|
Chris@370
|
49 src/logparser.h \
|
Chris@370
|
50 src/panner.h \
|
Chris@370
|
51 src/panned.h \
|
Chris@370
|
52 src/connectionitem.h \
|
Chris@370
|
53 src/textabbrev.h \
|
Chris@370
|
54 src/colourset.h \
|
Chris@370
|
55 src/debug.h \
|
Chris@370
|
56 src/recentfiles.h \
|
Chris@370
|
57 src/startupdialog.h \
|
Chris@370
|
58 src/repositorydialog.h \
|
Chris@370
|
59 src/multichoicedialog.h \
|
Chris@370
|
60 src/selectablelabel.h \
|
Chris@370
|
61 src/filestates.h \
|
Chris@370
|
62 src/filestatuswidget.h \
|
Chris@370
|
63 src/confirmcommentdialog.h \
|
Chris@370
|
64 src/hgaction.h \
|
Chris@370
|
65 src/historywidget.h \
|
Chris@370
|
66 src/changesetscene.h \
|
Chris@397
|
67 src/changesetview.h \
|
Chris@370
|
68 src/incomingdialog.h \
|
Chris@370
|
69 src/uncommitteditem.h \
|
Chris@370
|
70 src/settingsdialog.h \
|
Chris@370
|
71 src/clickablelabel.h \
|
Chris@370
|
72 src/workstatuswidget.h \
|
Chris@370
|
73 src/moreinformationdialog.h \
|
Chris@414
|
74 src/annotatedialog.h \
|
Chris@491
|
75 src/hgignoredialog.h \
|
Chris@523
|
76 src/versiontester.h \
|
Chris@538
|
77 src/squeezedlabel.h \
|
Chris@554
|
78 src/fswatcher.h \
|
Chris@554
|
79 src/findwidget.h
|
Chris@370
|
80 SOURCES = \
|
Chris@370
|
81 src/main.cpp \
|
Chris@370
|
82 src/mainwindow.cpp \
|
Chris@370
|
83 src/hgtabwidget.cpp \
|
Chris@370
|
84 src/hgrunner.cpp \
|
Chris@370
|
85 src/grapher.cpp \
|
Chris@370
|
86 src/common.cpp \
|
Chris@370
|
87 src/changeset.cpp \
|
Chris@370
|
88 src/changesetdetailitem.cpp \
|
Chris@370
|
89 src/changesetitem.cpp \
|
Chris@370
|
90 src/logparser.cpp \
|
Chris@370
|
91 src/panner.cpp \
|
Chris@370
|
92 src/panned.cpp \
|
Chris@370
|
93 src/connectionitem.cpp \
|
Chris@370
|
94 src/textabbrev.cpp \
|
Chris@370
|
95 src/colourset.cpp \
|
Chris@370
|
96 src/debug.cpp \
|
Chris@370
|
97 src/recentfiles.cpp \
|
Chris@370
|
98 src/startupdialog.cpp \
|
Chris@370
|
99 src/repositorydialog.cpp \
|
Chris@370
|
100 src/multichoicedialog.cpp \
|
Chris@370
|
101 src/selectablelabel.cpp \
|
Chris@370
|
102 src/filestates.cpp \
|
Chris@370
|
103 src/filestatuswidget.cpp \
|
Chris@370
|
104 src/confirmcommentdialog.cpp \
|
Chris@370
|
105 src/historywidget.cpp \
|
Chris@370
|
106 src/changesetscene.cpp \
|
Chris@397
|
107 src/changesetview.cpp \
|
Chris@370
|
108 src/incomingdialog.cpp \
|
Chris@370
|
109 src/uncommitteditem.cpp \
|
Chris@370
|
110 src/settingsdialog.cpp \
|
Chris@370
|
111 src/workstatuswidget.cpp \
|
Chris@370
|
112 src/moreinformationdialog.cpp \
|
Chris@414
|
113 src/annotatedialog.cpp \
|
Chris@491
|
114 src/hgignoredialog.cpp \
|
Chris@523
|
115 src/versiontester.cpp \
|
Chris@538
|
116 src/squeezedlabel.cpp \
|
Chris@554
|
117 src/fswatcher.cpp \
|
Chris@554
|
118 src/findwidget.cpp
|
Chris@172
|
119
|
Chris@615
|
120
|
Chris@172
|
121 macx-* {
|
Chris@615
|
122 OBJECTIVE_SOURCES += src/common_osx.mm
|
Chris@585
|
123 LIBS += -framework CoreServices -framework Foundation
|
Chris@529
|
124 ICON = easyhg-icon.icns
|
Chris@172
|
125 }
|
Chris@172
|
126
|
Chris@172
|
127 linux* {
|
Chris@172
|
128 LIBS += -lutil
|
Chris@601
|
129 binaries.path = /usr/local/bin
|
Chris@601
|
130 binaries.files = EasyMercurial easyhg-extdiff.sh easyhg-merge.sh
|
Chris@601
|
131 scripts.path = /usr/local/bin
|
Chris@601
|
132 scripts.files = easyhg-extdiff.sh easyhg-merge.sh
|
Chris@601
|
133 desktop.path = /usr/local/share/applications
|
Chris@601
|
134 desktop.files = deploy/linux/EasyMercurial.desktop
|
Chris@601
|
135 icon128.path = /usr/local/share/icons/hicolor/128x128/apps
|
Chris@601
|
136 icon128.files = images/icon/128/easyhg-icon.png
|
Chris@601
|
137 icon64.path = /usr/local/share/icons/hicolor/64x64/apps
|
Chris@601
|
138 icon64.files = images/icon/64/easyhg-icon.png
|
Chris@601
|
139 icon48.path = /usr/local/share/icons/hicolor/48x48/apps
|
Chris@601
|
140 icon48.files = images/icon/48/easyhg-icon.png
|
Chris@601
|
141 icon32.path = /usr/local/share/icons/hicolor/32x32/apps
|
Chris@601
|
142 icon32.files = images/icon/32/easyhg-icon.png
|
Chris@601
|
143 icon24.path = /usr/local/share/icons/hicolor/24x24/apps
|
Chris@601
|
144 icon24.files = images/icon/24/easyhg-icon.png
|
Chris@601
|
145 iconsc.path = /usr/local/share/icons/hicolor/scalable/apps
|
Chris@601
|
146 iconsc.files = images/icon/scalable/easyhg-icon.svg
|
Chris@601
|
147 INSTALLS += binaries desktop icon128 icon64 icon48 icon32 icon24 iconsc
|
Chris@172
|
148 }
|
Chris@172
|
149
|
Chris@172
|
150 win* {
|
sam@623
|
151 LIBS += -lSecur32 -lAdvapi32
|
Chris@172
|
152 }
|
Chris@172
|
153
|
Chris@172
|
154 RESOURCES = easyhg.qrc
|
Chris@197
|
155 win32 {
|
Chris@197
|
156 RC_FILE = easyhg.rc
|
Chris@197
|
157 }
|
Chris@172
|
158
|
Chris@172
|
159 QT += network
|