-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request grpc#12788 from muxi/fix-umbrella-warning
Eliminate gRPC-Core umbrella header warning
- Loading branch information
Showing
4 changed files
with
101 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
%YAML 1.2 | ||
--- | | ||
<%! | ||
def grpc_public_headers_no_dir(libs): | ||
excluded_files = ["include/grpc/support/atm_gcc_sync.h", | ||
"include/grpc/support/atm_windows.h", | ||
"include/grpc/support/sync_windows.h", | ||
"include/grpc/support/tls_gcc.h", | ||
"include/grpc/support/tls_msvc.h", | ||
"include/grpc/impl/codegen/atm_gcc_sync.h", | ||
"include/grpc/impl/codegen/atm_windows.h", | ||
"include/grpc/impl/codegen/sync_windows.h"] | ||
out = [] | ||
for lib in libs: | ||
if lib.name in ("grpc", "gpr"): | ||
out += lib.get('public_headers', []) | ||
out = [f for f in out if f not in excluded_files] | ||
out = [hdr.split('/', 2)[2] for hdr in out] | ||
return out | ||
|
||
def header_lines(files): | ||
return ('\n ').join('header "%s"' % f for f in files) | ||
%> | ||
framework module grpc { | ||
umbrella header "grpc.h" | ||
|
||
${header_lines(grpc_public_headers_no_dir(libs))} | ||
|
||
export * | ||
module * { export * } | ||
} | ||
|