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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
TEMPLATE = app
unix:!macx:TARGET = launchy
win32:TARGET = Launchy
macx:TARGET = Launchy
CONFIG += debug_and_release
PRECOMPILED_HEADER = precompiled.h
# CONFIG += qt release
INCLUDEPATH += ../common
QT += network
SOURCES = main.cpp \
globals.cpp \
options.cpp \
catalog.cpp \
catalog_builder.cpp \
plugin_handler.cpp \
platform_base_hotkey.cpp \
icon_delegate.cpp \
plugin_interface.cpp \
catalog_types.cpp \
icon_extractor.cpp \
../common/FileBrowserDelegate.cpp \
../common/FileBrowser.cpp \
../common/DropListWidget.cpp \
Fader.cpp \
CharListWidget.cpp \
CharLineEdit.cpp \
CommandHistory.cpp \
InputDataList.cpp \
FileSearch.cpp \
AnimationLabel.cpp \
SettingsManager.cpp
HEADERS = platform_base.h \
globals.h \
globals.h \
main.h \
catalog.h \
catalog_builder.h \
plugin_interface.h \
plugin_handler.h \
options.h \
catalog_types.h \
icon_delegate.h \
icon_extractor.h \
../common/FileBrowserDelegate.h \
../common/FileBrowser.h \
../common/DropListWidget.h \
CharListWidget.h \
CharLineEdit.h \
Fader.h \
precompiled.h \
CommandHistory.h \
InputDataList.h \
FileSearch.h \
AnimationLabel.h \
SettingsManager.h
FORMS = options.ui
unix:!macx {
ICON = Launchy.ico
SOURCES += ../platforms/unix/platform_unix.cpp \
../platforms/unix/platform_unix_util.cpp \
../platforms/unix/platform_x11_hotkey.cpp
HEADERS += ../platforms/unix/platform_unix.h \
../platforms/unix/platform_unix_util.h \
../platforms/unix/platform_x11_hotkey.h \
platform_base_hotkey.h \
platform_base_hottrigger.h
PREFIX = /usr
DEFINES += SKINS_PATH=\\\"$$PREFIX/share/launchy/skins/\\\" \
PLUGINS_PATH=\\\"$$PREFIX/lib/launchy/plugins/\\\" \
PLATFORMS_PATH=\\\"$$PREFIX/lib/launchy/\\\"
LIBS += -lX11
if(!debug_and_release|build_pass) {
CONFIG(debug, debug|release):DESTDIR = ../debug/
CONFIG(release, debug|release):DESTDIR = ../release/
}
SOURCES +=
target.path = $$PREFIX/bin/
skins.path = $$PREFIX/share/launchy/skins/
skins.files = ../skins/*
icon.path = $$PREFIX/share/pixmaps
icon.files = ../misc/Launchy_Icon/launchy_icon.png
desktop.path = $$PREFIX/share/applications/
desktop.files = ../linux/launchy.desktop
INSTALLS += target \
skins \
icon \
desktop
}
win32 {
ICON = Launchy.ico
if(!debug_and_release|build_pass):CONFIG(debug, debug|release):CONFIG += console
SOURCES += ../platforms/win/platform_win.cpp \
../platforms/win/platform_win_hotkey.cpp \
../platforms/win/platform_win_util.cpp \
../platforms/win/WinIconProvider.cpp
HEADERS += ../platforms/win/WinIconProvider.h \
platform_base_hotkey.h \
platform_base_hottrigger.h \
../platforms/win/platform_win.h \
../platforms/win/platform_win_util.h
CONFIG += embed_manifest_exe
INCLUDEPATH += c:/boost/
RC_FILE = ../win/launchy.rc
LIBS += shell32.lib \
user32.lib \
gdi32.lib \
ole32.lib \
comctl32.lib \
advapi32.lib \
userenv.lib \
netapi32.lib
DEFINES = VC_EXTRALEAN \
WIN32 \
_UNICODE \
UNICODE \
WINVER=0x0600 \
_WIN32_WINNT=0x0600 \
_WIN32_WINDOWS=0x0600 \
_WIN32_IE=0x0700
if(!debug_and_release|build_pass) {
CONFIG(debug, debug|release):DESTDIR = ../debug/
CONFIG(release, debug|release):DESTDIR = ../release/
}
}
macx {
ICON = ../misc/Launchy_Icon/launchy_icon_mac.icns
SOURCES += ../platforms/mac/platform_mac.cpp \
../platforms/mac/platform_mac_hotkey.cpp
HEADERS += ../platforms/mac/platform_mac.h \
../platforms/mac/platform_mac_hotkey.h \
platform_base_hotkey.h \
platform_base_hottrigger.h
if(!debug_and_release|build_pass) {
CONFIG(debug, debug|release):DESTDIR = ../debug/
CONFIG(release, debug|release):DESTDIR = ../release/
}
INCLUDEPATH += /opt/local/include/
LIBS += -framework Carbon
CONFIG(debug, debug|release):skins.path = ../debug/Launchy.app/Contents/Resources/skins/
CONFIG(release, debug|release):skins.path = ../release/Launchy.app/Contents/Resources/skins/
skins.files =
skins.extra = rsync -arvz ../skins/ ../release/Launchy.app/Contents/Resources/skins/ --exclude=\".svn\"
CONFIG(debug, debug|release):translations.path = ../debug/Launchy.app/Contents/MacOS/tr/
CONFIG(release, debug|release):translations.path = ../release/Launchy.app/Contents/MacOS/tr/
translations.files = ../translations/*.qm
translations.extra = lupdate src.pro ; lrelease src.pro
dmg.path = ../release/
dmg.files =
dmg.extra = cd ../mac ; bash deploy; cd ../src
INSTALLS += skins \
translations \
dmg
}
TRANSLATIONS = ../translations/launchy_fr.ts \
../translations/launchy_nl.ts \
../translations/launchy_zh.ts \
../translations/launchy_es.ts \
../translations/launchy_de.ts \
../translations/launchy_ja.ts \
../translations/launchy_zh_TW.ts
OBJECTS_DIR = build
MOC_DIR = build
RESOURCES += launchy.qrc
|