Compile Parser or whole Deepstream

If I make custom parser do I need to recompile whole DeepStream or only .so file of custom parser. If only .so file is the answer when do we need to recompile whole DeepStream?

You do not need to compile whole, The generated library path and the function name must be specified with the configuration parameters as mentioned in the section Custom Model