Skip to content

Commit

Permalink
Merge pull request #3045 from emersonmx/add-moderngl-recipe
Browse files Browse the repository at this point in the history
Add ModernGL recipe
  • Loading branch information
AndreMiras authored Aug 4, 2024
2 parents dddecaa + 638f2e2 commit de12410
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pythonforandroid/recipes/moderngl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe


class ModernGLRecipe(CppCompiledComponentsPythonRecipe):
version = '5.10.0'
url = 'https://github.com/moderngl/moderngl/archive/refs/tags/{version}.tar.gz'

site_packages_name = 'moderngl'
name = 'moderngl'

def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)
env['LDFLAGS'] += ' -lstdc++'
return env


recipe = ModernGLRecipe()

0 comments on commit de12410

Please sign in to comment.