forked from gottcode/focuswriter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfocuswriter.pro
More file actions
137 lines (122 loc) · 3.05 KB
/
focuswriter.pro
File metadata and controls
137 lines (122 loc) · 3.05 KB
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
TEMPLATE = app
CONFIG += warn_on release
macx {
# Uncomment the following line to compile on PowerPC Macs
# 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 += src/qsound /Library/Frameworks/hunspell.framework/Headers /Library/Frameworks/libzip.framework/Headers
LIBS += -framework hunspell -framework libzip
HEADERS += src/qsound/sound.h
SOURCES += src/qsound/sound.cpp
} else:win32 {
INCLUDEPATH += src/ao hunspell libao libzip
LIBS += ./hunspell/hunspell1.dll ./libao/libao-4.dll ./libzip/libzip0.dll
HEADERS += src/ao/sound.h
SOURCES += src/ao/sound.cpp
} else {
INCLUDEPATH += src/ao
QMAKE_CXXFLAGS += $$system(pkg-config --cflags ao hunspell libzip)
LIBS += $$system(pkg-config --libs ao hunspell libzip)
HEADERS += src/ao/sound.h
SOURCES += src/ao/sound.cpp
}
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/preferences.h \
src/preferences_dialog.h \
src/session.h \
src/session_manager.h \
src/settings_file.h \
src/smart_quotes.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/main.cpp \
src/preferences.cpp \
src/preferences_dialog.cpp \
src/session.cpp \
src/session_manager.cpp \
src/smart_quotes.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_en.ts \
translations/focuswriter_es.ts \
translations/focuswriter_fr.ts \
translations/focuswriter_pl.ts \
translations/focuswriter_pt.ts \
translations/focuswriter_pt_BR.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/focuswriter.png
icon.path = $$PREFIX/share/icons/hicolor/48x48/apps
icons.files = icons/oxygen/hicolor/*
icons.path = $$PREFIX/share/focuswriter/icons/hicolor
desktop.files = icons/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 desktop icons qm sounds
}