Skip to content

Commit de12410

Browse files
authored
Merge pull request #3045 from emersonmx/add-moderngl-recipe
Add ModernGL recipe
2 parents dddecaa + 638f2e2 commit de12410

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
2+
3+
4+
class ModernGLRecipe(CppCompiledComponentsPythonRecipe):
5+
version = '5.10.0'
6+
url = 'https://github.com/moderngl/moderngl/archive/refs/tags/{version}.tar.gz'
7+
8+
site_packages_name = 'moderngl'
9+
name = 'moderngl'
10+
11+
def get_recipe_env(self, arch):
12+
env = super().get_recipe_env(arch)
13+
env['LDFLAGS'] += ' -lstdc++'
14+
return env
15+
16+
17+
recipe = ModernGLRecipe()

0 commit comments

Comments
 (0)