2020-05-03 16:23:08 +02:00
|
|
|
from kivy_ios.toolchain import CythonRecipe
|
2015-02-12 00:51:54 +01:00
|
|
|
|
|
|
|
|
2015-02-25 13:37:52 +01:00
|
|
|
class IosRecipe(CythonRecipe):
|
2015-02-12 00:51:54 +01:00
|
|
|
version = "master"
|
|
|
|
url = "src"
|
|
|
|
library = "libios.a"
|
|
|
|
depends = ["python"]
|
2020-03-10 20:24:31 +01:00
|
|
|
pbx_frameworks = ["MessageUI", "CoreMotion", "UIKit", "WebKit", "Photos"]
|
2015-02-12 00:51:54 +01:00
|
|
|
|
2018-06-01 11:44:31 +02:00
|
|
|
def prebuild_arch(self, arch):
|
|
|
|
from os.path import join
|
|
|
|
destdir = self.get_build_dir(arch.arch)
|
|
|
|
local_arch = arch.arch
|
|
|
|
if arch.arch == "arm64" :
|
|
|
|
local_arch = "aarch64"
|
|
|
|
if arch.arch == "armv7" :
|
|
|
|
local_arch = "arm"
|
|
|
|
build_dir = join(destdir, "../../../python", arch.arch, "Python-2.7.13", "build", "lib.darwin-{}-2.7".format(local_arch))
|
|
|
|
print("build_dir = "+build_dir)
|
|
|
|
copyfile = join(build_dir,"_sysconfigdata.py")
|
|
|
|
# Copy _sysconfigdata.py for this architecture across
|
|
|
|
self.copy_file(copyfile, destdir)
|
|
|
|
|
2015-02-12 00:51:54 +01:00
|
|
|
def install(self):
|
2018-11-02 11:44:25 +01:00
|
|
|
self.install_python_package(
|
|
|
|
name=self.so_filename("ios"), is_dir=False)
|
2015-02-25 13:37:52 +01:00
|
|
|
|
2015-02-12 00:51:54 +01:00
|
|
|
|
|
|
|
recipe = IosRecipe()
|