Skip to content

Commit c47bf59

Browse files
committed
write ndk dir to local.properties
1 parent a74b8d4 commit c47bf59

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pythonforandroid/bootstraps/service_only/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
import glob
55
import sh
66

7-
class WebViewBootstrap(Bootstrap):
8-
name = 'webview'
7+
class ServiceOnlyBootstrap(Bootstrap):
8+
name = 'service_only'
99

10-
recipe_depends = ['webviewjni', ('python2', 'python3crystax')]
10+
recipe_depends = [('python2', 'python3crystax')]
1111

1212
def run_distribute(self):
1313
info_main('# Creating Android project from build and {} bootstrap'.format(
1414
self.name))
1515

16+
info('This currently just copies the build stuff straight from the build dir.')
1617
shprint(sh.rm, '-rf', self.dist_dir)
1718
shprint(sh.cp, '-r', self.build_dir, self.dist_dir)
1819
with current_directory(self.dist_dir):
1920
with open('local.properties', 'w') as fileh:
2021
fileh.write('sdk.dir={}'.format(self.ctx.sdk_dir))
22+
fileh.write('ndk.dir={}'.format(self.ctx.ndk_dir))
2123

2224
arch = self.ctx.archs[0]
2325
if len(self.ctx.archs) > 1:
@@ -114,6 +116,6 @@ def run_distribute(self):
114116

115117
self.strip_libraries(arch)
116118
self.fry_eggs(site_packages_dir)
117-
super(WebViewBootstrap, self).run_distribute()
119+
super(ServiceOnlyBootstrap, self).run_distribute()
118120

119-
bootstrap = WebViewBootstrap()
121+
bootstrap = ServiceOnlyBootstrap()

0 commit comments

Comments
 (0)