File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,23 @@ This code also manually takes care to patch only once. You can use the
139139same strategy yourself, though a more generic solution may be provided
140140in the future.
141141
142+ Installing libs
143+ ~~~~~~~~~~~~~~~
144+
145+ Some recipes generate .so files that must be manually copied into the
146+ android project. You can use code like the following to accomplish
147+ this, copying to the correct lib cache dir::
148+
149+ def build_arch(self, arch):
150+ do_the_build() # e.g. running ./configure and make
151+
152+ import shutil
153+ shutil.copyfile('a_generated_binary.so',
154+ self.ctx.get_libs_dir(arch.arch))
155+
156+ Any libs copied to this dir will automatically be included in the
157+ appropriate libs dir of the generated android project.
158+
142159Compiling for the Android architecture
143160~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144161
You can’t perform that action at this time.
0 commit comments