]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
move GuiImage::loadableFormats() to support/imagetools.{h,cpp} and simplify this...
[features.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES += $(BUILT_SOURCES)
4
5 EXTRA_DIST = pch.h \
6         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
7
8 noinst_LTLIBRARIES = liblyxsupport.la
9
10 liblyxsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB) $(BOOST_SIGNALS)
11 liblyxsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
12
13 BUILT_SOURCES = $(PCH_FILE)
14
15 #########################  Qt stuff  #############################
16 #
17
18 MOCHEADER = SignalSlotPrivate.h
19
20 MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
21
22 CLEANFILES += $(MOCEDFILES)
23 BUILT_SOURCES += $(MOCEDFILES)
24
25 %_moc.cpp: %.h
26         $(MOC4) -o $@ $<
27
28 liblyxsupport_la_DEPENDENCIES = $(MOCEDFILES)
29
30 #
31 ##################################################################
32
33 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
34 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) 
35
36 liblyxsupport_la_SOURCES = \
37         FileMonitor.h \
38         FileMonitor.cpp \
39         RandomAccessList.h \
40         convert.cpp \
41         convert.h \
42         copied_ptr.h \
43         debug.cpp \
44         debug.h \
45         docstream.cpp \
46         docstream.h \
47         docstring.cpp \
48         docstring.h \
49         docstring_list.h \
50         environment.h \
51         environment.cpp \
52         ExceptionMessage.h \
53         FileName.cpp \
54         FileName.h \
55         FileNameList.h \
56         filetools.cpp \
57         filetools.h \
58         foreach.h \
59         ForkedCalls.cpp \
60         ForkedCalls.h \
61         gettext.cpp \
62         gettext.h \
63         gzstream.cpp \
64         gzstream.h \
65         imagetools.cpp \
66         imagetools.h \
67         kill.cpp \
68         lassert.h \
69         lassert.cpp \
70         limited_stack.h \
71         lstrings.cpp \
72         lstrings.h \
73         lyxalgo.h \
74         lyxlib.h \
75         lyxtime.cpp \
76         lyxtime.h \
77         lyxsum.cpp \
78         Messages.cpp \
79         Messages.h \
80         os.cpp \
81         os.h \
82         Path.cpp \
83         Path.h \
84         Package.cpp \
85         Package.h \
86         qstring_helpers.cpp \
87         qstring_helpers.h \
88         socktools.cpp \
89         socktools.h \
90         strfwd.h \
91         Systemcall.cpp \
92         Systemcall.h \
93         SignalSlot.cpp \
94         SignalSlot.h \
95         SignalSlotPrivate.cpp \
96         SignalSlotPrivate.h \
97         textutils.h \
98         Translator.h \
99         Timeout.cpp \
100         Timeout.h \
101         types.h \
102         userinfo.cpp \
103         userinfo.h \
104         unicode.cpp \
105         unicode.h \
106         weighted_btree.h
107
108 if INSTALL_MACOSX
109 liblyxsupport_la_SOURCES += \
110         linkback/LinkBack.h \
111         linkback/LinkBack.m \
112         linkback/LinkBackProxy.h \
113         linkback/LinkBackProxy.m \
114         linkback/LinkBackServer.h \
115         linkback/LinkBackServer.m
116 endif
117
118 ############################## Tests ##################################
119
120 EXTRA_DIST += \
121         tests/test_convert \
122         tests/test_filetools \
123         tests/test_lstrings \
124         tests/regfiles/convert \
125         tests/regfiles/filetools \
126         tests/regfiles/lstrings
127
128
129 TESTS = \
130         tests/test_convert \
131         tests/test_filetools \
132         tests/test_lstrings
133
134 check_PROGRAMS = \
135         check_convert \
136         check_filetools \
137         check_lstrings
138
139 check_convert_LDADD = liblyxsupport.la  \
140         $(BOOST_LIBS) $(QT4_CORE_LIB)
141 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
142 check_convert_SOURCES = \
143         tests/check_convert.cpp \
144         tests/boost.cpp
145
146 check_filetools_LDADD = liblyxsupport.la $(BOOST_LIBS)
147 check_filetools_SOURCES = \
148         tests/check_filetools.cpp \
149         tests/boost.cpp
150
151 check_lstrings_LDADD = liblyxsupport.la $(BOOST_LIBS) $(QT4_CORE_LIB)
152 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
153 check_lstrings_SOURCES = \
154         tests/check_lstrings.cpp \
155         tests/boost.cpp
156
157 makeregfiles: ${check_PROGRAMS}
158         for all in ${check_PROGRAMS} ; do \
159                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
160         done