summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-01-04 00:23:53 -0600
committerJohn Wiegley <johnw@newartisans.com>2015-01-04 00:23:53 -0600
commit599af4642c24ab8db542aec19a25c367f3ed01f8 (patch)
treee585b0322667a4cdc5f9eedf602ad45dead434b7 /acprep
parentd6f194058fbf8c88b926c2cb7ed43aa4ff255bc0 (diff)
parentea397d205c84d01b8089e8fac0dd30e9100d1571 (diff)
downloadfork-ledger-599af4642c24ab8db542aec19a25c367f3ed01f8.tar.gz
fork-ledger-599af4642c24ab8db542aec19a25c367f3ed01f8.tar.bz2
fork-ledger-599af4642c24ab8db542aec19a25c367f3ed01f8.zip
Merge pull request #361 from lowdef/cygwin-build
automating ledger build on Cygwin
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep8
1 files changed, 7 insertions, 1 deletions
diff --git a/acprep b/acprep
index b0af2108..9e661aad 100755
--- a/acprep
+++ b/acprep
@@ -644,6 +644,9 @@ class PrepareBuild(CommandLineApp):
]
self.log.info('Executing: ' + ' '.join(packages))
self.execute(*packages)
+ elif system.startswith('CYGWIN'):
+ self.log.info('Looks like you are using Cygwin')
+ self.log.info('Please install the dependencies manually.')
#########################################################################
# Determine the system's basic configuration #
@@ -682,7 +685,10 @@ class PrepareBuild(CommandLineApp):
if self.options.python:
self.configure_args.append('-DUSE_PYTHON=1')
- if self.options.use_ninja:
+ if system.startswith('CYGWIN'):
+ self.configure_args.append('-G')
+ self.configure_args.append('Unix Makefiles')
+ elif self.options.use_ninja:
self.configure_args.append('-GNinja')
if exists('/Users/johnw/Projects/ledger/plan/TODO'):