Skip to content

Commit

Permalink
Add target_vk option
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed Apr 16, 2019
1 parent 533f936 commit 2a999b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class MagnumConan(ConanFile):
"build_plugins_static": [True, False],
"target_gl": [True, False],
"target_gles": [True, False],
"target_vk": [True, False],
"with_anyaudioimporter": [True, False],
"with_anyimageconverter": [True, False],
"with_anyimageimporter": [True, False],
Expand Down Expand Up @@ -86,6 +87,7 @@ class MagnumConan(ConanFile):
"build_plugins_static": False,
"target_gl": True,
"target_gles": False,
"target_vk": False,
"with_anyaudioimporter": False,
"with_anyimageconverter": False,
"with_anyimageimporter": False,
Expand Down Expand Up @@ -148,6 +150,8 @@ def system_requirements(self):
packages.append("libgl1-mesa-dev")
if self.options.target_gles:
packages.append("libgles1-mesa-dev")
if self.options.target_vk:
packages.append("libvulkan-dev")

elif tools.os_info.with_yum:
installer = tools.SystemPackageTool()
Expand All @@ -161,6 +165,8 @@ def system_requirements(self):
packages.append("mesa-libGL-devel")
if self.options.target_gles:
packages.append("mesa-libGLES-devel")
if self.options.target_vk:
packages.append("vulkan-devel")

else:
self.output.warn("Could not determine package manager, skipping Linux system requirements installation.")
Expand Down

0 comments on commit 2a999b9

Please sign in to comment.