/
amethyst.pro
147 lines (132 loc) · 3.32 KB
/
amethyst.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
144
145
146
147
# Amethyst (c) 2002-2011 Jaakko Keränen <jaakko.keranen@iki.fi>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
QT += core
QT -= gui
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
TARGET = amethyst
SOURCES += \
src/block.cpp \
src/callstack.cpp \
src/command.cpp \
src/commandline.cpp \
src/commandrule.cpp \
src/commandruleset.cpp \
src/contextrelation.cpp \
src/formatrule.cpp \
src/gem.cpp \
src/gemclass.cpp \
src/gemtest.cpp \
src/gemtestcommand.cpp \
src/length.cpp \
src/lengthrule.cpp \
src/linkable.cpp \
src/macro.cpp \
src/main.cpp \
src/outputcontext.cpp \
src/outputstate.cpp \
src/processor.cpp \
src/rule.cpp \
src/ruleset.cpp \
src/schedule.cpp \
src/shard.cpp \
src/source.cpp \
src/string.cpp \
src/structurecounter.cpp \
src/token.cpp \
src/utils.cpp \
src/exception.cpp
HEADERS += \
src/block.h \
src/callstack.h \
src/command.h \
src/commandline.h \
src/commandrule.h \
src/commandruleset.h \
src/contextrelation.h \
src/defs.h \
src/exception.h \
src/formatrule.h \
src/gem.h \
src/gemclass.h \
src/gemtest.h \
src/gemtestcommand.h \
src/length.h \
src/lengthrule.h \
src/linkable.h \
src/list.h \
src/macro.h \
src/outputcontext.h \
src/outputstate.h \
src/processor.h \
src/rule.h \
src/ruleset.h \
src/schedule.h \
src/shard.h \
src/source.h \
src/string.h \
src/stringlist.h \
src/structurecounter.h \
src/token.h \
src/uniquelist.h \
src/utils.h
OTHER_FILES += plan.txt changelog.txt
# Compiler options.
*-gcc* {
QMAKE_CXXFLAGS += -pedantic
!mac:!win32: QMAKE_CXXFLAGS += -std=c++0x
}
win32-msvc* {
DEFINES += _CRT_SECURE_NO_WARNINGS
}
# Installation.
library.files += \
lib/amestd.ame \
lib/ametxt.ame \
lib/amehtml.ame \
lib/amertf.ame \
lib/ameman.ame \
lib/amewiki.ame \
lib/amehelp.ame
unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
SHAREDIR = $$PREFIX/share/amethyst
DOCDIR = $$PREFIX/share/doc/amethyst
AMELIBDIR = $$SHAREDIR/lib
# Default location for the library files.
DEFINES += AME_LIBDIR=\\\"$$AMELIBDIR\\\"
INSTALLS += target library
target.path = $$BINDIR
library.path = $$AMELIBDIR
}
win32 {
isEmpty(PREFIX) {
PREFIX = $$PWD/inst
}
BINDIR = $$PREFIX
AMELIBDIR = $$PREFIX/lib
DOCDIR = $%PREFIX/doc
INSTALLS += target qtcore library #guide
target.path = $$BINDIR
CONFIG(debug, debug|release): qtver = d4
else: qtver = 4
qtcore.files = $$[QT_INSTALL_LIBS]/QtCore$${qtver}.dll
qtcore.path = $$BINDIR
library.path = $$AMELIBDIR
}