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

Add ENABLE_TYPELIB build option #1783

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

dpotman
Copy link
Contributor

@dpotman dpotman commented Jul 27, 2023

This adds the ENABLE_TYPELIB build option (default is ON) that controls including the type library (which stores the type meta-data for types used in local entities and in discovered proxy entities). The ENABLE_TYPELIB option also controls the availability of the type-builder (to construct the type meta-data used by the serialized, e.g. used from the Python API) and the dynamic type API.

Most of the functionality that can be disabled/enabled with this option was previously controlled by the ENABLE_TYPE_DISCOVERY build option. That option is also still available, but now only controls the inclusion of the type lookup functionality (that allows resolving type meta-data for types from discovery endpoints or topics).

The commit in this PR also include splitting the XTypes tests into multiple files, because that fits better with the new build options.

src/core/ddsi/include/dds/ddsi/ddsi_typelib.h Dismissed Show dismissed Hide dismissed
src/core/ddsi/src/ddsi__typelib.h Fixed Show fixed Hide fixed
src/core/ddsi/src/ddsi__typelookup.h Fixed Show fixed Hide fixed
src/core/ddsi/include/dds/ddsi/ddsi_typelib.h Dismissed Show dismissed Hide dismissed
src/core/ddsi/include/dds/ddsi/ddsi_typelib.h Dismissed Show dismissed Hide dismissed
src/core/ddsi/src/ddsi_typelib.c Dismissed Show dismissed Hide dismissed
src/core/ddsi/src/ddsi_typelib.c Dismissed Show dismissed Hide dismissed
src/core/ddsi/src/ddsi_typelib.c Dismissed Show dismissed Hide dismissed
Copy link
Contributor

@eboasson eboasson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😀 It does seem that CodeQL is not quite happy yet.

@dpotman
Copy link
Contributor Author

dpotman commented Jul 31, 2023

These CodeQL issues were fixed with the force-push to ecb6992, but for some reason it seems that the new CodeQL run has used outdated header files for doing the checks.

This adds the ENABLE_TYPELIB build option (default is ON) that controls
including the type library (which stores the type meta-data for types
used in local entities and in discovered proxy entities). The
ENABLE_TYPELIB also controls the availability of the type-builder (to
construct the type meta-data used by the serialized, e.g. used from the
Python API) and the dynamic type API.

Most of the functionality that can be disabled/enabled with this option
was previously controlled by the ENABLE_TYPE_DISCOVERY build option.
That option is also still available, but now only controls the inclusion
of the type lookup functionality (that allows resolving type meta-data for
types from discovery endpoints or topics).

Signed-off-by: Dennis Potman <[email protected]>
@eboasson
Copy link
Contributor

With my eyes I can't see what CodeQL sees. If CodeQL still complains after merging, we'll have another look.

@eboasson eboasson merged commit a4e00a7 into eclipse-cyclonedds:master Jul 31, 2023
16 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants