Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
add with_vulkan option
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier committed Apr 25, 2020
1 parent d10c7e3 commit 4484708
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class QtConan(ConanFile):
"commercial": [True, False],

"opengl": ["no", "es2", "desktop", "dynamic"],
"with_vulkan": [True, False],
"openssl": [True, False],
"with_pcre2": [True, False],
"with_glib": [True, False],
Expand Down Expand Up @@ -92,6 +93,7 @@ class QtConan(ConanFile):
"shared": True,
"commercial": False,
"opengl": "desktop",
"with_vulkan": False,
"openssl": True,
"with_pcre2": True,
"with_glib": True,
Expand Down Expand Up @@ -217,6 +219,7 @@ def configure(self):
"You can either disable qt:widgets or enable qt:GUI")
if not self.options.GUI:
self.options.opengl = "no"
self.options.with_vulkan = False
self.options.with_freetype = False
self.options.with_fontconfig = False
self.options.with_harfbuzz = False
Expand Down Expand Up @@ -348,6 +351,8 @@ def system_requirements(self):
if self.options.qtwebengine:
pack_names.append("libnss3-dev")
pack_names.append("libdbus-1-dev")
if self.options.with_vulkan:
pack_names.append("libvulkan-dev")

if pack_names:
installer = tools.SystemPackageTool()
Expand Down Expand Up @@ -486,6 +491,11 @@ def build(self):
args += ["-opengl desktop"]
elif self.options.opengl == "dynamic":
args += ["-opengl dynamic"]

if self.options.with_vulkan:
args.append("-vulkan")
else:
args.append("-no-vulkan")

# openSSL
if not self.options.openssl:
Expand Down

0 comments on commit 4484708

Please sign in to comment.