Commit 3cba4951 authored by Milan Crha's avatar Milan Crha

Convert from autotools to CMake

parent dad728df
build
_build
.build
This diff is collapsed.
ACLOCAL_AMFLAGS=-I m4
pkgconfigdir = $(libdir)/pkgconfig
INTERFACE_VERSION=3.0
%-$(INTERFACE_VERSION).pc: %.pc
cat $< | grep -x -v "Requires.private: " >$@
pkgconfig_in_files = \
evolution-calendar-$(INTERFACE_VERSION).pc \
evolution-mail-$(INTERFACE_VERSION).pc \
evolution-shell-$(INTERFACE_VERSION).pc
pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=-$(INTERFACE_VERSION).pc)
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/appdata
appdata_in_files = evolution.appdata.xml.in
appdata_files = $(appdata_in_files:.xml.in=.xml)
dist_appdata_DATA = $(appdata_files)
EXTRA_DIST = \
$(pkgconfig_DATA) \
$(appdata_in_files) \
AUTHORS \
COPYING-DOCS \
COPYING-DOCS.CCBYSA \
COPYING-DOCS.GFDL \
COPYING.LGPL2 \
COPYING.LGPL3 \
COPYING.OPENLDAP \
README \
HACKING \
MAINTAINERS \
NEWS \
NEWS-1.0 \
enumtypes.c.template \
enumtypes.h.template \
marshal.mk \
iconv-detect.c \
plugin.mk \
intltool-merge.in \
intltool-update.in \
intltool-extract.in \
gtk-doc.make \
tests
if ENABLE_SMIME
SMIME_SUBDIR=smime
endif
if WITH_HELP
HELP_SUBDIR=help
endif
# For maintainers only.
if GLADE_CATALOG
MAINT_SUBDIR=maint
endif
SUBDIRS = \
m4 \
data \
libgnomecanvas \
e-util \
libemail-engine \
shell \
$(SMIME_SUBDIR) \
em-format \
addressbook \
composer \
mail \
calendar \
art \
web-extensions \
plugins \
modules \
$(MAINT_SUBDIR) \
doc \
ui \
views \
po \
sounds \
$(HELP_SUBDIR)
@GNOME_CODE_COVERAGE_RULES@
DISTCLEANFILES = \
$(builddir)/iconv-detect.h \
$(pkgconfig_in_files) \
$(appdata_files)
MAINTAINERCLEANFILES = \
$(srcdir)/ABOUT-NLS \
$(srcdir)/INSTALL \
$(srcdir)/aclocal.m4 \
$(srcdir)/autoscan.log \
$(srcdir)/compile \
$(srcdir)/config.guess \
$(srcdir)/config.h.in \
$(srcdir)/config.rpath \
$(srcdir)/config.sub \
$(srcdir)/configure.scan \
$(srcdir)/depcomp \
$(srcdir)/install-sh \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs \
$(srcdir)/gtk-doc.make \
$(srcdir)/m4/codeset.m4 \
$(srcdir)/m4/gettext.m4 \
$(srcdir)/m4/glibc2.m4 \
$(srcdir)/m4/glibc21.m4 \
$(srcdir)/m4/gtk-doc.m4 \
$(srcdir)/m4/iconv.m4 \
$(srcdir)/m4/intdiv0.m4 \
$(srcdir)/m4/intl.m4 \
$(srcdir)/m4/intldir.m4 \
$(srcdir)/m4/intlmacosx.m4 \
$(srcdir)/m4/intltool.m4 \
$(srcdir)/m4/intmax.m4 \
$(srcdir)/m4/inttypes-pri.m4 \
$(srcdir)/m4/inttypes_h.m4 \
$(srcdir)/m4/lcmessage.m4 \
$(srcdir)/m4/lib-ld.m4 \
$(srcdir)/m4/lib-link.m4 \
$(srcdir)/m4/lib-prefix.m4 \
$(srcdir)/m4/libtool.m4 \
$(srcdir)/m4/lock.m4 \
$(srcdir)/m4/longlong.m4 \
$(srcdir)/m4/ltoptions.m4 \
$(srcdir)/m4/ltsugar.m4 \
$(srcdir)/m4/ltversion.m4 \
$(srcdir)/m4/lt~obsolete.m4 \
$(srcdir)/m4/nls.m4 \
$(srcdir)/m4/po.m4 \
$(srcdir)/m4/printf-posix.m4 \
$(srcdir)/m4/progtest.m4 \
$(srcdir)/m4/size_max.m4 \
$(srcdir)/m4/stdint_h.m4 \
$(srcdir)/m4/uintmax_t.m4 \
$(srcdir)/m4/visibility.m4 \
$(srcdir)/m4/wchar_t.m4 \
$(srcdir)/m4/wint_t.m4 \
$(srcdir)/m4/xsize.m4 \
$(srcdir)/po/Makefile.in.in~ \
$(srcdir)/po/Makevars.template \
$(srcdir)/po/Rules-quot \
$(srcdir)/po/boldquot.sed \
$(srcdir)/po/en@boldquot.header \
$(srcdir)/po/en@quot.header \
$(srcdir)/po/insert-header.sin \
$(srcdir)/po/quot.sed \
$(srcdir)/po/remove-potcdate.sin
DISTCHECK_CONFIGURE_FLAGS = \
--enable-gtk-doc \
--disable-goa \
--disable-image-inline \
--disable-pst-import \
--disable-weather \
--with-help
@BEHAVE_INSTALLED_TESTS_RULE@
INSTALLED_TESTS=general_shortcuts mail_shortcuts contacts_shortcuts \
memos_shortcuts view_shortcuts addressbook_contacts
INSTALLED_TESTS_TYPE=session-exclusive
-include $(top_srcdir)/git.mk
......@@ -65,8 +65,8 @@ dependencies should be compiled in the order they are listed here):
Many distributions ship these as Mozilla development
packages.
Other dependencies are claimed during the ./configure phase. If these are
optional, also a parameter for the ./configure to not use that dependency
Other dependencies are claimed during the configure phase. If these are
optional, also a parameter for the CMake configure to not use that dependency
is shown.
CONFIGURING EVOLUTION
......@@ -117,30 +117,33 @@ following things:
<servicedir>/opt/evolution/share/dbus-1/services</servicedir>
</busconfig>
* Pass an appropriate --prefix parameter to the configure
* Pass an appropriate CMAKE_INSTALL_PREFIX parameter to the configure
scripts of Evolution and its dependencies, eg:
./configure --prefix=/opt/evolution
More information on how to use the configure script is available in
the INSTALL file which is part of the Evolution tarball.
cd ..../sources/evolution
mkdir build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/opt/evolution \
-DCMAKE_BUILD_TYPE=Release \
..
* Run `cmake --help` to get list of available generators (the -G argument)
on your platform.
OPTIONAL FEATURES
-----------------
Some optional features can be enabled at compilation time by passing
appropriate flags to the configure script. You can get list of all
of the configure option by running:
./configure --help
appropriate flags to the CMake. These options are shown at the end
of the successful configure phase.
BUILDING EVOLUTION
------------------
After the Evolution is properly configured, run:
make
make install
make -j
make -j install
to build it.
add_error_files(addressbook addressbook.error)
add_subdirectory(gui)
add_subdirectory(importers)
add_subdirectory(printing)
add_subdirectory(util)
SUBDIRS = util printing importers gui
error_DATA = addressbook.error
errordir = $(privdatadir)/errors
@EVO_PLUGIN_RULE@
EXTRA_DIST = \
addressbook.error.xml
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
BUILT_SOURCES = $(error_DATA)
CLEANFILES = $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk
add_subdirectory(contact-editor)
add_subdirectory(contact-list-editor)
add_subdirectory(widgets)
SUBDIRS = widgets contact-editor contact-list-editor
-include $(top_srcdir)/git.mk
install(FILES contact-editor.ui
fullname.ui
DESTINATION ${uidir}
)
set(DEPENDENCIES
eabwidgets
evolution-shell