Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Added default option x11extras on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Feb 16, 2018
1 parent f83ad66 commit e626abe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ class QtConan(ConanFile):
"webengine": [True, False],
"websockets": [True, False],
"xmlpatterns": [True, False],
"x11extras": [True, False],
"openssl": ["no", "yes", "linked"]
}
default_options = "shared=True", "opengl=desktop", "canvas3d=False", "gamepad=False", "graphicaleffects=False", "imageformats=False", "location=False", "serialport=False", "svg=False", "tools=False", "webengine=False", "websockets=False", "xmlpatterns=False", "openssl=no"
default_options = ("shared=True", "opengl=desktop", "canvas3d=False", "gamepad=False",
"graphicaleffects=False", "imageformats=False", "location=False",
"serialport=False", "svg=False", "tools=False", "webengine=False",
"websockets=False", "xmlpatterns=False", "x11extras=True" "openssl=no")
url = "http://github.com/osechet/conan-qt"
license = "http://doc.qt.io/qt-5/lgpl.html"
short_paths = True
Expand Down Expand Up @@ -83,6 +87,8 @@ def config_options(self):
if self.settings.os != "Windows":
del self.options.opengl
del self.options.openssl
if self.settings.os != "Linux":
del self.options.x11extras

def requirements(self):
if self.settings.os == "Windows":
Expand Down Expand Up @@ -116,6 +122,8 @@ def source(self):
submodules.append("qtwebsockets")
if self.options.xmlpatterns:
submodules.append("qtxmlpatterns")
if self.options.x11extras:
submodules.append("qtx11extras")

major = ".".join(self.version.split(".")[:2])
self.run("git clone http://code.qt.io/qt/qt5.git")
Expand Down

0 comments on commit e626abe

Please sign in to comment.