29 lines
1.1 KiB
Modula-2
29 lines
1.1 KiB
Modula-2
; ============================================================================
|
|
; ANSLibsLoader.def — Module definition file
|
|
;
|
|
; Exports the extern "C" TRT / ONNX-parser factory stubs so consuming
|
|
; projects can link ANSLibsLoader.lib instead of nvinfer_XX.lib /
|
|
; nvonnxparser_XX.lib.
|
|
;
|
|
; WHY A .DEF FILE?
|
|
; ----------------
|
|
; NvInfer.h declares these functions with TENSORRTAPI, and our stub
|
|
; definitions in NvDynLoader.cpp must match that declaration exactly.
|
|
; Any mismatch in __declspec attributes or noexcept causes C2375.
|
|
; By using a .def file the linker exports the symbols without requiring
|
|
; __declspec(dllexport) in the source code at all.
|
|
; ============================================================================
|
|
|
|
LIBRARY ANSLibsLoader
|
|
|
|
EXPORTS
|
|
; TensorRT factory stubs (called by NvInfer.h inline wrappers)
|
|
createInferBuilder_INTERNAL
|
|
createInferRuntime_INTERNAL
|
|
createInferRefitter_INTERNAL
|
|
|
|
; ONNX parser factory stubs (called by NvOnnxParser.h inline wrappers)
|
|
createNvOnnxParser_INTERNAL
|
|
createNvOnnxParserRefitter_INTERNAL
|
|
getNvOnnxParserVersion
|