summaryrefslogtreecommitdiffstats
path: root/cmake/UseDoxygen.cmake
diff options
context:
space:
mode:
authorRick Lei <ricklei@gmail.com>2015-01-14 15:11:43 +0100
committerRick Lei <ricklei@gmail.com>2015-01-14 15:11:43 +0100
commitc4378784ae2caec57634f9f04bcb3dcddc673f36 (patch)
tree70bbdb1c348803006a7cbf2092da65312720a386 /cmake/UseDoxygen.cmake
parent133cee578e04e561bb17e37393bbf7e427522560 (diff)
downloadfastd-c4378784ae2caec57634f9f04bcb3dcddc673f36.tar
fastd-c4378784ae2caec57634f9f04bcb3dcddc673f36.zip
Add Android 4.1+ support. See doc/README-Android.md for build HOWTO.
* Update CMake files to work with android-cmake * Use unix domain socket for communicating with Android GUI * May also run standalone but requires rooted Android device
Diffstat (limited to 'cmake/UseDoxygen.cmake')
-rw-r--r--cmake/UseDoxygen.cmake14
1 files changed, 13 insertions, 1 deletions
diff --git a/cmake/UseDoxygen.cmake b/cmake/UseDoxygen.cmake
index ae7c8d7..66978fc 100644
--- a/cmake/UseDoxygen.cmake
+++ b/cmake/UseDoxygen.cmake
@@ -57,13 +57,25 @@ macro(usedoxygen_set_default name value type docstring)
endif()
endmacro()
-find_package(Doxygen)
+if(ANDROID)
+ find_host_package(Doxygen)
+else(ANDROID)
+ find_package(Doxygen)
+endif(ANDROID)
if(DOXYGEN_FOUND)
+ if(ANDROID)
+ # android-cmake doesn't provide a find_host_file and here's the workaround
+ set(_save_root_path ${CMAKE_FIND_ROOT_PATH})
+ set(CMAKE_FIND_ROOT_PATH)
+ endif(ANDROID)
find_file(DOXYFILE_IN "Doxyfile.in"
PATHS "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_ROOT}/Modules/"
NO_DEFAULT_PATH
DOC "Path to the doxygen configuration template file")
+ if(ANDROID)
+ set(CMAKE_FIND_ROOT_PATH $_save_root_path)
+ endif(ANDROID)
set(DOXYFILE "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DOXYFILE_IN DEFAULT_MSG "DOXYFILE_IN")