~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to cmake/modules/FindXsltproc.cmake

  • Committer: Package Import Robot
  • Author(s): Rohan Garg, Rohan Garg, Philip Muškovac
  • Date: 2013-11-23 17:36:44 UTC
  • mfrom: (1.1.102)
  • Revision ID: package-import@ubuntu.com-20131123173644-p5ow94192ezsny8g
Tags: 4:4.11.80-0ubuntu1
[ Rohan Garg ]
* New upstream beta release
  - Bump akonadi requirement to 1.10.45
  - Update install files
  - Update symbols

[ Philip Muškovac ]
* kdepimlibs-dev/-dbg breaks/replaces kdepim-runtime/-dbg (<< 4:4.11.80)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Find xsltproc executable and provide a macro to generate D-Bus interfaces.
 
2
#
 
3
# The following variables are defined :
 
4
# XSLTPROC_EXECUTABLE - path to the xsltproc executable
 
5
# Xsltproc_FOUND - true if the program was found
 
6
#
 
7
find_program(XSLTPROC_EXECUTABLE xsltproc DOC "Path to the xsltproc executable")
 
8
mark_as_advanced(XSLTPROC_EXECUTABLE)
 
9
 
 
10
if(XSLTPROC_EXECUTABLE)
 
11
  set(Xsltproc_FOUND TRUE)
 
12
 
 
13
  # Macro to generate a D-Bus interface description from a KConfigXT file
 
14
  macro(kcfg_generate_dbus_interface _kcfg _name)
 
15
    add_custom_command(
 
16
      OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_name}.xml
 
17
      COMMAND ${XSLTPROC_EXECUTABLE} --stringparam interfaceName ${_name}
 
18
      ${CMAKE_SOURCE_DIR}/akonadi/kcfg2dbus.xsl
 
19
      ${_kcfg}
 
20
      > ${CMAKE_CURRENT_BINARY_DIR}/${_name}.xml
 
21
      DEPENDS ${CMAKE_SOURCE_DIR}/akonadi/kcfg2dbus.xsl
 
22
      ${_kcfg}
 
23
      )
 
24
  endmacro()
 
25
endif()
 
26