Generate the API documentation in a reproducible way.
authorPeter Pentchev <roam@ringlet.net>
Sun, 17 Jan 2016 00:03:10 +0000 (02:03 +0200)
committerAndy Green <andy.green@linaro.org>
Mon, 18 Jan 2016 04:07:07 +0000 (12:07 +0800)
Sort the list of source files before passing them to the kernel-doc
script so that it always outputs the discovered functions and
structures in the same order.

CMakeLists.txt

index 09e366f..763c652 100644 (file)
@@ -977,6 +977,7 @@ if (UNIX)
        # TODO: Fix this on Windows.
        message("Generating API documentation")
        file(GLOB C_FILES "${PROJECT_SOURCE_DIR}/lib/*.c")
+       list(SORT C_FILES)
        execute_process(COMMAND "${CMAKE_COMMAND}" -E make_directory "${PROJECT_BINARY_DIR}/doc/")
 
        execute_process(