Skip to content

Commit

Permalink
(#8809) libalsa: restore .names["pkg_config"] + add ALSA_CONFIG_DIR t…
Browse files Browse the repository at this point in the history
…o runenv_info

* restore .names["pkg_config"]

* add ALSA_CONFIG_DIR to runenv_info
  • Loading branch information
SpaceIm authored Jan 12, 2022
1 parent b25a4ea commit b05d34b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions recipes/libalsa/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ def package_info(self):
self.cpp_info.set_property("cmake_file_name", "ALSA")
self.cpp_info.set_property("cmake_target_name", "ALSA::ALSA")
self.cpp_info.set_property("pkg_config_name", "alsa")
self.cpp_info.libs = ["asound"]
self.cpp_info.system_libs = ["dl", "m", "rt", "pthread"]
alsa_config_dir = os.path.join(self.package_folder, "res", "alsa")
self.runenv_info.define_path("ALSA_CONFIG_DIR", alsa_config_dir)

# TODO: to remove in conan v2?
self.cpp_info.names["cmake_find_package"] = "ALSA"
self.cpp_info.names["cmake_find_package_multi"] = "ALSA"

self.cpp_info.libs = ["asound"]
self.cpp_info.system_libs = ["dl", "m", "rt", "pthread"]
self.env_info.ALSA_CONFIG_DIR = os.path.join(self.package_folder, "res", "alsa")
self.cpp_info.names["pkg_config"] = "alsa"
self.env_info.ALSA_CONFIG_DIR = alsa_config_dir

0 comments on commit b05d34b

Please sign in to comment.