MCPcopy Create free account
hub / github.com/kivy/python-for-android / get_recipe_meson_options

Method get_recipe_meson_options

pythonforandroid/recipe.py:1506–1545  ·  view source on GitHub ↗
(self, arch)

Source from the content-addressed store, hash-verified

1504 return self.write_wrapper(arch, wrapper_name, content)
1505
1506 def get_recipe_meson_options(self, arch):
1507 env = self.get_recipe_env(arch, with_flags_in_cc=True)
1508 return {
1509 "binaries": {
1510 "pybind11-config": self.get_config_wrappers(arch, "pybind11"),
1511 "numpy-config": self.get_config_wrappers(arch, "numpy"),
1512 "python": self.get_python_wrapper(arch),
1513 "c": arch.get_clang_exe(with_target=True),
1514 "cpp": arch.get_clang_exe(with_target=True, plus_plus=True),
1515 "ar": self.ctx.ndk.llvm_ar,
1516 "strip": self.ctx.ndk.llvm_strip,
1517 },
1518 "built-in options": {
1519 "c_args": self.sanitize_flags(env["CFLAGS"], env["CPPFLAGS"]),
1520 "cpp_args": self.sanitize_flags(env["CXXFLAGS"], env["CPPFLAGS"]),
1521 "c_link_args": self.sanitize_flags(env["LDFLAGS"]),
1522 "cpp_link_args": self.sanitize_flags(env["LDFLAGS"]),
1523 "fortran_link_args": self.sanitize_flags(env["LDFLAGS"]),
1524 },
1525 "properties": {
1526 "needs_exe_wrapper": True,
1527 "sys_root": self.ctx.ndk.sysroot
1528 },
1529 "host_machine": {
1530 "cpu_family": {
1531 "arm64-v8a": "aarch64",
1532 "armeabi-v7a": "arm",
1533 "x86_64": "x86_64",
1534 "x86": "x86"
1535 }[arch.arch],
1536 "cpu": {
1537 "arm64-v8a": "aarch64",
1538 "armeabi-v7a": "armv7",
1539 "x86_64": "x86_64",
1540 "x86": "i686"
1541 }[arch.arch],
1542 "endian": "little",
1543 "system": "android",
1544 }
1545 }
1546
1547 def write_build_options(self, arch):
1548 """Writes python dict to meson config file"""

Callers 1

write_build_optionsMethod · 0.95

Calls 5

get_config_wrappersMethod · 0.95
get_python_wrapperMethod · 0.95
sanitize_flagsMethod · 0.95
get_clang_exeMethod · 0.80
get_recipe_envMethod · 0.45

Tested by

no test coverage detected