Skip to content

Instantly share code, notes, and snippets.

@ugexe
Created August 3, 2018 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugexe/b0660c937268ff76cc0015215ecf578d to your computer and use it in GitHub Desktop.
Save ugexe/b0660c937268ff76cc0015215ecf578d to your computer and use it in GitHub Desktop.
checks if the name, after going through the internal name mangler $*VM.platform-library-name($some-path), successfully loads some library
# declarative conditional method
{
"depends" : [
{
"from" : "native",
"name" : {
"by-distro.name" : {
"macosx" : "ogg-but-some-mac-specific-name-difference!",
"debian" : "ogg",
"" : "ogg-but-a-generic-fallback"
}
}
}
]
}
# straight forward method
{
"depends" : [ "ogg:from<native>" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment