fmt/support/biicode-build.py

15 lines
512 B
Python
Raw Normal View History

#!/usr/bin/env python
# Build the project with Biicode.
2015-03-04 17:22:52 +00:00
import glob, os, shutil
from subprocess import check_call
project_dir = 'biicode_project'
2015-03-04 16:07:26 +00:00
check_call(['bii', 'init', project_dir], env=env)
cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat')
2015-03-04 06:07:20 +00:00
shutil.copytree('.', cppformat_dir,
ignore=shutil.ignore_patterns('biicode_project', cmake_dir))
for f in glob.glob('support/biicode/*'):
shutil.copy(f, cppformat_dir)
2015-03-04 17:22:52 +00:00
check_call(['bii', 'cpp:build'], cwd=project_dir, env=env)