1 # - OpenSync Internal Definitions and Macros
2 # Set OpenSync helper macros to build Plugins and internal definitions
3 # for OpenSync data directories like the locations of capabilities files,
4 # plugin configuration, ...
6 # OPENSYNC_PLUGINDIR Location of OpenSync plugins
7 # OPENSYNC_FORMATSDIR Location of OpenSync format plugins
8 # OPENSYNC_CAPABILITIESDIR Location of OpenSync capabilities files
9 # OPENSYNC_CONFIGDIR Location of OpenSync plugin default configurations/templates
10 # OPENSYNC_DESCRIPTIONSDIR Location of OpenSync descriptions files
11 # OPENSYNC_SCHEMASDIR Location of OpenSync related schema files
13 # OPENSYNC_INCLUDE_DIR Location of OpenSync headers
14 # OPENSYNC_DATA_DIR Location of OpenSync data directory
16 # OPENSYNC_TRACE True if tracing is enabled (debugging with env. var. OSYNC_TRACE)
17 # OPENSYNC_DEBUG_MODULES True if modules shouldn't get unloaded by OpenSync, to keep symbols of plugins
18 # OPENSYNC_UNITTESTS True if unit tests should be build
20 # Copyright (c) 2007-2008 Daniel Gollub <dgollub@suse.de>
23 INCLUDE( OpenSyncPlatforms )
25 # OpenSync macros and default settings:
27 # Installation directories:
29 SET( OPENSYNC_API_DIR "libopensync${OPENSYNC_LIBVERSION_SOVERSION}" )
30 SET( OPENSYNC_PLUGINDIR "${LIB_INSTALL_DIR}/${OPENSYNC_API_DIR}/plugins" CACHE PATH "OpenSync plugin directory" )
31 SET( OPENSYNC_FORMATSDIR "${LIB_INSTALL_DIR}/${OPENSYNC_API_DIR}/formats" CACHE PATH "OpenSync format plugin directory" )
32 SET( OPENSYNC_PYTHON_PLUGINDIR "${LIB_INSTALL_DIR}/${OPENSYNC_API_DIR}/python-plugins" CACHE PATH "OpenSync python plugin directory" )
34 SET( OPENSYNC_CAPABILITIESDIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}/capabilities" CACHE PATH "OpenSync capabilities directory" )
35 SET( OPENSYNC_CONFIGDIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}/defaults" CACHE PATH "OpenSync plugin configuration directory" )
36 SET( OPENSYNC_DESCRIPTIONSDIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}/descriptions" CACHE PATH "OpenSync descriptions directory" )
37 SET( OPENSYNC_SCHEMASDIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}/schemas" CACHE PATH "OpenSync schemas directory" )
38 SET( OPENSYNC_UPDATESDIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}/updates" CACHE PATH "OpenSync configuration updates directory" )
41 SET( OPENSYNC_LIBRARIES_DIR "${LIB_INSTALL_DIR}" CACHE PATH "OpenSync library location" )
42 SET( OPENSYNC_LIBEXEC_DIR "${LIBEXEC_INSTALL_DIR}/${OPENSYNC_API_DIR}" CACHE PATH "OpenSync libexec location" )
43 SET( OPENSYNC_INCLUDE_DIR "${INCLUDE_INSTALL_DIR}/${OPENSYNC_API_DIR}" CACHE PATH "OpenSync headers location" )
44 SET( OPENSYNC_DATA_DIR "${SHARE_INSTALL_DIR}/${OPENSYNC_API_DIR}" CACHE PATH "OpenSync data directory" )
46 # OpenSync build options:
48 IF ( NOT CMAKE_BUILD_TYPE )
49 SET( CMAKE_BUILD_TYPE RelWithDebInfo )
50 ENDIF ( NOT CMAKE_BUILD_TYPE )
52 SET( OPENSYNC_TRACE TRUE CACHE BOOL "Debugging/Trace output of OpenSync" )
53 SET( OPENSYNC_DEBUG_MODULES FALSE CACHE BOOL "Debugging modules. Avhoid unload of modules." )
54 SET( OPENSYNC_UNITTESTS FALSE CACHE BOOL "Build OpenSync unit tests." )
55 SET( OPENSYNC_PYTHONBINDINGS TRUE CACHE BOOL "Build OpenSync with Python bindings." )