annotate easyhg.pro @ 601:2985c2a90146

Add install target for Linux
author Chris Cannam
date Fri, 18 May 2012 09:34:12 +0100
parents 4ed384ea7f39
children ab92f695f776
rev   line source
Chris@172 1
Chris@547 2 CONFIG += release
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@315 22
Chris@172 23 unix {
Chris@172 24 DESTDIR = .
Chris@172 25 }
Chris@172 26
Chris@172 27 TRANSLATIONS = easyhg_en.ts
Chris@172 28
Chris@172 29 OBJECTS_DIR = o
Chris@172 30 MOC_DIR = o
Chris@172 31
Chris@370 32 HEADERS = \
Chris@370 33 src/mainwindow.h \
Chris@370 34 src/hgtabwidget.h \
Chris@370 35 src/common.h \
Chris@370 36 src/grapher.h \
Chris@370 37 src/hgrunner.h \
Chris@370 38 src/changeset.h \
Chris@370 39 src/changesetitem.h \
Chris@370 40 src/changesetdetailitem.h \
Chris@370 41 src/logparser.h \
Chris@370 42 src/panner.h \
Chris@370 43 src/panned.h \
Chris@370 44 src/connectionitem.h \
Chris@370 45 src/textabbrev.h \
Chris@370 46 src/colourset.h \
Chris@370 47 src/debug.h \
Chris@370 48 src/recentfiles.h \
Chris@370 49 src/startupdialog.h \
Chris@370 50 src/repositorydialog.h \
Chris@370 51 src/multichoicedialog.h \
Chris@370 52 src/selectablelabel.h \
Chris@370 53 src/filestates.h \
Chris@370 54 src/filestatuswidget.h \
Chris@370 55 src/confirmcommentdialog.h \
Chris@370 56 src/hgaction.h \
Chris@370 57 src/historywidget.h \
Chris@370 58 src/changesetscene.h \
Chris@397 59 src/changesetview.h \
Chris@370 60 src/incomingdialog.h \
Chris@370 61 src/uncommitteditem.h \
Chris@370 62 src/settingsdialog.h \
Chris@370 63 src/clickablelabel.h \
Chris@370 64 src/workstatuswidget.h \
Chris@370 65 src/moreinformationdialog.h \
Chris@414 66 src/annotatedialog.h \
Chris@491 67 src/hgignoredialog.h \
Chris@523 68 src/versiontester.h \
Chris@538 69 src/squeezedlabel.h \
Chris@554 70 src/fswatcher.h \
Chris@554 71 src/findwidget.h
Chris@370 72 SOURCES = \
Chris@370 73 src/main.cpp \
Chris@370 74 src/mainwindow.cpp \
Chris@370 75 src/hgtabwidget.cpp \
Chris@370 76 src/hgrunner.cpp \
Chris@370 77 src/grapher.cpp \
Chris@370 78 src/common.cpp \
Chris@370 79 src/changeset.cpp \
Chris@370 80 src/changesetdetailitem.cpp \
Chris@370 81 src/changesetitem.cpp \
Chris@370 82 src/logparser.cpp \
Chris@370 83 src/panner.cpp \
Chris@370 84 src/panned.cpp \
Chris@370 85 src/connectionitem.cpp \
Chris@370 86 src/textabbrev.cpp \
Chris@370 87 src/colourset.cpp \
Chris@370 88 src/debug.cpp \
Chris@370 89 src/recentfiles.cpp \
Chris@370 90 src/startupdialog.cpp \
Chris@370 91 src/repositorydialog.cpp \
Chris@370 92 src/multichoicedialog.cpp \
Chris@370 93 src/selectablelabel.cpp \
Chris@370 94 src/filestates.cpp \
Chris@370 95 src/filestatuswidget.cpp \
Chris@370 96 src/confirmcommentdialog.cpp \
Chris@370 97 src/historywidget.cpp \
Chris@370 98 src/changesetscene.cpp \
Chris@397 99 src/changesetview.cpp \
Chris@370 100 src/incomingdialog.cpp \
Chris@370 101 src/uncommitteditem.cpp \
Chris@370 102 src/settingsdialog.cpp \
Chris@370 103 src/workstatuswidget.cpp \
Chris@370 104 src/moreinformationdialog.cpp \
Chris@414 105 src/annotatedialog.cpp \
Chris@491 106 src/hgignoredialog.cpp \
Chris@523 107 src/versiontester.cpp \
Chris@538 108 src/squeezedlabel.cpp \
Chris@554 109 src/fswatcher.cpp \
Chris@554 110 src/findwidget.cpp
Chris@172 111
Chris@172 112 macx-* {
Chris@370 113 SOURCES += src/common_osx.mm
Chris@585 114 LIBS += -framework CoreServices -framework Foundation
Chris@529 115 ICON = easyhg-icon.icns
Chris@172 116 }
Chris@172 117
Chris@172 118 linux* {
Chris@172 119 LIBS += -lutil
Chris@601 120 binaries.path = /usr/local/bin
Chris@601 121 binaries.files = EasyMercurial easyhg-extdiff.sh easyhg-merge.sh
Chris@601 122 scripts.path = /usr/local/bin
Chris@601 123 scripts.files = easyhg-extdiff.sh easyhg-merge.sh
Chris@601 124 desktop.path = /usr/local/share/applications
Chris@601 125 desktop.files = deploy/linux/EasyMercurial.desktop
Chris@601 126 icon128.path = /usr/local/share/icons/hicolor/128x128/apps
Chris@601 127 icon128.files = images/icon/128/easyhg-icon.png
Chris@601 128 icon64.path = /usr/local/share/icons/hicolor/64x64/apps
Chris@601 129 icon64.files = images/icon/64/easyhg-icon.png
Chris@601 130 icon48.path = /usr/local/share/icons/hicolor/48x48/apps
Chris@601 131 icon48.files = images/icon/48/easyhg-icon.png
Chris@601 132 icon32.path = /usr/local/share/icons/hicolor/32x32/apps
Chris@601 133 icon32.files = images/icon/32/easyhg-icon.png
Chris@601 134 icon24.path = /usr/local/share/icons/hicolor/24x24/apps
Chris@601 135 icon24.files = images/icon/24/easyhg-icon.png
Chris@601 136 iconsc.path = /usr/local/share/icons/hicolor/scalable/apps
Chris@601 137 iconsc.files = images/icon/scalable/easyhg-icon.svg
Chris@601 138 INSTALLS += binaries desktop icon128 icon64 icon48 icon32 icon24 iconsc
Chris@172 139 }
Chris@172 140
Chris@172 141 win* {
Chris@172 142 LIBS += -lSecur32
Chris@172 143 }
Chris@172 144
Chris@172 145 RESOURCES = easyhg.qrc
Chris@197 146 win32 {
Chris@197 147 RC_FILE = easyhg.rc
Chris@197 148 }
Chris@172 149
Chris@172 150 QT += network