How to set suffix to debug BuildTypes in nativeBinaries (CPP)?

Hi, I want to add suffix as “_debug” to the libraries build in the debug mode and “_release” to the Release mode.

model
{
buildTypes {
        debug
        {
            /* Both options doesn't work for CPP. */
            //applicationIdSuffix ".debug"
               //packageNameSuffix ".debug"
        }
        release
            }
}
    libraries {
    "${project.name}" {
        targetPlatforms 'x86'
              }
}
  sources {
    "${project.name}" {
        cpp {
            source {
                srcDirs "."
                include "**/*.cpp"
                          }
            exportedHeaders {
                srcDirs "../common/inc"
                include "*.h"
                           }
                      }
    }
}

Could you please guide me, how to do the same for native binaries.

Thanks Mandar

Do you want to add these suffixes for final packaging or for another reason?

Sorry I was on vacation. Basically I want the suffixes to differentiate the debug/release version and yes I need this for packaging as well.

For e.g. I want library name for debug mode is like LibName_d.lib / LibName_d.dll

Thanks Mandar