def METHOD_NAME(self):
    if is_msvc(self) or self._is_clang_cl:
        # clean environment variables that might affect on the build (e.g. if set by Jenkins)
        env = Environment()
        env.define("PROFILE", None)
        env.define("TUNE", None)
        env.define("NODEBUG", None)
        env.vars(self).save_script("conanbuildenv_nmake_unset_env")
        tc = NMakeToolchain(self)
        tc.METHOD_NAME()
    else:
        env = VirtualBuildEnv(self)
        env.METHOD_NAME()
        tc = AutotoolsToolchain(self)
        tc.extra_defines.append("LIBJPEG_BUILDING")
        tc.METHOD_NAME()