Refactor project structure
This commit is contained in:
28
core/ANSLibsLoader/ANSLibsLoader.def
Normal file
28
core/ANSLibsLoader/ANSLibsLoader.def
Normal file
@@ -0,0 +1,28 @@
|
||||
; ============================================================================
|
||||
; 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
|
||||
Reference in New Issue
Block a user