Commit graph

59 commits

Author SHA1 Message Date
John Wiegley
71b89f1fc6
Escape ++ in cmake matches 2016-11-13 15:18:46 -08:00
John Wiegley
121687a026
Don't use -isystem with g++ anymore 2016-11-13 15:16:32 -08:00
thdox
d9c1a290a8 Remove the build of ledger-mode in Makefile
[ci skip]
2016-10-27 21:31:35 +02:00
Alexis Hildebrandt
34fec31188 [cmake] Fix detection for Boost Python 1.59.0 workaround 2016-06-22 15:44:06 +02:00
Alexis Hildebrandt
68a193d6af [cmake] Update ledger version date
[ci skip]
2016-01-11 16:51:54 +01:00
Johann Klähn
429765ee4d fix check for boost::python::make_setter 2015-12-10 22:34:58 +01:00
Alexis Hildebrandt
43112565d0 Bump version number to 3.1.1 2015-09-15 17:00:32 +02:00
Alexis Hildebrandt
49a0601c14 Add workaround for Boost.Python compile errors
when using version 1.59.0
2015-09-15 16:39:10 +02:00
Alexis Hildebrandt
fe410fa239 [tests] Set timezone for running tests
so that the tests run with a consistent environment.
2015-08-07 19:42:23 +02:00
John Wiegley
947a46ebeb Merge pull request #369 from afh/pull/utfcpp_subtree
Replace utfcpp submodule with partial subtree
2015-08-04 14:14:20 -07:00
Alexis Hildebrandt
d0fba947ad [cmake] Use CMAKE_SYSTEM_NAME to test the platform.
APPLE and CMAKE_HOST_APPLE only check the host system,
whereas CMAKE_SYSTEM_NAME checks the target system when
cross-compiling.
2015-07-28 20:55:56 +02:00
Tim D. Smith
5f08e2786d Don't explicitly link libpython on OS X
Use -undefined dynamic_lookup to allow Python symbols to be discovered
when the ledger module is imported instead of at build time. Without
this change, the Python interpreter crashes when ledger is imported from
a python that is different from (but compatible with) the python against
which the module was built.
2015-05-04 14:55:14 -07:00
Alexis Hildebrandt
af7e7cdd8f Add pre-release info to --version output
Bump version to 3.1.1-alpha.1
2015-01-20 10:12:25 +01:00
Alexis Hildebrandt
1d7dd3e082 [cmake] Add FindUtfcpp.cmake
it will look for utfcpp in the standard system paths, UTFCPP_PATH,
and lib/utfcpp/v2_0/source.

This allows the use of utfcpp in:

  * standard locations such as /usr/include on distributions shipping
  utfcpp

  * custom locations for users via UTFCPP_PATH

  * the source tree using the default location of the utfcpp
    git submodule, .i.e lib/utfcpp/v2_0

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-12 10:50:44 +01:00
Alexis Hildebrandt
a468fdca0e Replace utfcpp submodule with partial subtree
* Remove utfcpp submodule
* Squashed 'lib/utfcpp/' content from commit 63cd498
  git-subtree-dir: lib/utfcpp
  git-subtree-split: 63cd4984464e875546b4a91918be7355357a3a68
* Merge commit '82003f30ba8ba436cf7cef380155f50ed4242b37' as 'lib/utfcpp'
* Remove needless utfcpp subtree files
* Change include path to utfcpp

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-12 10:50:43 +01:00
Alexis Hildebrandt
64a7b13492 Move LICENSE file
The LICENSE.rtf file can be generated from LICENSE.md easily if needed,
at the moment there seems to be no use for it, since CPack isn't used
to generate binary distribution archives.

Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
2015-01-11 16:30:04 +01:00
Alexis Hildebrandt
231a9729c1 [cmake] Set default CPack generator to TBZ2
the same as the default CPack source generator
2015-01-11 16:27:38 +01:00
Johann Klähn
f2b61846d1 use the same python version for lib and interpreter
Currently the path to install the python library in is determined by
running the python interpreter.  We do not want to end up installing a
library built for python2 in the python3 library path!
2015-01-06 10:03:03 +01:00
Hans Erik van Elburg
98f67600a8 merge double fix + make changes minimalistic 2015-01-04 13:57:31 +01:00
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