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

Include the metadata headers in the generated SWIG bindings #2069

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion meta/parse.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5498,13 +5498,22 @@ sub CreateSaiSwigApiStructs
}

my @headers = GetHeaderFiles();
my @metaheaders = GetMetaHeaderFiles();
my @exheaders = GetExperimentalHeaderFiles();

my @merged = (@headers, @exheaders);
push(@metaheaders, "saimetadata.h");

my @merged = (@headers, @metaheaders, @exheaders);

WriteSwig "%ignore sai_metadata_log;";
WriteSwig "%ignore sai_metadata_log_level;";
WriteSwig "%ignore sai_free_attribute;";

for my $header (sort @merged)
{
WriteSwig "%nodefaultctor;" if $header =~ /saimetadatatypes\.h/;
WriteSwig "%include \"$header\"";
WriteSwig "%clearnodefaultctor;" if $header =~ /saimetadatatypes\.h/;
}
}

Expand Down
Loading