"Fossies" - the Fresh Open Source Software Archive

Member "darktable-2.6.3/src/external/rawspeed/cmake/Modules/run-xmllint.cmake" (19 Oct 2019, 690 Bytes) of package /linux/misc/darktable-2.6.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "run-xmllint.cmake": 2.6.2_vs_2.6.3.

    1 macro (check_xml XML XSD)
    2   get_filename_component(FILENAME "${XML}" NAME)
    3 
    4   set(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.touch")
    5 
    6   set(TMPNAME "validate-${FILENAME}")
    7 
    8   add_custom_command(
    9     OUTPUT  "${TOUCH}"
   10     COMMAND "$<TARGET_FILE:xmllint>" --nonet --valid --noout --schema "${XSD}" "${XML}"
   11     COMMAND "${CMAKE_COMMAND}" -E touch "${TOUCH}" # will be empty!
   12     DEPENDS xmllint "${XML}" "${XSD}"
   13     COMMENT "Checking validity of ${FILENAME}"
   14     VERBATIM
   15   )
   16 
   17   add_custom_target(
   18     ${TMPNAME}
   19     DEPENDS "${TOUCH}" # will be empty!
   20     DEPENDS "${XML}"
   21   )
   22 
   23   add_dependencies(check-rawspeed ${TMPNAME})
   24   add_dependencies(rawspeed ${TMPNAME})
   25 endmacro (check_xml)