def METHOD_NAME(self):
    self.cpp_info.set_property("pkg_config_name", "x265")
    self.cpp_info.libs = ["x265"]
    if self.settings.os == "Windows":
        if self.options.shared:
            self.cpp_info.defines.append("X265_API_IMPORTS")
    elif self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.system_libs.extend(["dl", "pthread", "m"])
        if not self.options.shared:
            self.cpp_info.sharedlinkflags = ["-Wl,-Bsymbolic,-znoexecstack"]
    elif self.settings.os == "Android":
        self.cpp_info.libs.extend(["dl", "m"])
    libcxx = stdcpp_library(self)
    if libcxx:
        self.cpp_info.system_libs.append(libcxx)