function checksum = getSharedUtilsChecksum(hooks, lTopModelStandalone)
% Returns a checksum based on constructor arguments for any build hook that is
% identified as a code coverage class.  This checksum is used to
% determine whether shared utility functions must be re-built.

%   Copyright 2014-2017 The MathWorks, Inc.

checksum = CGXE.Utils.md5([]);

codeCoverageClass = coder.coverage.getActiveCodeCoverageClass...
    (hooks, lTopModelStandalone);

if ~isempty(codeCoverageClass)
    checksum = CGXE.Utils.md5(checksum, codeCoverageClass);
end
