Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 committed Mar 18, 2024
1 parent 7b2121e commit dd04dac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions swilib/include/swilib.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once
/**
* @mainpage
* <b>Choose platform:</b>
* - <a href="../SG/index.html">SG</a> - SL65, C65, CX70, ...
* - <a href="../SG_X75/index.html">X75</a> - CX75, M75, CF75, ...
* - <a href="../NSG/index.html">NSG</a> - C81, S75, SL75, S68, ...
* - <a href="../NSG_ELKA/index.html">ELKA</a> - E71, EL71, ...
*
* <b>Useful links:</b>
* - <a href="topics.html">List API methods (swilib.h)</a>
* - <a href="https://github.com/siemens-mobile-hacks/sdk">SDK</a>
* @addtogroup SWILIB
Expand Down
16 changes: 15 additions & 1 deletion swilib/tools/gen-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
set -e
set -x

export PATH="/opt/doxygen/bin/:$PATH"

cd $(dirname $0)/../
[[ -d doxygen-awesome-css ]] || git submodule add https://github.com/jothepro/doxygen-awesome-css.git
doxygen Doxyfile

PREDEFINED="SWILIB_LIBC SWILIB_LIBPNG SWILIB_ZLIB SWILIB_OPENSSL SWILIB_LEGACY_COMPAT SWILIB_MODERN __swilib_begin __swilib_end DOXYGEN"
PROJECT_NAME="SWILIB API"

mkdir -p html/swilib/SG
mkdir -p html/swilib/SG_X75
mkdir -p html/swilib/NSG
mkdir -p html/swilib/NSG_ELKA

( cat Doxyfile ; echo "HTML_OUTPUT=html/swilib/SG"; echo "PREDEFINED=$PREDEFINED"; echo "PROJECT_NAME=$PROJECT_NAME (SG)&nbsp;&nbsp;&nbsp;&nbsp;" ) | doxygen -
( cat Doxyfile ; echo "HTML_OUTPUT=html/swilib/SG_X75"; echo "PREDEFINED=$PREDEFINED X75"; echo "PROJECT_NAME=$PROJECT_NAME (X75)&nbsp;&nbsp;&nbsp;&nbsp;" ) | doxygen -
( cat Doxyfile ; echo "HTML_OUTPUT=html/swilib/NSG"; echo "PREDEFINED=$PREDEFINED NEWSGOLD"; echo "PROJECT_NAME=$PROJECT_NAME (NSG)&nbsp;&nbsp;&nbsp;&nbsp;" ) | doxygen -
( cat Doxyfile ; echo "HTML_OUTPUT=html/swilib/NSG_ELKA"; echo "PREDEFINED=$PREDEFINED NEWSGOLD"; echo "PROJECT_NAME=$PROJECT_NAME (ELKA)&nbsp;&nbsp;&nbsp;&nbsp;" ) | doxygen -

0 comments on commit dd04dac

Please sign in to comment.