def build_cmake(options = '', subdir = ''):
    build_dir = _add_subpath(_info.build_dir, subdir)
    cmake_dir = path.join(build_dir, 'cmake.build')
    options = _build_cmake_args() + options.split()

    fsutil.make_dir(cmake_dir)

    cmdutil.native_exec('cmake', options, work_dir=cmake_dir)
    cmdutil.native_make([], work_dir=cmake_dir)
    cmdutil.native_make(['install'], work_dir=cmake_dir)
Example #2
0
def do_build_all(info):
    do_generate_makefile()
    args = ['-j', config.get('build_jobs', '1'), 'build-' + info.name]
    cmdutil.native_make(args, packageinfo.get_work_dir())