Last active
February 8, 2017 19:01
-
-
Save yaki29/403c83b276982149fc674ca9037e2ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pythonforandroid.toolchain import (CythonRecipe, shprint, | |
current_directory, info, Recipe) | |
from pythonforandroid.patching import will_build, check_any | |
import sh | |
from os.path import join | |
class Libxml2Recipe(Recipe): | |
version = '2.9.3' | |
url = 'ftp://xmlsoft.org/libxml2/libxml2-{version}.tar.gz' | |
name = 'libxml2' | |
print sh.pwd() | |
# depends = [('python2', 'python3crystax')] | |
def get_recipe_env(self, arch): | |
env = super(Libxml2Recipe, self).get_recipe_env(arch) | |
return env | |
def build_arch(self, arch): | |
with current_directory(join(self.get_build_dir(arch.arch),"VxWorks")): | |
# print "I'm printing address ++++++++++++++++" | |
# print sh.pwd() | |
env = self.get_recipe_env(arch) | |
# print "11111111111111111111111111111111---------------------------------------------------------" | |
sh.sed('runtest$(EXEEXT)', 'Makefile.am') | |
print "yashyashyashyashyashyashyashyash2---------------------------------------------------------" | |
sh.sed('testrecurse$(EXEEXT)', 'Makefile.am') | |
# print "333333333333333333333333333333333---------------------------------------------------------" | |
sh.make('-j', '5') | |
# print "444444444444444444444444444444444---------------------------------------------------------" | |
recipe = Libxml2Recipe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment