MCPcopy Index your code
hub / github.com/kivy/python-for-android / get_recipe_env

Method get_recipe_env

pythonforandroid/recipe.py:1212–1233  ·  view source on GitHub ↗
(self, arch, with_flags_in_cc=True)

Source from the content-addressed store, hash-verified

1210 self.cythonize_file(env, build_dir, join(root, filename))
1211
1212 def get_recipe_env(self, arch, with_flags_in_cc=True):
1213 env = super().get_recipe_env(arch, with_flags_in_cc)
1214 env['LDFLAGS'] = env['LDFLAGS'] + ' -L{} '.format(
1215 self.ctx.get_libs_dir(arch.arch) +
1216 ' -L{} '.format(self.ctx.libs_dir) +
1217 ' -L{}'.format(join(self.ctx.bootstrap.build_dir, 'obj', 'local',
1218 arch.arch)))
1219
1220 env['LDSHARED'] = env['CC'] + ' -shared'
1221 # shprint(sh.whereis, env['LDSHARED'], _env=env)
1222 env['LIBLINK'] = 'NOTNONE'
1223 if self.ctx.copy_libs:
1224 env['COPYLIBS'] = '1'
1225
1226 # Every recipe uses its own liblink path, object files are
1227 # collected and biglinked later
1228 liblink_path = join(self.get_build_container_dir(arch.arch),
1229 'objects_{}'.format(self.name))
1230 env['LIBLINK_PATH'] = liblink_path
1231 ensure_dir(liblink_path)
1232
1233 return env
1234
1235
1236class PyProjectRecipe(PythonRecipe):

Callers 2

run_pymodules_installFunction · 0.95

Calls 5

ensure_dirFunction · 0.90
formatMethod · 0.80
get_libs_dirMethod · 0.80
get_recipe_envMethod · 0.45

Tested by

no test coverage detected