Commit graph

40 commits

Author SHA1 Message Date
John Wiegley
599af4642c Merge pull request #361 from lowdef/cygwin-build
automating ledger build on Cygwin
2015-01-04 00:23:53 -06:00
jmgpena
0a43c7df42 Fix for BUG 985
http://bugs.ledger-cli.org/show_bug.cgi?id=985

Fix compilation issue on Cygwin by adding the '-U__STRICT_ANSI__' flag
to GCC. This avoids GCC disabling some stdlib functions like 'setenv'
and 'popen'.
2015-01-03 18:10:00 +00:00
Hans Erik van Elburg
617be983b9 initial cygwin tweaks 2015-01-03 02:27:27 +01:00
Alexis Hildebrandt
ac5fd3afd3 Set CMake policy CMP0042
to remove the warning below when running cmake.
In the long run changing the CMake rules to set MACOSX_RPATH
might be the better option.

  CMake Warning (dev):
    Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
    --help-policy CMP0042" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.
    MACOSX_RPATH is not specified for the following targets:

     libledger

  This warning is for project developers.  Use -Wno-dev to suppress it.
2014-12-24 09:30:17 +01:00
Stefano Zacchiroli
56976a127c make --columns default to terminal width, as returned by ioctl()
If set, the COLUMNS environment variable will take precedence over terminal
width. However, please note that COLUMNS is usually *not* exported by shells to
child processes, so in most cases COLUMNS will be undefined for ledger---hence
the motivation for this change.

Terminal width is queried using ioctl() on stdin. For the sake of portability
the querying is done only on platform where ioctl() is detected as supported at
compile-time.
2014-10-13 17:15:56 -04:00
Martin Michlmayr
720c03b139 Bump version number to 3.1 2014-10-05 19:02:43 -04:00
John Wiegley
3bfd8e71a2 Bump version numbers everywhere to 3.0.3 2014-06-08 06:42:29 -05:00
Martin Michlmayr
2cee0fe23f Cosmetic change - format code consistently
Add a space between if and the opening bracket, between a closing
round bracket and the following opening curly bracket, etc.
2014-05-18 09:51:32 -04:00
Martin Michlmayr
cdd2ee6fbd Decrease Boost requirement to 1.49.0
I successfully compiled ledger with boost 1.49.0 on Debian 7.5.
2014-05-12 18:06:19 -04:00
John Wiegley
1aa0e03a9e Fix build for building with g++ 4.8 2014-05-07 20:49:45 +00:00
Alexis Hildebrandt
cdfd7e5850 Disable BUILD_DOCS by default
since a separate acprep make doc is necessary to build the documentation
2014-05-04 01:13:05 +02:00
John Wiegley
ae18a60315 Bump minimum Boost dependency to 1.55 2014-04-17 15:07:06 -05:00
John Wiegley
7be70aab59 Require the use of C++11 2014-04-17 14:34:36 -05:00
David Bremner
0ef8256409 Replace sha1.cc with boost::uuid::details::sha1
sha1.cc is not redistributable by Debian because the license doesn't
permit redistribution of modified versions.

This isn't ideal since the ::details namespace is subject to change,
but it avoids adding a dependency to ledger.
2014-04-17 14:27:21 -05:00
John Wiegley
57870f1be8 Bump the date in the version number 2014-04-13 23:26:49 -05:00
Alexis Hildebrandt
811b032520 Bump ledger version components in cmake 2014-03-27 08:49:29 +01:00
Johann Klähn
89c21e9967 build shared library/python module, clean up CMake
libledger will now be built as a shared library. You can 'import ledger'
from python IFF you copy libledger.so to ledger.so or create a symlink.
2014-02-01 01:30:53 +01:00
John Wiegley
39841af0ce Bump version number, fix README files 2013-05-29 01:20:31 -05:00
John Wiegley
7108f25590 Bump version date to 20130523. 3.0 Release Candidate 2013-05-23 04:37:41 -05:00
Johann Klähn
b13f0c33c3 repair doxygen support 2013-01-14 23:39:34 +01:00
Johann Klähn
c88862fd66 convert doc/Makefile to CMake
CMake will build the pdf version of the manual if texi2pdf is installed.
It will be installed to DOCDIR/ledger{,3}.pdf, for example
/usr/local/share/ledger/ledger3.pdf.
Also, the man page will be installed to MANDIR/man1/ledger.1

The option BUILD_DOCS is now on by default.

A new option BUILD_WEB_DOCS is used to toggle the generation
of the html version of the manual and the man page (off by default).

All this is added to the 'doc' make target.
2013-01-14 21:35:26 +01:00
Bradley M. Kuhn
72fa58b7fb Ledger's Python API is known to work best against Python 2.7, then Python 2.6
Indeed, at the moment, it doesn't work against Python 3.x at all, so
ideally, we'd like to tell CMake that no Python versions except 2.7 and
2.6 are acceptable.  However, at least as of CMake 2.8.8, there appears to
be no way to instruct CMake to never consider other versions of Python.

In other words, Python_ADDITIONAL_VERSIONS is prepended to the list of
possible Python versions considered, rather than replacing it wholly.

Theoretically, we could try to diddle withe the internal CMake variables
_PYTHON_FIND_OTHER_VERSIONS or _Python_VERSIONS somehow, but that seems
kludgey and dangerous.  This patch is probably "enough for now" to at
least make sure that if the user has both Python 2.x and Python 3.x
installed, some version of 2.x that is known to work will be preferred.
2012-09-06 16:12:31 -04:00
John Wiegley
14ab4f7775 Updated to Boost 1.50 2012-07-30 23:24:04 -05:00
John Wiegley
39ce225004 Added a link_directories statement 2012-07-30 23:20:55 -05:00
John Wiegley
c2cc47bc98 Reduce Boost dependency to 1.46 2012-05-30 21:44:36 -05:00
Erik Hetzner
9dc812fb7e Remove keyword OPTIONAL_COMPONENTS, not present in cmake 2.8.7 2012-05-26 08:39:11 -07:00
John Wiegley
2512ad3051 Reduce minimum CMake version to 2.8.5 2012-05-25 04:14:27 -05:00
John Wiegley
8d9aeaaf19 Don't even look for Gettext, for now 2012-05-25 01:24:50 -05:00
John Wiegley
09f5f7e826 Don't explicitly disable multithreaded Boost 2012-05-23 05:29:28 -05:00
John Wiegley
de7322b48c Handle NO_ASSERTS differently in CMakeLists.txt 2012-05-20 16:07:43 -05:00
John Wiegley
54649d1b7a Make profiling builds work with Clang 2012-05-20 16:06:32 -05:00
John Wiegley
45c2b3307e CMake doesn't enable DEBUG by default, acprep does 2012-05-20 15:31:29 -05:00
John Wiegley
1b1c7cd4ac A few more CMake-related fixes 2012-05-20 15:23:52 -05:00
John Wiegley
1b83c684fb More resiliency fixes 2012-05-20 14:15:48 -05:00
John Wiegley
c2dde97994 Make library detection more resilient 2012-05-20 14:09:17 -05:00
John Wiegley
8faae66638 Define some more missing CMake variables 2012-05-20 05:30:55 -05:00
John Wiegley
9c9534d562 Disable the check for C++11 for now 2012-05-20 05:29:54 -05:00
John Wiegley
a3e84aa155 A few more CMake-related fixes 2012-05-20 05:16:16 -05:00
John Wiegley
50370b8c35 Disable gettext for now 2012-05-20 05:07:34 -05:00
John Wiegley
4681e58d7f Converted the Ledger build system to use CMake 2012-05-20 04:48:05 -05:00