Skip to content

Commit

Permalink
vendor: Fix esmini build for Ubuntu 18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
cassava committed Apr 26, 2024
1 parent 454514e commit 27dbc38
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vendor/esmini/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from conan.tools import cmake, files, env
from conan.tools.system import package_manager

from conans.tools import os_info

required_conan_version = ">=1.52.0"


Expand Down Expand Up @@ -57,13 +59,16 @@ def layout(self):
def system_requirements(self):
packages = None
if self.options.with_osg:
# TODO: add all system requirements
packages = [
"libfontconfig1-dev",
"libgl-dev",
"libxrandr-dev",
"libxinerama-dev",
]
if os_info.linux_distro == "ubuntu":
if os_info.os_version < "20":
packages.append("libgl1-mesa-dev")
else:
packages.append("libgl-dev")
if packages:
apt = package_manager.Apt(self)
apt.install(packages, update=True, check=True)
Expand Down

0 comments on commit 27dbc38

Please sign in to comment.