[evolution/wip/cmake] doc, maint, po, sounds, ui, views directories



commit 955a35a06302e76526b9af4a39b9f14c732858fd
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 4 15:26:39 2016 +0200

    doc, maint, po, sounds, ui, views directories

 CMakeLists.txt                                     |   74 ++++---
 cmake/modules/GObjectIntrospection.cmake           |  233 --------------------
 config.h.in                                        |    2 +-
 doc/CMakeLists.txt                                 |    1 +
 doc/reference/CMakeLists.txt                       |    5 +
 .../evolution-mail-composer/CMakeLists.txt         |   14 ++
 ...s.sgml => evolution-mail-composer-docs.sgml.in} |    5 -
 doc/reference/evolution-mail-engine/CMakeLists.txt |   13 +
 ...ocs.sgml => evolution-mail-engine-docs.sgml.in} |    5 -
 .../evolution-mail-formatter/CMakeLists.txt        |   13 +
 ....sgml => evolution-mail-formatter-docs.sgml.in} |    5 -
 doc/reference/evolution-shell/CMakeLists.txt       |   17 ++
 ...hell-docs.sgml => evolution-shell-docs.sgml.in} |    5 -
 doc/reference/evolution-util/CMakeLists.txt        |   49 ++++
 ...-util-docs.sgml => evolution-util-docs.sgml.in} |    5 -
 em-format/e-mail-extension-registry.c              |    8 +-
 em-format/e-mail-parser-extension.c                |    4 +-
 em-format/e-mail-parser.c                          |    2 +-
 em-format/e-mail-stripsig-filter.c                 |    2 +-
 maint/CMakeLists.txt                               |   52 +++++
 maint/gladeevolution.c                             |   19 ++
 modules/CMakeLists.txt                             |    8 +-
 po/CMakeLists.txt                                  |    1 +
 sounds/CMakeLists.txt                              |    3 +
 ui/CMakeLists.txt                                  |    9 +
 views/CMakeLists.txt                               |    5 +
 views/addressbook/CMakeLists.txt                   |    6 +
 views/calendar/CMakeLists.txt                      |    4 +
 views/mail/CMakeLists.txt                          |   11 +
 views/memos/CMakeLists.txt                         |    4 +
 views/tasks/CMakeLists.txt                         |    6 +
 31 files changed, 284 insertions(+), 306 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3eb340f..50083be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,9 @@ set(GETTEXT_PO_DIR ${CMAKE_SOURCE_DIR}/po)
 # Required for 'disttest' and 'ditcheck' of DistTarget module
 set(PROJECT_DISTCONFIGURE_PARAMS
        -DENABLE_GTK_DOC=ON
+       -DENABLE_CONTACT_MAPS=ON
        -DWITH_HELP=ON
+       -DWITH_GLADE_CATALOG=ON
 )
 
 # Keep these two definitions in agreement.
@@ -163,7 +165,6 @@ include(CheckTarget)
 include(DistTargets)
 include(EvolutionMacros)
 include(GLibTools)
-include(GObjectIntrospection)
 include(GtkDoc)
 include(IconCache)
 include(InstalledTests)
@@ -380,27 +381,27 @@ endif(ENABLE_LIBCRYPTUI)
 # TNEF implementation
 # ******************************
 
-set(HAVE_LIBYTNEF_YTNEF_H OFF)
-set(TNEF_LDFLAGS -lytnef)
+add_printable_option(ENABLE_YTNEF "Enable yTNEF library usage" ON)
 
