mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
Delete create_nuspect.py and template.nuspec
This commit is contained in:
parent
1b5909dea8
commit
fa27c19342
2 changed files with 0 additions and 156 deletions
|
|
@ -1,46 +0,0 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser(description="ONNX Runtime create nuget spec script",
|
||||
usage='')
|
||||
# Main arguments
|
||||
parser.add_argument("--source_dir", required=True, help="Path to the source directory.")
|
||||
parser.add_argument("--debug_binary_root", required=True, help="Path to the debug binary directory.")
|
||||
parser.add_argument("--release_binary_root", required=True, help="Path to the release binary directory.")
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def generate_nuspec(source_dir, debug_binary_root, release_binary_root, architecture):
|
||||
template_path = '%s/tools/nuget/template.nuspec' % source_dir
|
||||
with open(template_path, 'rt') as f:
|
||||
template = f.read()
|
||||
return template.replace('@@DebugBinaryRoot@@', debug_binary_root)\
|
||||
.replace('@@ReleaseBinaryRoot@@', release_binary_root)\
|
||||
.replace('@@MSBuildArchitecture@@', architecture)\
|
||||
.replace('@@SrcRoot@@', source_dir)
|
||||
|
||||
|
||||
def generate_targets(source_dir):
|
||||
template_path = '%s/tools/nuget/template.targets' % source_dir
|
||||
with open(template_path, 'rt') as f:
|
||||
template = f.read()
|
||||
return template
|
||||
|
||||
|
||||
def main():
|
||||
args = parse_arguments()
|
||||
nuspec = generate_nuspec(args.source_dir, args.debug_binary_root, args.release_binary_root, 'amd64')
|
||||
with open('onnxruntime.nuspec', 'wt') as f:
|
||||
f.write(nuspec)
|
||||
targets = generate_targets(args.source_dir)
|
||||
with open('onnxruntime.targets', 'wt') as f:
|
||||
f.write(targets)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<!-- The identifier that must be unique within the hosting gallery -->
|
||||
<id>Onnxruntime</id>
|
||||
|
||||
<!-- The package version number that is used when resolving dependencies -->
|
||||
<version>0.0.1</version>
|
||||
|
||||
<!-- Authors contain text that appears directly on the gallery -->
|
||||
<authors>Onnxruntime Team</authors>
|
||||
|
||||
<!--
|
||||
Owners are typically nuget.org identities that allow gallery
|
||||
users to easily find other packages by the same owners.
|
||||
-->
|
||||
<owners>Onnxruntime Team</owners>
|
||||
|
||||
<!-- License and project URLs provide links for the gallery -->
|
||||
<licenseUrl>http://opensource.org/licenses/MS-PL</licenseUrl>
|
||||
<projectUrl>https://github.com/onnx/onnxruntime</projectUrl>
|
||||
|
||||
<!-- The icon is used in Visual Studio's package manager UI -->
|
||||
<iconUrl>http://github.com/contoso/UsefulStuff/nuget_icon.png</iconUrl>
|
||||
|
||||
<!--
|
||||
If true, this value prompts the user to accept the license when
|
||||
installing the package.
|
||||
-->
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
|
||||
<!-- Any details about this particular release -->
|
||||
<releaseNotes>Initial Release</releaseNotes>
|
||||
|
||||
<!--
|
||||
The description can be used in package manager UI. Note that the
|
||||
nuget.org gallery uses information you add in the portal.
|
||||
-->
|
||||
<description>Onnxruntime is a runtime for ONNX models</description>
|
||||
|
||||
<!-- Copyright information -->
|
||||
<copyright>Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.</copyright>
|
||||
|
||||
<!-- Tags appear in the gallery and can be used for tag searches -->
|
||||
<tags>ONNX DeepLearning</tags>
|
||||
</metadata>
|
||||
|
||||
<files>
|
||||
<!-- libs -->
|
||||
<file src="@@DebugBinaryRoot@@/external/onnx/Debug/onnx.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnx.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/external/onnx/Debug/onnx_proto.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnx_proto.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/external/protobuf/cmake/Debug/libprotobufd.lib" target="lib/native/debug/@@MSBuildArchitecture@@/libprotobufd.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/Debug/onnxruntime_graph.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnxruntime_graph.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/Debug/onnxruntime_common.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnxruntime_common.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/Debug/onnxruntime_framework.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnxruntime_framework.lib" />
|
||||
<file src="@@DebugBinaryRoot@@/Debug/onnxruntime_providers.lib" target="lib/native/debug/@@MSBuildArchitecture@@/onnxruntime_providers.lib" />
|
||||
|
||||
<file src="@@ReleaseBinaryRoot@@/external/onnx/Release/onnx.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnx.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/external/onnx/Release/onnx_proto.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnx_proto.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/external/protobuf/cmake/Release/libprotobuf.lib" target="lib/native/retail/@@MSBuildArchitecture@@/libprotobuf.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/Release/onnxruntime_graph.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnxruntime_graph.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/Release/onnxruntime_common.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnxruntime_common.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/Release/onnxruntime_framework.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnxruntime_framework.lib" />
|
||||
<file src="@@ReleaseBinaryRoot@@/Release/onnxruntime_providers.lib" target="lib/native/retail/@@MSBuildArchitecture@@/onnxruntime_providers.lib" />
|
||||
|
||||
<!-- headers -->
|
||||
<file src="@@SrcRoot@@\onnxruntime\core\common\*.h" target="build\native\include\core\common" />
|
||||
<file src="@@SrcRoot@@\onnxruntime\core\common\logging\*.h" target="build\native\include\core\common\logging" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/ml_value.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/inference_session.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/tensor.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/arena.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/allocator.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/allocatormgr.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/data_types.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/tensor_shape.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/environment.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/fence.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/framework/execution_provider.h" target="build/native/include/core/framework" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/schema_registry.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/graph.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/graph_transformer.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/model.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/constants.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/graph_nodes.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/rewrite_rule.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/graph/utils.h" target="build/native/include/core/graph" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/inc/ml_status.h" target="build/native/include/core/inc" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/platform/types.h" target="build/native/include/core/platform" />
|
||||
<file src="@@SrcRoot@@/onnxruntime/core/providers/cpu/cpu_execution_provider.h" target="build/native/include/core/providers/cpu" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/onnx_pb.h" target="build/native/include/onnx" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/checker.h" target="build/native/include/onnx" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/proto_utils.h" target="build/native/include/onnx" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/string_utils.h" target="build/native/include/onnx" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/string_utils.h" target="build/native/include/onnx" />
|
||||
<file src="@@DebugBinaryRoot@@/external/onnx/onnx/onnx-ml.pb.h" target="build/native/include/onnx" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/defs/schema.h" target="build/native/include/onnx/defs" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/defs/data_type_utils.h" target="build/native/include/onnx/defs" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/defs/shape_inference.h" target="build/native/include/onnx/defs" />
|
||||
<file src="@@SrcRoot@@/cmake/external/onnx/onnx/common/constants.h" target="build/native/include/onnx/common" />
|
||||
<file src="@@DebugBinaryRoot@@\external\gsl\include\gsl\*" target="build/native/include/gsl" />
|
||||
<file src="@@SrcRoot@@\cmake\external\protobuf\src\google\protobuf\*.h" target="build\native\include\google\protobuf" />
|
||||
<file src="@@SrcRoot@@\cmake\external\protobuf\src\google\protobuf\compiler\*.h" target="build\native\include\google\protobuf\compiler" />
|
||||
<file src="@@SrcRoot@@\cmake\external\protobuf\src\google\protobuf\io\*.h" target="build\native\include\google\protobuf\io" />
|
||||
<file src="@@SrcRoot@@\cmake\external\protobuf\src\google\protobuf\stubs\*.h" target="build\native\include\google\protobuf\stubs" />
|
||||
<file src="@@SrcRoot@@\cmake\external\protobuf\src\google\protobuf\util\*.h" target="build\native\include\google\protobuf\util" />
|
||||
<!-- Target -->
|
||||
<file src="@@SrcRoot@@/tools/nuget/onnxruntime.targets" target="build/native/" />
|
||||
</files>
|
||||
</package>
|
||||
Loading…
Reference in a new issue