Exemplo n.º 1
0
 def build(self, toolchain):
     build = self.configure(toolchain)
     if self.subdirs is not None:
         for subdir in self.subdirs:
             MakeProject.build(self, toolchain, os.path.join(build, subdir))
     else:
         MakeProject.build(self, toolchain, build)
Exemplo n.º 2
0
 def build(self, toolchain):
     build = self.configure(toolchain)
     if self.subdirs is not None:
         for subdir in self.subdirs:
             MakeProject.build(self, toolchain, os.path.join(build, subdir))
     else:
         MakeProject.build(self, toolchain, build)
Exemplo n.º 3
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        subprocess.check_call(['/bin/sh', './Configure',
                               'dist', 'no-dso', 'no-krb5',
                               '--prefix=' + toolchain.install_prefix],
                              cwd=src, env=toolchain.env)
        MakeProject.build(self, toolchain, wd)
Exemplo n.º 4
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        subprocess.check_call([
            './configure', '--prefix=' + toolchain.install_prefix, '--static'
        ],
                              cwd=src,
                              env=toolchain.env)
        MakeProject.build(self, toolchain, src)
Exemplo n.º 5
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        subprocess.check_call([
            '/bin/sh', './Configure', 'dist', 'no-dso', 'no-krb5',
            '--prefix=' + toolchain.install_prefix
        ],
                              cwd=src,
                              env=toolchain.env)
        MakeProject.build(self, toolchain, wd)
Exemplo n.º 6
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        # OpenSSL has a weird target architecture scheme with lots of
        # hard-coded architectures; this table translates between our
        # "toolchain_arch" (HOST_TRIPLET) and the OpenSSL target
        openssl_archs = {
            # not using "android-*" because those OpenSSL targets want
            # to know where the SDK is, but our own build scripts
            # prepared everything already to look like a regular Linux
            # build
            'arm-linux-androideabi': 'linux-generic32',
            'aarch64-linux-android': 'linux-aarch64',
            'i686-linux-android': 'linux-x86-clang',
            'x86_64-linux-android': 'linux-x86_64-clang',

            # Kobo
            'arm-linux-gnueabihf': 'linux-generic32',

            # Windows
            'i686-w64-mingw32': 'mingw',
            'x86_64-w64-mingw32': 'mingw64',

            # Apple
            'x86_64-apple-darwin': 'darwin64-x86_64-cc',
        }

        openssl_arch = openssl_archs[toolchain.toolchain_arch]
        cross_compile_prefix = toolchain.toolchain_arch + '-'

        subprocess.check_call(
            [
                './Configure',
                'no-shared',
                'no-module',
                'no-engine',
                'no-static-engine',
                'no-async',
                'no-tests',
                'no-asm',  # "asm" causes build failures on Windows
                openssl_arch,
                '--cross-compile-prefix=' + cross_compile_prefix,
                '--prefix=' + toolchain.install_prefix
            ],
            cwd=src,
            env=toolchain.env)
        MakeProject.build(self, toolchain, src)
Exemplo n.º 7
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        wd = os.path.join(src, 'src')

        MakeProject.build(self, toolchain, wd, False)

        includedir = os.path.join(toolchain.install_prefix, 'include')
        libdir = os.path.join(toolchain.install_prefix, 'lib')

        os.makedirs(includedir, exist_ok=True)
        for i in ('lauxlib.h', 'luaconf.h', 'lua.h', 'lualib.h'):
            shutil.copyfile(os.path.join(src, 'src', i),
                            os.path.join(includedir, i))

        os.makedirs(libdir, exist_ok=True)
        shutil.copyfile(os.path.join(src, 'src', 'liblua.a'),
                        os.path.join(libdir, 'liblua.a'))
Exemplo n.º 8
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        wd = os.path.join(src, 'src')

        MakeProject.build(self, toolchain, wd, False)

        includedir = os.path.join(toolchain.install_prefix, 'include')
        libdir = os.path.join(toolchain.install_prefix, 'lib')

        os.makedirs(includedir, exist_ok=True)
        for i in ('lauxlib.h', 'luaconf.h', 'lua.h', 'lualib.h'):
            shutil.copyfile(os.path.join(src, 'src', i),
                            os.path.join(includedir, i))

        os.makedirs(libdir, exist_ok=True)
        shutil.copyfile(os.path.join(src, 'src', 'liblua.a'),
                        os.path.join(libdir, 'liblua.a'))
Exemplo n.º 9
0
 def build(self, toolchain):
     build = self.configure(toolchain)
     MakeProject.build(self, toolchain, build)
Exemplo n.º 10
0
 def build(self, toolchain):
     build = self.configure(toolchain)
     MakeProject.build(self, toolchain, build)
Exemplo n.º 11
0
    def build(self, toolchain):
        src = self.unpack(toolchain, out_of_tree=False)

        subprocess.check_call(['./configure', '--prefix=' + toolchain.install_prefix, '--static'],
                              cwd=src, env=toolchain.env)
        MakeProject.build(self, toolchain, src)