914983a0dc
with a few hacks right now: - The tip.png, warning.png and note.png images are missing from the pdfs and I have no idea how to tell fop how to find them. - Disabling/enabling building the guides via option currently doesn't work (probably too many macros :-), so comment out the subdir instead. - Right now, in order to build the devleopers guide we need to do the following in the source docbook directory: touch wsdg_graphics/toolbar/dummy.dummy Apart from these: The build works with a pristine docbook dir (svn status --no-ignore). svn path=/trunk/; revision=32004
50 lines
1.1 KiB
CMake
50 lines
1.1 KiB
CMake
#
|
|
# $Id$
|
|
#
|
|
# - Find unix commands from cygwin
|
|
# This module looks for some usual Unix commands.
|
|
#
|
|
|
|
INCLUDE(FindCygwin)
|
|
|
|
FIND_PROGRAM(XMLLINT_EXECUTABLE
|
|
NAMES
|
|
xmllint
|
|
PATHS
|
|
${CYGWIN_INSTALL_PATH}/bin
|
|
/bin
|
|
/usr/bin
|
|
/usr/local/bin
|
|
/sbin
|
|
)
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XMLLINT DEFAULT_MSG XMLLINT_EXECUTABLE)
|
|
|
|
MARK_AS_ADVANCED(XMLLINT_EXECUTABLE)
|
|
|
|
# Validate XML
|
|
MACRO(VALIDATE_XML _validated _sources)
|
|
# FIXME: How do I extract the first element of a variable containing a
|
|
# list of values? Isn't there a "cleaner" solution?
|
|
# Oh, and I have no idea why I can't directly use _source instead of
|
|
# having to introduce _tmpsource.
|
|
FOREACH(_tmpsource ${${_sources}})
|
|
set(_source ${_tmpsource})
|
|
BREAK()
|
|
ENDFOREACH()
|
|
ADD_CUSTOM_COMMAND(
|
|
OUTPUT
|
|
${_validated}
|
|
COMMAND ${XMLLINT_EXECUTABLE}
|
|
--path "${CMAKE_CURRENT_SOURCE_DIR}:${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_CURRENT_BINARY_DIR}/wsluarm_src"
|
|
--valid
|
|
--noout
|
|
${_source}
|
|
COMMAND touch
|
|
${_validated}
|
|
DEPENDS
|
|
${${_sources}}
|
|
)
|
|
ENDMACRO(VALIDATE_XML)
|