-set(CMAKE_REQUIRED_LIBRARIES ${TNEF_LDFLAGS})
-CHECK_C_SOURCE_COMPILES("#include <stdio.h>
-                       #include <ytnef.h>
-                       int main(void) { TNEFStruct *tnef; return 0; }" HAVE_YTNEF_H)
+if(ENABLE_YTNEF)
+       set(TNEF_LDFLAGS -lytnef)
 
-if(NOT HAVE_YTNEF_H)
+       set(CMAKE_REQUIRED_LIBRARIES ${TNEF_LDFLAGS})
        CHECK_C_SOURCE_COMPILES("#include <stdio.h>
-                               #include <libytnef/ytnef.h>
-                               int main(void) { TNEFStruct *tnef; return 0; }" HAVE_LIBYTNEF_YTNEF_H)
-endif(NOT HAVE_YTNEF_H)
-unset(CMAKE_REQUIRED_LIBRARIES)
+                               #include <ytnef.h>
+                               int main(void) { TNEFStruct *tnef; return 0; }" HAVE_YTNEF_H)
+
+       if(NOT HAVE_YTNEF_H)
+               CHECK_C_SOURCE_COMPILES("#include <stdio.h>
+                                       #include <libytnef/ytnef.h>
+                                       int main(void) { TNEFStruct *tnef; return 0; }" HAVE_LIBYTNEF_YTNEF_H)
+       endif(NOT HAVE_YTNEF_H)
+       unset(CMAKE_REQUIRED_LIBRARIES)
 
-if(HAVE_YTNEF_H OR HAVE_LIBYTNEF_YTNEF_H)
-       set(HAVE_TNEF ON)
-else(HAVE_YTNEF_H OR HAVE_LIBYTNEF_YTNEF_H)
-       set(HAVE_TNEF OFF)
-       set(TNEF_LDFLAGS)
-endif(HAVE_YTNEF_H OR HAVE_LIBYTNEF_YTNEF_H)
+       if((NOT HAVE_YTNEF_H) AND (NOT HAVE_LIBYTNEF_YTNEF_H))
+               message(FATAL_ERROR "Cannot find ytnef library, either install it or disable use of it by 
using -DENABLE_YTNEF=OFF argument to cmake command")
+       endif((NOT HAVE_YTNEF_H) AND (NOT HAVE_LIBYTNEF_YTNEF_H))
+endif(ENABLE_YTNEF)
 
 # ******************************
 # Bogofilter (spam filter)
@@ -657,33 +658,36 @@ add_pkgconfig_file(evolution-shell.pc.in evolution-shell-${INTERFACE_VERSION}.pc
 
 add_appdata_file(evolution.appdata.xml.in evolution.appdata.xml)
 
+add_subdirectory(addressbook)
+add_subdirectory(art)
+add_subdirectory(calendar)
+add_subdirectory(composer)
 add_subdirectory(data)
-add_subdirectory(libgnomecanvas)
+add_subdirectory(em-format)
 add_subdirectory(e-util)
 add_subdirectory(libemail-engine)
-add_subdirectory(shell)
-add_subdirectory(em-format)
-add_subdirectory(addressbook)
-add_subdirectory(composer)
+add_subdirectory(libgnomecanvas)
 add_subdirectory(mail)
-add_subdirectory(calendar)
-add_subdirectory(art)
-add_subdirectory(web-extensions)
-add_subdirectory(plugins)
 add_subdirectory(modules)
-#add_subdirectory(doc)
-#add_subdirectory(ui)
-#add_subdirectory(views)
-#add_subdirectory(po)
-#add_subdirectory(sounds)
+add_subdirectory(plugins)
+add_subdirectory(po)
+add_subdirectory(shell)
+add_subdirectory(sounds)
+add_subdirectory(ui)
+add_subdirectory(views)
+add_subdirectory(web-extensions)
+
+if(ENABLE_GTK_DOC)
+       add_subdirectory(doc)
+endif(ENABLE_GTK_DOC)
 
 #if(WITH_HELP)
 #      add_subdirectory(help)
 #endif(WITH_HELP)
 
-#if(GLADE_CATALOG)
-#      add_subdirectory(maint)
-#endif(GLADE_CATALOG)
+if(WITH_GLADE_CATALOG)
+       add_subdirectory(maint)
+endif(WITH_GLADE_CATALOG)
 
 if(ENABLE_SMIME)
        add_subdirectory(smime)
diff --git a/config.h.in b/config.h.in
index 2d474f8..a9c379c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -73,7 +73,7 @@
 #cmakedefine HAVE_LIBCRYPTUI 1
 
 /* Define if TNEF attachments parser should be built */
-#cmakedefine HAVE_TNEF 1
+#cmakedefine ENABLE_YTNEF 1
 
 /* Define if TNEF include header is <ytnef.h> */
 #cmakedefine HAVE_YTNEF_H 1
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..90bb2b5
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(reference)
diff --git a/doc/reference/CMakeLists.txt b/doc/reference/CMakeLists.txt
new file mode 100644
index 0000000..cea870c
--- /dev/null
+++ b/doc/reference/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory(evolution-mail-composer)
+add_subdirectory(evolution-mail-engine)
+add_subdirectory(evolution-mail-formatter)
+add_subdirectory(evolution-shell)
+add_subdirectory(evolution-util)
diff --git a/doc/reference/evolution-mail-composer/CMakeLists.txt 
b/doc/reference/evolution-mail-composer/CMakeLists.txt
new file mode 100644
index 0000000..ddc9fe2
--- /dev/null
+++ b/doc/reference/evolution-mail-composer/CMakeLists.txt
@@ -0,0 +1,14 @@
+set(SOURCEDIRS
+       ${CMAKE_SOURCE_DIR}/composer
+)
+
+set(DEPENDENCIES
+       evolution-mail-composer
+)
+
+set(IGNORE_HEADERS
+       e-composer-actions.h
+       e-composer-private.h
+)
+
+add_gtkdoc(evolution-mail-composer composer "" SOURCEDIRS DEPENDENCIES IGNORE_HEADERS)
diff --git a/doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml 
b/doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml.in
similarity index 93%
rename from doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml
rename to doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml.in
index fb2de95..207cbcd 100644
--- a/doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml
+++ b/doc/reference/evolution-mail-composer/evolution-mail-composer-docs.sgml.in
@@ -25,11 +25,6 @@
     <xi:include href="xml/e-composer-text-header.xml"/>
   </chapter>
 
-  <chapter id="object-tree">
-    <title>Object Hierarchy</title>
-     <xi:include href="xml/tree_index.sgml"/>
-  </chapter>
-
   <index id="api-index-full">
     <title>API Index</title>
     <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
diff --git a/doc/reference/evolution-mail-engine/CMakeLists.txt 
b/doc/reference/evolution-mail-engine/CMakeLists.txt
new file mode 100644
index 0000000..73acf50
--- /dev/null
+++ b/doc/reference/evolution-mail-engine/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(SOURCEDIRS
+       ${CMAKE_SOURCE_DIR}/libemail-engine
+)
+
+set(DEPENDENCIES
+       email-engine
+)
+
+set(IGNORE_HEADERS
+       e-mail-engine-enumtypes.h
+)
+
+add_gtkdoc(evolution-mail-engine email-engine "" SOURCEDIRS DEPENDENCIES IGNORE_HEADERS)
diff --git a/doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml 
b/doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml.in
similarity index 94%
rename from doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml
rename to doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml.in
index 8b3855f..01b7a03 100644
--- a/doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml
+++ b/doc/reference/evolution-mail-engine/evolution-mail-engine-docs.sgml.in
@@ -44,11 +44,6 @@
     <xi:include href="xml/mail-vfolder.xml"/>
   </chapter>
 
-  <chapter id="object-tree">
-    <title>Object Hierarchy</title>
-    <xi:include href="xml/tree_index.sgml"/>
-  </chapter>
-
   <index id="api-index-full">
     <title>API Index</title>
     <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
diff --git a/doc/reference/evolution-mail-formatter/CMakeLists.txt 
b/doc/reference/evolution-mail-formatter/CMakeLists.txt
new file mode 100644
index 0000000..4946326
--- /dev/null
+++ b/doc/reference/evolution-mail-formatter/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(SOURCEDIRS
+       ${CMAKE_SOURCE_DIR}/em-format
+)
+
+set(DEPENDENCIES
+       evolution-mail-formatter
+)
+
+set(IGNORE_HEADERS
+       e-mail-formatter-enumtypes.h
+)
+
+add_gtkdoc(evolution-mail-formatter em-format "" SOURCEDIRS DEPENDENCIES IGNORE_HEADERS)
diff --git a/doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml 
b/doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml.in
similarity index 94%
rename from doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml
rename to doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml.in
index 04af4fd..0465e0c 100644
--- a/doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml
+++ b/doc/reference/evolution-mail-formatter/evolution-mail-formatter-docs.sgml.in
@@ -44,11 +44,6 @@
     <xi:include href="xml/e-mail-part-utils.xml"/>
   </chapter>
 
-  <chapter id="object-tree">
-    <title>Object Hierarchy</title>
-    <xi:include href="xml/tree_index.sgml"/>
-  </chapter>
-
   <index id="api-index-full">
     <title>Index</title>
     <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
diff --git a/doc/reference/evolution-shell/CMakeLists.txt b/doc/reference/evolution-shell/CMakeLists.txt
new file mode 100644
index 0000000..d597cad
--- /dev/null
+++ b/doc/reference/evolution-shell/CMakeLists.txt
@@ -0,0 +1,17 @@
+set(SOURCEDIRS
+       ${CMAKE_SOURCE_DIR}/shell
+)
+
+set(DEPENDENCIES
+       email-engine
+       evolution-util
+       evolution-shell
+)
+
+set(IGNORE_HEADERS
+       evo-version.h
+       e-shell-window-private.h
+       e-shell-enumtypes.h
+)
+
+add_gtkdoc(evolution-shell shell "" SOURCEDIRS DEPENDENCIES IGNORE_HEADERS)
diff --git a/doc/reference/evolution-shell/evolution-shell-docs.sgml 
b/doc/reference/evolution-shell/evolution-shell-docs.sgml.in
similarity index 94%
rename from doc/reference/evolution-shell/evolution-shell-docs.sgml
rename to doc/reference/evolution-shell/evolution-shell-docs.sgml.in
index 3e03902..62cf28f 100644
--- a/doc/reference/evolution-shell/evolution-shell-docs.sgml
+++ b/doc/reference/evolution-shell/evolution-shell-docs.sgml.in
@@ -37,11 +37,6 @@
     <xi:include href="xml/e-shell-migrate.xml"/>
   </chapter>
 
-  <chapter id="object-tree">
-    <title>Object Hierarchy</title>
-    <xi:include href="xml/tree_index.sgml"/>
-  </chapter>
-
   <index id="api-index-full">
     <title>Index</title>
     <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
diff --git a/doc/reference/evolution-util/CMakeLists.txt b/doc/reference/evolution-util/CMakeLists.txt
new file mode 100644
index 0000000..4f499c5
--- /dev/null
+++ b/doc/reference/evolution-util/CMakeLists.txt
@@ -0,0 +1,49 @@
+set(SOURCEDIRS
+       ${CMAKE_SOURCE_DIR}/e-util
+)
+
+set(DEPENDENCIES
+       email-engine
+       evolution-util
+       evolution-shell
+)
+
+set(IGNORE_HEADERS
+       e-html-editor-actions.h
+       e-html-editor-private.h
+       e-marshal.h
+       e-table-col-dnd.h
+       e-table-defines.h
+       e-util-enumtypes.h
+       e-util-private.h
+       ea-calendar-cell.h
+       ea-calendar-item.h
+       ea-cell-table.h
+       ea-factory.h
+       ea-widgets.h
+       gal-a11y-e-cell.h
+       gal-a11y-e-cell-popup.h
+       gal-a11y-e-cell-registry.h
+       gal-a11y-e-cell-text.h
+       gal-a11y-e-cell-toggle.h
+       gal-a11y-e-cell-tree.h
+       gal-a11y-e-cell-vbox.h
+       gal-a11y-e-table-click-to-add-factory.h
+       gal-a11y-e-table-click-to-add.h
+       gal-a11y-e-table-column-header.h
+       gal-a11y-e-table-factory.h
+       gal-a11y-e-table-item-factory.h
+       gal-a11y-e-table-item.h
+       gal-a11y-e-table.h
+       gal-a11y-e-text-factory.h
+       gal-a11y-e-text.h
+       gal-a11y-e-tree-factory.h
+       gal-a11y-e-tree.h
+       gal-a11y-factory.h
+       gal-a11y-util.h
+       test-html-editor-units-bugs.h
+       test-html-editor-units-utils.h
+       test-keyfile-settings-backend.h
+)
+
+add_gtkdoc(evolution-util e-util "" SOURCEDIRS DEPENDENCIES IGNORE_HEADERS)
diff --git a/doc/reference/evolution-util/evolution-util-docs.sgml 
b/doc/reference/evolution-util/evolution-util-docs.sgml.in
similarity index 99%
rename from doc/reference/evolution-util/evolution-util-docs.sgml
rename to doc/reference/evolution-util/evolution-util-docs.sgml.in
index a7e12f8..3664898 100644
--- a/doc/reference/evolution-util/evolution-util-docs.sgml
+++ b/doc/reference/evolution-util/evolution-util-docs.sgml.in
@@ -313,11 +313,6 @@
     <xi:include href="xml/e-widget-undo.xml"/>
   </chapter>
 
-  <chapter id="object-tree">
-    <title>Object Hierarchy</title>
-    <xi:include href="xml/tree_index.sgml"/>
-  </chapter>
-
   <index id="api-index-full">
     <title>Index</title>
     <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
diff --git a/em-format/e-mail-extension-registry.c b/em-format/e-mail-extension-registry.c
index 4a02bf5..e2f7b68 100644
--- a/em-format/e-mail-extension-registry.c
+++ b/em-format/e-mail-extension-registry.c
@@ -41,7 +41,7 @@ G_DEFINE_ABSTRACT_TYPE (
  * EMailExtensionRegistry:
  *
  * The #EMailExtensionRegistry is an abstract class representing a registry
- * for #EMailExtension<!-//>s.
+ * for #EMailExtension<!-- -->s.
  *
  * #EMailParser and #EMailFormatter both have internally a registry object
  * based on the #EMailExtensionRegistry.
@@ -144,10 +144,10 @@ e_mail_extension_registry_init (EMailExtensionRegistry *registry)
  * @registry: An #EMailExtensionRegistry
  * @mime_type: A string with mime-type to look up
  *
- * Tries to lookup list of #EMailExtension<!-//>s that has registryed themselves
+ * Tries to lookup list of #EMailExtension<!-- -->s that has registryed themselves
  * as handlers for the @mime_type.
  *
- * Return value: Returns #GQueue of #EMailExtension<!-//>s or %NULL when there
+ * Return value: Returns #GQueue of #EMailExtension<!-- -->s or %NULL when there
  * are no extension registryed for given @mime_type.
  */
 GQueue *
@@ -168,7 +168,7 @@ e_mail_extension_registry_get_for_mime_type (EMailExtensionRegistry *registry,
  * Tries to lookup fallback parsers for given mime type. For instance, for
  * multipart/alternative, it will try to lookup multipart/ * parser.
  *
- * Return Value: Returns #QGueue of #EMailExtension<!-//>>s or %NULL when there
+ * Return Value: Returns #QGueue of #EMailExtension<!-- -->s or %NULL when there
  * are no extensions registryed for the fallback type.
  */
 GQueue *
diff --git a/em-format/e-mail-parser-extension.c b/em-format/e-mail-parser-extension.c
index 3030d26..ae9ef7d 100644
--- a/em-format/e-mail-parser-extension.c
+++ b/em-format/e-mail-parser-extension.c
@@ -43,7 +43,7 @@ e_mail_parser_extension_init (EMailParserExtension *extension)
  * @out_mail_parts: a #GQueue to deposit #EMailPart instances
  *
  * A virtual function reimplemented in all mail parser extensions. The function
- * decodes and parses the @mime_part, appending one or more #EMailPart<!-//>s
+ * decodes and parses the @mime_part, appending one or more #EMailPart<!-- -->s
  * to the @out_mail_parts queue.
  *
  * When the function is unable to parse the @mime_part (either because it's
@@ -62,7 +62,7 @@ e_mail_parser_extension_init (EMailParserExtension *extension)
  * Implementation of this function must be thread-safe.
  *
  * Returns: %TRUE if the @mime_part was handled (even if no
- *          #EMailPart<!-//>s were added to @out_mail_parts), or
+ *          #EMailPart<!-- -->s were added to @out_mail_parts), or
  *          %FALSE if the @mime_part was not handled
  */
 gboolean
diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c
index b5fe91e..335bee9 100644
--- a/em-format/e-mail-parser.c
+++ b/em-format/e-mail-parser.c
@@ -334,7 +334,7 @@ e_mail_parser_new (CamelSession *session)
  * @message: a #CamelMimeMessage
  * @cancellable: (allow-none) a #GCancellable
  *
- * Parses the @message synchronously. Returns a list of #EMailPart<!-//>s which
+ * Parses the @message synchronously. Returns a list of #EMailPart<!-- -->s which
  * represents structure of the message and additional properties of each part.
  *
  * Note that this function can block for a while, so it's not a good idea to call
diff --git a/em-format/e-mail-stripsig-filter.c b/em-format/e-mail-stripsig-filter.c
index db68689..0371cac 100644
--- a/em-format/e-mail-stripsig-filter.c
+++ b/em-format/e-mail-stripsig-filter.c
@@ -155,7 +155,7 @@ e_mail_stripsig_filter_init (EMailStripSigFilter *filter)
 /**
  * e_mail_stripsig_filter_new:
  * @text_plain_only: Whether should look for a text/plain signature
- * delimiter "-- \n" only or also an HTML signature delimiter "-- <BR>".
+ * delimiter "-- \n" only or also an HTML signature delimiter "-- &lt;BR&gt;".
  *
  * Creates a new stripsig filter.
  *
diff --git a/maint/CMakeLists.txt b/maint/CMakeLists.txt
new file mode 100644
index 0000000..6d3dd32
--- /dev/null
+++ b/maint/CMakeLists.txt
@@ -0,0 +1,52 @@
+pkg_check_variable(glade_prefix gladeui-2.0 prefix)
+pkg_check_variable(glade_catalogdir gladeui-2.0 catalogdir)
+pkg_check_variable(glade_moduledir gladeui-2.0 moduledir)
+
+# To honor configured prefix, but still use the right place
+string(REPLACE "${glade_prefix}" "${CMAKE_INSTALL_PREFIX}" glade_catalogdir "${glade_catalogdir}")
+string(REPLACE "${glade_prefix}" "${CMAKE_INSTALL_PREFIX}" glade_moduledir "${glade_moduledir}")
+
+install(FILES evolution.xml
+       DESTINATION ${glade_catalogdir}
+)
+
+set(DEPENDENCIES
+       evolution-calendar
+       evolution-mail
+       evolution-util
+)
+
+add_library(gladeevolution MODULE
+       gladeevolution.c
+)
+
+add_dependencies(gladeevolution
+       ${DEPENDENCIES}
+)
+
+target_compile_definitions(gladeevolution PRIVATE
+       -DG_LOG_DOMAIN=\"gladeevolution\"
+)
+
+target_compile_options(gladeevolution PUBLIC
+       ${EVOLUTION_DATA_SERVER_CFLAGS}
+       ${GNOME_PLATFORM_CFLAGS}
+)
+
+target_include_directories(gladeevolution PUBLIC
+       ${CMAKE_BINARY_DIR}
+       ${CMAKE_SOURCE_DIR}
+       ${CMAKE_CURRENT_BINARY_DIR}
+       ${EVOLUTION_DATA_SERVER_INCLUDE_DIRS}
+       ${GNOME_PLATFORM_INCLUDE_DIRS}
+)
+
+target_link_libraries(gladeevolution
+       ${DEPENDENCIES}
+       ${EVOLUTION_DATA_SERVER_LDFLAGS}
+       ${GNOME_PLATFORM_LDFLAGS}
+)
+
+install(TARGETS gladeevolution
+       DESTINATION ${glade_moduledir}
+)
diff --git a/maint/gladeevolution.c b/maint/gladeevolution.c
new file mode 100644
index 0000000..0a4be08
--- /dev/null
+++ b/maint/gladeevolution.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2016 Red Hat, Inc. (www.redhat.com)
+ *
+ * This library is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This library 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 Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/* Really nothing to be here, the glade catalog requires the module
+   and this source file is here "to have something to compile" only.
+ */
\ No newline at end of file
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
index b6b8e7d..257115a 100644
--- a/modules/CMakeLists.txt
+++ b/modules/CMakeLists.txt
@@ -115,14 +115,14 @@ if(ENABLE_WEATHER)
        add_subdirectory(cal-config-weather)
 endif(ENABLE_WEATHER)
 
+if(ENABLE_YTNEF)
+       add_subdirectory(tnef-attachment)
+endif(ENABLE_YTNEF)
+
 if(HAVE_LDAP)
        add_subdirectory(book-config-ldap)
 endif(HAVE_LDAP)
 
-if(HAVE_TNEF)
-       add_subdirectory(tnef-attachment)
-endif(HAVE_TNEF)
-
 if(WITH_BOGOFILTER)
        add_subdirectory(bogofilter)
 endif(WITH_BOGOFILTER)
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..9e81642
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1 @@
+intltool_setup_po_dir()
diff --git a/sounds/CMakeLists.txt b/sounds/CMakeLists.txt
new file mode 100644
index 0000000..c80e758
--- /dev/null
+++ b/sounds/CMakeLists.txt
@@ -0,0 +1,3 @@
+install(FILES default_alarm.wav
+       DESTINATION ${soundsdir}
+)
diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt
new file mode 100644
index 0000000..996d072
--- /dev/null
+++ b/ui/CMakeLists.txt
@@ -0,0 +1,9 @@
+install(FILES  evolution-calendars.ui
+               evolution-contacts.ui
+               evolution-mail.ui
+               evolution-mail-reader.ui
+               evolution-memos.ui
+               evolution-shell.ui
+               evolution-tasks.ui
+       DESTINATION ${uidir}
+)
diff --git a/views/CMakeLists.txt b/views/CMakeLists.txt
new file mode 100644
index 0000000..0f8a14a
--- /dev/null
+++ b/views/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory(addressbook)
+add_subdirectory(calendar)
+add_subdirectory(mail)
+add_subdirectory(memos)
+add_subdirectory(tasks)
diff --git a/views/addressbook/CMakeLists.txt b/views/addressbook/CMakeLists.txt
new file mode 100644
index 0000000..d69c2d8
--- /dev/null
+++ b/views/addressbook/CMakeLists.txt
@@ -0,0 +1,6 @@
+install(FILES  Address_Cards.galview
+               By_Company.galview
+               Phone_List.galview
+               galview.xml
+       DESTINATION ${viewsdir}/addressbook
+)
diff --git a/views/calendar/CMakeLists.txt b/views/calendar/CMakeLists.txt
new file mode 100644
index 0000000..906a2c2
--- /dev/null
+++ b/views/calendar/CMakeLists.txt
@@ -0,0 +1,4 @@
+install(FILES  List_View.galview
+               galview.xml
+       DESTINATION ${viewsdir}/calendar
+)
diff --git a/views/mail/CMakeLists.txt b/views/mail/CMakeLists.txt
new file mode 100644
index 0000000..e38ec10
--- /dev/null
+++ b/views/mail/CMakeLists.txt
@@ -0,0 +1,11 @@
+install(FILES  As_Sent_Folder.galview
+               By_Follow_Up_Flag.galview
+               By_Sender.galview
+               By_Status.galview
+               By_Subject.galview
+               Messages.galview
+               Wide_View_Normal.galview
+               Wide_View_Sent.galview
+               galview.xml
+       DESTINATION ${viewsdir}/mail
+)
diff --git a/views/memos/CMakeLists.txt b/views/memos/CMakeLists.txt
new file mode 100644
index 0000000..457418e
--- /dev/null
+++ b/views/memos/CMakeLists.txt
@@ -0,0 +1,4 @@
+install(FILES  Memos.galview
+               galview.xml
+       DESTINATION ${viewsdir}/memos
+)
diff --git a/views/tasks/CMakeLists.txt b/views/tasks/CMakeLists.txt
new file mode 100644
index 0000000..1e70f00
--- /dev/null
+++ b/views/tasks/CMakeLists.txt
@@ -0,0 +1,6 @@
+install(FILES  Tasks.galview
+               With_DueDate.galview
+               With_Status.galview
+               galview.xml
+       DESTINATION ${viewsdir}/tasks
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]