Skip to content

Commit

Permalink
(#3144) add imgui/1.79
Browse files Browse the repository at this point in the history
* add imgui/1.79

* add bindings to cpp_info.srcdirs
  • Loading branch information
SpaceIm authored Oct 13, 2020
1 parent b874eed commit 6ebf98f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions recipes/imgui/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ sources:
"1.78":
url: "https://github.com/ocornut/imgui/archive/v1.78.tar.gz"
sha256: "f70bbb17581ee2bd42fda526d9c3dc1a5165f3847ff047483d4d7980e166f9a3"
"1.79":
url: "https://github.com/ocornut/imgui/archive/v1.79.tar.gz"
sha256: "f1908501f6dc6db8a4d572c29259847f6f882684b10488d3a8d2da31744cd0a4"
5 changes: 4 additions & 1 deletion recipes/imgui/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,17 @@ def build(self):

def package(self):
self.copy(pattern="LICENSE.txt", dst="licenses", src=self._source_subfolder)
self.copy(pattern="examples/imgui_impl_*", dst="res/bindings", src=self._source_subfolder, keep_path=False)
self.copy(pattern="imgui_impl_*",
dst=os.path.join("res", "bindings"),
src=os.path.join(self._source_subfolder, "examples"))
cmake = self._configure_cmake()
cmake.install()

def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
if self.settings.os == "Linux":
self.cpp_info.system_libs.append("m")
self.cpp_info.srcdirs = [os.path.join("res", "bindings")]

bin_path = os.path.join(self.package_folder, "bin")
self.output.info("Appending PATH env var with : {}".format(bin_path))
Expand Down
2 changes: 2 additions & 0 deletions recipes/imgui/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ versions:
folder: all
"1.78":
folder: all
"1.79":
folder: all

0 comments on commit 6ebf98f

Please sign in to comment.