Skip to content

Commit f1f579d

Browse files
authored
Fix for CacheSettings documentation generation (#1352)
Added CMake settings to be able to generate documentation for code under ifdef flag OLP_SDK_ENABLE_DEFAULT_CACHE. Resolves: OLPEDGE-2737 Signed-off-by: Yevhen Krasilnyk <[email protected]>
1 parent 9e6759a commit f1f579d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
LD_PRELOAD: "/lib/x86_64-linux-gnu/libSegFault.so"
4949
SEGFAULT_SIGNALS: "all"
5050
steps:
51-
- bash: env && ls -la $ANDROID_HOME && ls -la $ANDROID_HOME/ndk-bundle
51+
- bash: env && ls -la $ANDROID_HOME
5252
displayName: 'Verification of prerequisites'
5353
- bash: scripts/android/build.sh
5454
displayName: 'Android build and Examples'

docs/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ set(COMPONENT_DIRS
4040
)
4141
set(MAINPAGE_FILE README.md)
4242
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE ${MAINPAGE_FILE})
43+
set(DOXYGEN_ENABLE_PREPROCESSING YES)
44+
set(DOXYGEN_MACRO_EXPANSION YES)
45+
set(DOXYGEN_EXPAND_ONLY_PREDEF YES)
46+
set(DOXYGEN_PREDEFINED OLP_SDK_ENABLE_DEFAULT_CACHE)
4347
doxygen_add_docs(docs
4448
${COMPONENT_DIRS} ${MAINPAGE_FILE}
4549
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
4650
COMMENT "Generate HTML documentation")
47-

0 commit comments

Comments
 (0)