Package: bladerf / 0.2017.12~rc1-2

0005-host-libbladeRF-doxygen-fix-dependencies-for-rebuild.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 74d28c5898be021fefd8c6ccb8d1b9e55e8af72f Mon Sep 17 00:00:00 2001
From: Rey Tucker <rey.tucker@nuand.com>
Date: Mon, 11 Dec 2017 18:01:45 -0500
Subject: [PATCH 05/15] host: libbladeRF: doxygen: fix dependencies for rebuild

Previously, cmake would only rebuild the doxygen output if libbladeRF.h
or the Doxyfile itself changed. Now, it will be rebuilt if any of the
examples, long-form documentations, or images change as well.
---
 host/libraries/libbladeRF/CMakeLists.txt | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/host/libraries/libbladeRF/CMakeLists.txt b/host/libraries/libbladeRF/CMakeLists.txt
index 109ee097..c3128360 100644
--- a/host/libraries/libbladeRF/CMakeLists.txt
+++ b/host/libraries/libbladeRF/CMakeLists.txt
@@ -466,15 +466,23 @@ if(BUILD_LIBBLADERF_DOCUMENTATION)
 
         set(LOGO_IMAGE "${CMAKE_CURRENT_SOURCE_DIR}/doc/images/logo.png")
 
+        set(DOXYGEN_SOURCE_FILES
+            ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen/Doxyfile
+            ${CMAKE_CURRENT_SOURCE_DIR}/include/libbladeRF.h
+            ${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen/*.dox
+            ${CMAKE_CURRENT_SOURCE_DIR}/doc/examples/*
+            ${CMAKE_CURRENT_SOURCE_DIR}/doc/images/*
+        )
+
         configure_file(
             ${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen/Doxyfile.in
             ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen/Doxyfile
             @ONLY
-            )
+        )
 
         add_custom_command(
             OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen/html/index.html
-            DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen/Doxyfile ${CMAKE_CURRENT_SOURCE_DIR}/include/libbladeRF.h
+            DEPENDS ${DOXYGEN_SOURCE_FILES}
             COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen/Doxyfile
             WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen
             COMMENT "Generating libbladeRF API documentation via Doxygen in: ${CMAKE_CURRENT_BINARY_DIR}/doc/doxygen"
-- 
2.11.0