Bladeren bron

cmake: Fixed builddoc flow for javascript documentation

Fixed a few small typos for handling node as well as a
small conditional for building PYTHON.

    * Fixed some NODE_EXECUTABLE->NODEJS_EXECUTABLE instances
    which must have been missed from a previous commit.

    * Added a qualifier for python documentation so both
    BUILDSWIGPYTHON AND BUILDSWIG must be set to add
    dependencies for pydoc.

Signed-off-by: Noel Eck <noel.eck@intel.com>
Noel Eck 8 jaren geleden
bovenliggende
commit
527615758a
3 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 2
    2
      CMakeLists.txt
  2. 1
    1
      cmake/modules/FindNode.cmake
  3. 1
    1
      src/CMakeLists.txt

+ 2
- 2
CMakeLists.txt Bestand weergeven

@@ -152,9 +152,9 @@ if (BUILDDOC)
152 152
       configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxy/node/${JSDOC_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${JSDOC_FILE} COPYONLY)
153 153
     endforeach()
154 154
     add_custom_target(jsdoc ALL
155
-      COMMAND ${NODE_EXECUTABLE} docgen -m upm -i xml -t ${CMAKE_CURRENT_SOURCE_DIR}/src -g ../../
155
+      COMMAND ${NODEJS_EXECUTABLE} docgen -m upm -i xml -t ${CMAKE_CURRENT_SOURCE_DIR}/src -g ../../
156 156
       COMMAND ${YUIDOC_EXECUTABLE} -C --no-sort --helpers generators/yuidoc/helper.js --themedir generators/yuidoc/tmpl -o html/node jsdoc/yuidoc/upm
157
-      COMMAND ${NODE_EXECUTABLE} tolower -i html/node
157
+      COMMAND ${NODEJS_EXECUTABLE} tolower -i html/node
158 158
       DEPENDS doc
159 159
       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
160 160
       COMMENT "Generating API documentation with Yuidoc" VERBATIM

+ 1
- 1
cmake/modules/FindNode.cmake Bestand weergeven

@@ -94,4 +94,4 @@ if (NODEJS_EXECUTABLE)
94 94
     mark_as_advanced (NODEJS_EXECUTABLE)
95 95
 endif ()
96 96
 
97
-mark_as_advanced (NODE_EXECUTABLE)
97
+mark_as_advanced (NODEJS_EXECUTABLE)

+ 1
- 1
src/CMakeLists.txt Bestand weergeven

@@ -166,7 +166,7 @@ macro(upm_doxygen)
166 166
       set (classname ${libname})
167 167
     endif()
168 168
     set (CMAKE_SWIG_FLAGS -DDOXYGEN=${DOXYGEN_FOUND})
169
-    if (BUILDSWIG)
169
+    if (BUILDSWIGPYTHON AND BUILDSWIG)
170 170
       add_dependencies (_pyupm_${libname} pyupm_doxy2swig)
171 171
       add_dependencies (pydoc _pyupm_${libname})
172 172
     else ()