mirror of https://github.com/grpc/grpc.git
commit
e0b8a42552
1409 changed files with 145825 additions and 19966 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="Doxyfile.include" import="gen_doxyfile"/>\ |
||||
${gen_doxyfile(['grpc++'], 'C++', libs, True)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="Doxyfile.include" import="gen_doxyfile"/>\ |
||||
${gen_doxyfile(['grpc++'], 'C++', libs, False)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="Doxyfile.include" import="gen_doxyfile"/>\ |
||||
${gen_doxyfile(['grpc', 'gpr'], 'Core', libs, True)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="Doxyfile.include" import="gen_doxyfile"/>\ |
||||
${gen_doxyfile(['grpc', 'gpr'], 'Core', libs, False)} |
||||
|
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('gpr', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('gpr', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('gpr_test_util', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc++', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc++', libs)} |
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc++_unsecure', libs)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc++_unsecure', libs)} |
@ -0,0 +1,7 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="sln_defs.include" import="gen_solution"/>\ |
||||
<% |
||||
solution_projects = [p for p in vsprojects if p.build != 'protoc' and p.language in ['c', 'c++'] and not (p.language == 'c++' and p.build in ['private', 'test'])] |
||||
%>\ |
||||
${gen_solution(solution_projects, use_dlls='yes')} |
@ -1,5 +1,7 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="sln_defs.include" import="gen_solution"/>\ |
||||
<% |
||||
solution_projects = [p for p in vsprojects if p.build != 'protoc' and p.language in ['c', 'c++']] |
||||
solution_projects = [p for p in vsprojects if p.build not in ['protoc', 'test'] and p.language in ['c', 'c++'] and p.vs_proj_dir == '.' and not (p.build == 'private' and p.language == 'c++')] |
||||
%>\ |
||||
${gen_solution(solution_projects, use_dlls='yes')} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc', libs, packages=['openssl','zlib'])} |
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_cpp_plugin', targets, configuration_type='Application')} |
||||
${gen_project('grpc_cpp_plugin', targets)} |
||||
|
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_csharp_ext', libs, configuration_type = 'DynamicLibrary', props=['zlib-dll'], packages=['openssl','zlib'])} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../packages.include" import="gen_packages_config"/>\ |
||||
${gen_packages_config(['openssl','zlib'])} |
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_csharp_plugin', targets, configuration_type='Application')} |
||||
${gen_project('grpc_csharp_plugin', targets)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_objective_c_plugin', targets, configuration_type='Application')} |
||||
${gen_project('grpc_objective_c_plugin', targets)} |
||||
|
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_plugin_support', libs)} |
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_python_plugin', targets, configuration_type='Application')} |
||||
${gen_project('grpc_python_plugin', targets)} |
||||
|
@ -1,2 +1,4 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_ruby_plugin', targets, configuration_type='Application')} |
||||
${gen_project('grpc_ruby_plugin', targets)} |
||||
|
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_test_util', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_test_util_unsecure', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters('grpc_unsecure', libs)} |
@ -1,2 +0,0 @@ |
||||
<%namespace file="../vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project('grpc_unsecure', libs, packages=['zlib'])} |
@ -1,54 +1,53 @@ |
||||
<%! |
||||
openssl_pkg_name = "grpc.dependencies.openssl" |
||||
openssl_pkg_version = "1.0.2.2" |
||||
zlib_pkg_name = "grpc.dependencies.zlib" |
||||
zlib_pkg_version = "1.2.8.9" |
||||
%>\ |
||||
<%def name="get_openssl()">${openssl_pkg_name}.${openssl_pkg_version}</%def>\ |
||||
<%def name="get_zlib()">${zlib_pkg_name}.${zlib_pkg_version}</%def>\ |
||||
<%def name="get_name(vspackages, package)">${''.join('%s.%s' % (p.name, p.version) for p in vspackages if p.name == package)}</%def> |
||||
<%def name="gen_packages_config(packages)">\ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<packages> |
||||
% if 'openssl' in packages: |
||||
<package id="${openssl_pkg_name}" version="${openssl_pkg_version}" targetFramework="Native" /> |
||||
<package id="${openssl_pkg_name}.redist" version="${openssl_pkg_version}" targetFramework="Native" /> |
||||
% for package in vspackages: |
||||
% if packages == 'all' or package.name in packages: |
||||
<package id="${package.name}" version="${package.version}" targetFramework="Native" /> |
||||
% if package.redist: |
||||
<package id="${package.name}.redist" version="${package.version}" targetFramework="Native" /> |
||||
% endif |
||||
% if 'zlib' in packages: |
||||
<package id="${zlib_pkg_name}" version="${zlib_pkg_version}" targetFramework="Native" /> |
||||
<package id="${zlib_pkg_name}.redist" version="${zlib_pkg_version}" targetFramework="Native" /> |
||||
% endif |
||||
% endfor |
||||
</packages> |
||||
</%def>\ |
||||
<%def name="gen_package_props(packages)">\ |
||||
% if 'openssl' in packages: |
||||
<Import Project="..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.props" Condition="Exists('..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.props')" /> |
||||
<%def name="gen_package_props(packages, repo_root)">\ |
||||
% for package in vspackages: |
||||
% if packages == 'all' or package.name in packages: |
||||
% if package.props: |
||||
<Import Project="${repo_root}\vsprojects\packages\${package.name}.${package.version}\build\native\${package.name}.props" Condition="Exists('${repo_root}\vsprojects\packages\${package.name}.${package.version}\build\native\${package.version}.props')" /> |
||||
% endif |
||||
% endif |
||||
% endfor |
||||
</%def>\ |
||||
<%def name="gen_package_targets(packages)">\ |
||||
% if 'zlib' in packages: |
||||
<Import Project="..\packages\${zlib_pkg_name}.redist.${zlib_pkg_version}\build\native\${zlib_pkg_name}.redist.targets" Condition="Exists('..\packages\${zlib_pkg_name}.redist.${zlib_pkg_version}\build\native\${zlib_pkg_name}.redist.targets')" /> |
||||
<Import Project="..\packages\${zlib_pkg_name}.${zlib_pkg_version}\build\native\${zlib_pkg_name}.targets" Condition="Exists('..\packages\${zlib_pkg_name}.${zlib_pkg_version}\build\native\${zlib_pkg_name}.targets')" /> |
||||
<%def name="gen_package_targets(packages, repo_root)">\ |
||||
% for package in vspackages: |
||||
% if packages == 'all' or package.name in packages: |
||||
% if package.redist: |
||||
<Import Project="${repo_root}\vsprojects\packages\${package.name}.redist.${package.version}\build\native\${package.name}.redist.targets" Condition="Exists('${repo_root}\vsprojects\packages\${package.name}.redist.${package.version}\build\native\grpc.dependencies\${package.name}.targets')" /> |
||||
% endif |
||||
% if 'openssl' in packages: |
||||
<Import Project="..\packages\${openssl_pkg_name}.redist.${openssl_pkg_version}\build\native\${openssl_pkg_name}.redist.targets" Condition="Exists('..\packages\${openssl_pkg_name}.redist.${openssl_pkg_version}\build\native\${openssl_pkg_name}.redist.targets')" /> |
||||
<Import Project="..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.targets" Condition="Exists('..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.targets')" /> |
||||
<Import Project="${repo_root}\vsprojects\packages\${package.name}.${package.version}\build\native\${package.name}.targets" Condition="Exists('${repo_root}\vsprojects\packages\${package.name}.${package.version}\build\native\grpc.dependencies\${package.name}.targets')" /> |
||||
% endif |
||||
% endfor |
||||
</%def>\ |
||||
<%def name="gen_package_ensure(packages)">\ |
||||
% if packages: |
||||
<%def name="check_file_inner(file)"><Error Condition="!Exists('${file}')" Text="$([System.String]::Format('$(ErrorText)', '${file}')" /></%def>\ |
||||
<%def name="check_file(file, repo_root, package)">${check_file_inner(file % {'root':repo_root, 'name':package.name, 'version':package.version})}</%def>\ |
||||
<%def name="gen_package_ensure(packages, repo_root)">\ |
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
||||
<PropertyGroup> |
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
||||
</PropertyGroup> |
||||
% if 'zlib' in packages: |
||||
<Error Condition="!Exists('..\packages\${zlib_pkg_name}.redist.${zlib_pkg_version}\build\native\${zlib_pkg_name}.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\${zlib_pkg_name}.redist.${zlib_pkg_version}\build\native\${zlib_pkg_name}.redist.targets'))" /> |
||||
<Error Condition="!Exists('..\packages\${zlib_pkg_name}.${zlib_pkg_version}\build\native\${zlib_pkg_name}.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\${zlib_pkg_name}.${zlib_pkg_version}\build\native\${zlib_pkg_name}.targets'))" /> |
||||
% for package in vspackages: |
||||
% if packages == 'all' or package.name in packages: |
||||
% if package.redist: |
||||
${check_file('%(root)s\\vsprojects\\packages\\%(name)s.redist.%(version)s\\build\\native\\%(name)s.redist.targets', repo_root, package)} |
||||
% endif |
||||
% if 'openssl' in packages: |
||||
<Error Condition="!Exists('..\packages\${openssl_pkg_name}.redist.${openssl_pkg_version}\build\native\${openssl_pkg_name}.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\${openssl_pkg_name}.redist.${openssl_pkg_version}\build\native\${openssl_pkg_name}.redist.targets'))" /> |
||||
<Error Condition="!Exists('..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.props'))" /> |
||||
<Error Condition="!Exists('..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\${openssl_pkg_name}.${openssl_pkg_version}\build\native\${openssl_pkg_name}.targets'))" /> |
||||
% if package.props: |
||||
${check_file('%(root)s\\vsprojects\\packages\\%(name)s.%(version)s\\build\\native\\%(name)s.props', repo_root, package)} |
||||
% endif |
||||
</Target> |
||||
${check_file('%(root)s\\vsprojects\\packages\\%(name)s.%(version)s\\build\\native\\%(name)s.targets', repo_root, package)} |
||||
% endif |
||||
% endfor |
||||
</Target> |
||||
</%def>\ |
||||
|
@ -0,0 +1,18 @@ |
||||
%YAML 1.2 |
||||
--- |
||||
foreach: vsprojects |
||||
output_name: ${selected.vs_proj_dir}/${selected.name}/${selected.name}.vcxproj |
||||
template: | |
||||
<%namespace file="vcxproj_defs.include" import="gen_project"/>\ |
||||
${gen_project(selected.name, vsprojects)} |
||||
--- |
||||
foreach: vsprojects |
||||
output_name: ${selected.vs_proj_dir}/${selected.name}/${selected.name}.vcxproj.filters |
||||
template: | |
||||
<%namespace file="vcxproj.filters_defs.include" import="gen_filters"/>\ |
||||
${gen_filters(selected.name, vsprojects)} |
||||
--- |
||||
output_name: grpc/packages.config |
||||
template: | |
||||
<%namespace file="packages.include" import="gen_packages_config"/>\ |
||||
${gen_packages_config('all')} |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue