forked from gottcode/focuswriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfocuswriter.pro
143 lines (127 loc) · 3.13 KB
/
focuswriter.pro
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
TEMPLATE = app
CONFIG += warn_on release
macx {
QMAKE_INFO_PLIST = install/mac/Info.plist
CONFIG += x86_64
# Comment the above line and uncomment the following lines to compile Universal for 10.4+
# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
# CONFIG += x86 ppc
}
MOC_DIR = build
OBJECTS_DIR = build
RCC_DIR = build
unix: !macx {
TARGET = focuswriter
} else {
TARGET = FocusWriter
}
macx {
INCLUDEPATH += /Library/Frameworks/hunspell.framework/Headers /Library/Frameworks/libzip.framework/Headers
LIBS += -framework hunspell -framework libzip
} else:win32 {
INCLUDEPATH += hunspell libzip
LIBS += ./hunspell/hunspell1.dll ./libzip/libzip0.dll
} else {
CONFIG += link_pkgconfig
PKGCONFIG += hunspell libzip
}
HEADERS += src/alert.h \
src/alert_layer.h \
src/block_stats.h \
src/color_button.h \
src/deltas.h \
src/dictionary.h \
src/document.h \
src/find_dialog.h \
src/highlighter.h \
src/image_button.h \
src/load_screen.h \
src/locale_dialog.h \
src/preferences.h \
src/preferences_dialog.h \
src/session.h \
src/session_manager.h \
src/settings_file.h \
src/smart_quotes.h \
src/sound.h \
src/spell_checker.h \
src/stack.h \
src/stats.h \
src/theme.h \
src/theme_dialog.h \
src/theme_manager.h \
src/timer.h \
src/timer_display.h \
src/timer_manager.h \
src/window.h \
src/rtf/reader.h \
src/rtf/tokenizer.h \
src/rtf/writer.h
SOURCES += src/alert.cpp \
src/alert_layer.cpp \
src/block_stats.cpp \
src/color_button.cpp \
src/deltas.cpp \
src/dictionary.cpp \
src/document.cpp \
src/find_dialog.cpp \
src/highlighter.cpp \
src/image_button.cpp \
src/load_screen.cpp \
src/locale_dialog.cpp \
src/main.cpp \
src/preferences.cpp \
src/preferences_dialog.cpp \
src/session.cpp \
src/session_manager.cpp \
src/smart_quotes.cpp \
src/sound.cpp \
src/spell_checker.cpp \
src/stack.cpp \
src/stats.cpp \
src/theme.cpp \
src/theme_dialog.cpp \
src/theme_manager.cpp \
src/timer.cpp \
src/timer_display.cpp \
src/timer_manager.cpp \
src/window.cpp \
src/rtf/reader.cpp \
src/rtf/tokenizer.cpp \
src/rtf/writer.cpp
TRANSLATIONS = translations/focuswriter_cs.ts \
translations/focuswriter_de.ts \
translations/focuswriter_en.ts \
translations/focuswriter_es.ts \
translations/focuswriter_es_MX.ts \
translations/focuswriter_fr.ts \
translations/focuswriter_pl.ts \
translations/focuswriter_pt.ts \
translations/focuswriter_pt_BR.ts \
translations/focuswriter_ru.ts
RESOURCES = icons/icons.qrc
macx {
ICON = icons/focuswriter.icns
}
win32 {
RC_FILE = icons/icon.rc
}
unix: !macx {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin/
icon.files = icons/hicolor/*
icon.path = $$PREFIX/share/icons/hicolor/
pixmap.files = icons/focuswriter.xpm
pixmap.path = $$PREFIX/share/pixmaps/
icons.files = icons/oxygen/hicolor/*
icons.path = $$PREFIX/share/focuswriter/icons/hicolor
desktop.files = install/unix/focuswriter.desktop
desktop.path = $$PREFIX/share/applications/
qm.files = translations/*.qm
qm.path = $$PREFIX/share/focuswriter/translations
sounds.files = sounds/*
sounds.path = $$PREFIX/share/focuswriter/sounds
INSTALLS += target icon pixmap desktop icons qm sounds
}