Updating capnproto bundling code to use CMake and ninja

- Must faster
- Also showing output by default (easier to diagnose errors)
  * ninja has minimal verbosity (unless there are errors)
This commit is contained in:
Jacob Alexander
2019-10-15 00:42:34 -07:00
parent 10355a74ac
commit f2651facde
2 changed files with 44 additions and 23 deletions

View File

@@ -33,7 +33,7 @@ pjoin = os.path.join
# Constants
#
bundled_version = (0, 7, 4)
bundled_version = (0, 7, 0)
libcapnp_name = "capnproto-c++-%i.%i.%i.tar.gz" % (bundled_version)
libcapnp_url = "https://capnproto.org/" + libcapnp_name
@@ -92,10 +92,6 @@ def fetch_libcapnp(savedir, url=None):
shutil.move(with_version, dest)
else:
cpp_dir = os.path.join(with_version, 'c++')
conf = Popen(['autoreconf', '-i'], cwd=cpp_dir)
returncode = conf.wait()
if returncode != 0:
raise RuntimeError('Autoreconf failed. Make sure autotools are installed on your system.')
shutil.move(cpp_dir, dest)