Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CXX-2745 apply precursor changes to Doxygen and CMake configs #1166

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

eramongodb
Copy link
Collaborator

@eramongodb eramongodb commented Jul 3, 2024

Summary

Precursor changes related to CXX-2745 concerning Doxygen and CMake configs. Verified by this patch.

Doxygen

In an effort to better align the Doxygen API documentation with our API compatibility policy, SHOW_INCLUDE_FILES is set to NO: we only want to reveal the presence of certain #include directives only when we deliberately support transitive inclusion via the documented header.

Similarly, EXTRACT_LOCAL_CLASSES is set to NO: we do not want to reveal details of internal and private implementation classes in the Doxygen API documentation. Only classes whose declarations or definitions are present in public API header files should be included.

Lastly, INCLUDE_PATHS is updated to be consistent with the install target include paths for bsoncxx and mongocxx by including the include prefix to permit <bsoncxx/v<abi>/bsoncxx/header.hpp> include patterns.

CMake

To support the upcoming addition of v1 files, some redundancy in CMake file lists is addressed by making use of file(GLOB_RECURSE) (already being used for install() commands) and a dedicated (bsoncxx|mongocxx)_sources_v_noabi variable.

Additionally, the macro guard tests are updated to explicitly exclude the prelude/postlude headers themselves to account for their eventual presence under multiple directories.

@eramongodb eramongodb requested a review from kevinAlbs July 3, 2024 18:14
@eramongodb eramongodb self-assigned this Jul 3, 2024
@kevinAlbs kevinAlbs requested a review from adriandole July 5, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant