mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
901 B
31 lines
901 B
5 years ago
|
|
||
|
<%namespace import="doxy_base" file="Doxyfile.base"/>
|
||
|
<%def name="gen_doxyfile(internal)">
|
||
|
<%
|
||
|
import itertools
|
||
|
import glob
|
||
|
import os
|
||
|
import fnmatch
|
||
|
import subprocess
|
||
|
|
||
|
srcdoc = []
|
||
|
for dirpath, dirnames, filenames in os.walk('src/php'):
|
||
|
for filename in filenames:
|
||
|
if os.path.splitext(filename)[1] == '.md':
|
||
|
srcdoc.append(os.path.join(dirpath, filename))
|
||
|
|
||
|
subprocess.check_call(["src/php/bin/php_extension_to_php_doc.sh", "generate"])
|
||
|
|
||
|
version = settings.php_version
|
||
|
doxy_input = ' \\\n'.join(sorted(set(
|
||
|
itertools.chain(
|
||
|
glob.glob('src/php/lib/Grpc/*.php'),
|
||
|
glob.glob('src/php/lib/Grpc/Internal/*.php') if internal else [],
|
||
|
glob.glob('doc/*.md'),
|
||
|
srcdoc)
|
||
|
)))
|
||
|
|
||
|
subprocess.check_call(["src/php/bin/php_extension_to_php_doc.sh", "cleanup"])
|
||
|
%>
|
||
|
${doxy_base("PHP", version, doxy_input, internal)}
|
||
|
</%def>
|