diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-06 22:21:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-06 22:21:06 +0000 |
commit | 0f04ca44aff45042585423de6a0c0faccd0b299e (patch) | |
tree | 49de0ba5a5d44f003c152da1283de2f3e9f7e3ee | |
parent | b925432fbffcf0c395278da95672cd09e63da9a7 (diff) | |
download | other-0f04ca44aff45042585423de6a0c0faccd0b299e.tar.gz other-0f04ca44aff45042585423de6a0c0faccd0b299e.zip |
Add preliminary apidox support to CMake
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1251898 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rwxr-xr-x[-rw-r--r--] | admin/doxygen.sh | 0 | ||||
-rwxr-xr-x | cmake/generate_apidox | 17 | ||||
-rwxr-xr-x | cmake/install_apidox | 12 |
3 files changed, 29 insertions, 0 deletions
diff --git a/admin/doxygen.sh b/admin/doxygen.sh index 3e233d7..3e233d7 100644..100755 --- a/admin/doxygen.sh +++ b/admin/doxygen.sh diff --git a/cmake/generate_apidox b/cmake/generate_apidox new file mode 100755 index 0000000..f13f11d --- /dev/null +++ b/cmake/generate_apidox @@ -0,0 +1,17 @@ +#!/bin/bash + +top_srcdir=${1} +top_builddir=${2} +kde_libs_htmldir=${3} +export QTDOCDIR=${4} + +if [[ ! -d "${top_srcdir}/doc/common/" ]]; then + export DOXDATA=$(kde_libs_htmldir)/en/common +fi + +abs_top_srcdir=$(cd ${top_srcdir} && pwd) + +rm -rf ${top_builddir}/${kde_libs_htmldir}/en +mkdir -p ${top_builddir}/${kde_libs_htmldir}/en +cd ${top_builddir}/${kde_libs_htmldir}/en +${abs_top_srcdir}/admin/doxygen.sh --modulename --installdir=${top_builddir}/${kde_libs_htmldir}/en ${abs_top_srcdir} diff --git a/cmake/install_apidox b/cmake/install_apidox new file mode 100755 index 0000000..b757f79 --- /dev/null +++ b/cmake/install_apidox @@ -0,0 +1,12 @@ +#!/bin/bash + +top_srcdir=${1} +top_builddir=${2} +kde_libs_htmldir=${3} +installdir=${DESTDIR} + +abs_top_srcdir=$(cd ${top_srcdir} && pwd) + +cd ${top_builddir} +mkdir -p ${installdir}/${kde_libs_htmldir}/en +cp -Rp ${top_builddir}/${kde_libs_htmldir}/en ${installdir}/${kde_libs_htmldir}/ |