Skip to content

Commit

Permalink
Patch GLib to find iconv through pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jun 17, 2024
1 parent fd9832c commit 7fb98b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/glib/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ def _patch_sources(self):
"libintl = dependency('libgettext', method : 'pkg-config', required : false",
)

if self.settings.os == "Android":
# allow to find libiconv
replace_in_file(self,
os.path.join(self.source_folder, "meson.build"),
"libiconv = dependency('iconv')",
"libiconv = dependency('libiconv', method : 'pkg-config')"
)

replace_in_file(self,
os.path.join(
self.source_folder,
Expand Down

0 comments on commit 7fb98b2

Please sign in to comment.