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