Skip to content

Commit

Permalink
Remove cpplink, now it uses the same liblink
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 committed Jan 5, 2025
1 parent 99bbffd commit 6e23114
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 182 deletions.
15 changes: 0 additions & 15 deletions kivy_ios/recipes/kiwisolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
This file is derived from the p4a recipe for kiwisolver.
It is a dependency of matplotlib.
It is a C++ library, and it utilizes the cpplink script to handle
creating the library files needed for inclusion in an iOS project.
It also depends on the headers from the cppy package.
'''

Expand All @@ -22,17 +19,5 @@ class KiwiSolverRecipe(CythonRecipe):
cythonize = False
library = "libkiwisolver.a"

def get_recipe_env(self, plat):
env = super().get_recipe_env(plat)

# cpplink setup
env['CXX_ORIG'] = env['CXX']
env['CXX'] = join(self.ctx.root_dir, "tools", "cpplink")

# setuptools uses CC for compiling and CXX for linking
env['CC'] = env['CXX']
env['CFLAGS'] += ' -isysroot {}'.format(env['IOSSDKROOT'])
return env


recipe = KiwiSolverRecipe()
8 changes: 0 additions & 8 deletions kivy_ios/recipes/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
This file is derived from the p4a recipe for matplotlib.
It is a dependency of matplotlib.
It is a C++ library, and it utilizes the cpplink script to handle
creating the library files needed for inclusion in an iOS project.
In addition to the original patch files for p4a, additional patch files
are necessary to prevent duplicate symbols from appearing in the final
link of a kivy-ios application.
Expand Down Expand Up @@ -113,11 +110,6 @@ def get_recipe_env(self, plat):
numpy_inc_dir = dirname(sh.glob(numpytype.get_build_dir(plat) + '/**/_numpyconfig.h', recursive=True)[0])

env['CFLAGS'] += f' -I{free_inc_dir} -I{numpy_inc_dir}'
env['CXX_ORIG'] = env['CXX']
env['CXX'] = join(self.ctx.root_dir, "tools", "cpplink")

# setuptools uses CC for compiling and CXX for linking
env['CFLAGS'] += ' -isysroot {}'.format(env['IOSSDKROOT'])

return env

Expand Down
159 changes: 0 additions & 159 deletions kivy_ios/tools/cpplink

This file was deleted.

3 changes: 3 additions & 0 deletions kivy_ios/tools/liblink
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ while i < len(sys.argv):
if opt.startswith("-W"):
continue

if opt.startswith("-stdlib="):
continue

if opt.startswith("-"):
print(sys.argv)
print("Unknown option: ", opt)
Expand Down

0 comments on commit 6e23114

Please sign in to comment.