def _add_libraries_from_pc(self, library, static=None):
    if (static is None):
        static = (not self.options.shared)
    pkg_config = tools.PkgConfig(library, static=static)
    libs = [lib[2:] for lib in pkg_config.libs_only_l]
    lib_paths = [lib[2:] for lib in pkg_config.libs_only_L]
    self.cpp_info.components['libsdl2'].system_libs.extend(libs)
    self.cpp_info.components['libsdl2'].libdirs.extend(lib_paths)
    self.cpp_info.components['libsdl2'].sharedlinkflags.extend(pkg_config.libs_only_other)
    self.cpp_info.components['libsdl2'].exelinkflags.extend(pkg_config.libs_only_other)
def _add_libraries_from_pc(self, library, static=None):
    if (static is None):
        static = (not self.options.shared)
    pkg_config = tools.PkgConfig(library, static=static)
    libs = [lib[2:] for lib in pkg_config.libs_only_l]
    lib_paths = [lib[2:] for lib in pkg_config.libs_only_L]
    self.cpp_info.components['libsdl2'].system_libs.extend(libs)
    self.cpp_info.components['libsdl2'].libdirs.extend(lib_paths)
    self.cpp_info.components['libsdl2'].sharedlinkflags.extend(pkg_config.libs_only_other)
    self.cpp_info.components['libsdl2'].exelinkflags.extend(pkg_config.libs_only_other)