Skip to content

Commit d432d3b

Browse files
authored
libsocketcan: support cross-building to Android from Windows (#28772)
Signed-off-by: Uilian Ries <[email protected]>
1 parent 8ff0adf commit d432d3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

recipes/libsocketcan/all/conanfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ def validate(self):
3838

3939
def build_requirements(self):
4040
self.tool_requires("libtool/2.4.7")
41-
if not self.conf.get("tools.gnu:pkg_config", check_type=str):
42-
self.tool_requires("pkgconf/[>=2.2 <3]")
41+
if self.settings_build.os == "Windows":
42+
self.win_bash = True
43+
if not self.conf.get("tools.microsoft.bash:path", check_type=str):
44+
self.tool_requires("msys2/cci.latest")
4345

4446
def source(self):
4547
get(self, **self.conan_data["sources"][self.version], strip_root=True)

0 commit comments

Comments
 (0)