Commit Graph
35 Commits
Author SHA1 Message Date
Rob Gowin 54ac7f23e0 Remove Autotools 2018-01-13 12:52:57 -06:00
Rob Gowin bee2925ecc Remove gnc-value-portfolio references from dist lists.
File itself was removed in c0fd3b3.
2018-01-05 10:09:40 -06:00
Rob Gowin 9dcb2037ad Partial fix for Bug 787497 - Disabling options cripples dist package
WITH_OFX, WITH_SQL and WITH_AQBANKING handling is fixed. The
dist files for these features are always included in the dist
tarball.

I added code for WITH_GNUCASH=OFF to error out when trying to
create a dist tarball. Not fully tested because WITH_GNUCASH=OFF
itself does not build.

Still need to backport fixes from unstable for WITH_PYTHON=OFF.
2017-12-02 17:59:40 -06:00
Rob Gowin e7b7974a3c Handle cases where LIBDIR is not "lib"
For example, Fedora installs to lib64, Debian to lib/<arch-tuple>
2017-12-01 19:44:35 -08:00
Rob Gowin 778b86e29e Handle cases where LIBDIR is not "lib"
For example, Fedora installs to lib64, Debian to lib/<arch-tuple>
2017-12-01 17:00:39 -06:00
Rob Gowin 0d8112bfef Bug 790620 - Failed to create file “/usr/share/glib-2.0/schemas/gschemas.compiled.XY789Y”
Changed install rule for gschema.compiled to use a target.
2017-11-23 10:50:43 -05:00
Rob Gowin 6ec9aa362b Fix issues with loading and running init.py 2017-09-11 16:09:57 -05:00
Rob Gowin 739ce35f6a Fix problems that occur when running out of CMake build dir 2017-09-09 14:08:28 +02:00
Rob Gowin 8efe0f83e6 Run the python bindings test when using CMake 2017-09-09 14:08:24 +02:00
Rob Gowin 14b72ea11d Enable CMake build in Travis CI 2017-09-01 18:23:09 -05:00
Rob Gowin 53e4e0572e Fix failure to compile AQBanking GSchemas in CMake Build. 2017-07-17 20:05:57 -07:00
Rob Gowin e67f45003b No need for make dist and distcheck when checking autotools build in cmake 2017-07-03 16:15:17 -07:00
Rob Gowin 6b14dc5b59 Implement 'dist', 'distcheck' and 'uninstall' targets for CMake 2017-07-03 16:15:17 -07:00
Rob.Gowin c68452a497 Remove configuration of HAVE_PUTENV.
The Python includes files for Windows define HAVE_PUTENV to be
empty. GnuCash under MINGW (only) defines it to be 1. This causes
redefinition errors when building the Python bindings on Windows.
HAVE_PUTENV is not used in the GnuCash code base, so the best
solution seems to be to just get rid of it.
2016-10-14 14:17:04 -05:00
Rob Gowin c599bf3c0b Use default PKG_CHECK_MODULES for CMake version > 3.4 2016-09-27 11:24:36 -05:00
Rob Gowin 78ef933e44 CMake improvements for SWIG handling and Python bindings.
* Add ability to either create SWIG C files or use generated ones
  depending on BUILDING_FROM_VCS.

* Add complete support for compiling Python bindings using
  WITH_PYTHON=YES.

* Add CMakeLists.txt files to a couple more directories.
2016-08-30 18:12:49 -05:00
Rob Gowin fa8723ea6d Fixes to get CMake "MinGW Makefiles" generator to work.
* CMakeLists.txt: Give CMake a hint about where to find pod2man
     based on where it found perl.

   * src/cmake_modules/GncConfigure.cmake: Protect GNC_HELPDIR in
     quotes for cases where it contains spaces (like "C:\Program Files"
     on Windows).
2016-07-16 14:12:58 -05:00
Rob Gowin 2c268ba09c Allow HTMLHELP_DIR to be specified on cmake command line 2016-07-14 21:05:32 -05:00
Rob Gowin c739f4fae4 CMake: Don't try to install COPYING file that does not exist. 2016-04-21 08:36:03 -05:00
RobGowin 6e50516c1d cmake - Increase test pass rate on Windows 2016-02-01 18:29:34 +01:00
RobGowin 0031478d86 Fix CMake build after maint merge 2016-01-26 12:13:49 -06:00
RobGowin 326f3cc0a2 Remove extra symlink command
* Remove symlink command that is now done a few lines later.
* Relocate comment.
* Do not install INSTALL (not needed) and COPYING (linked/copied elsewhere).
2016-01-25 09:35:48 -08:00
RobGowin 42e5dd5c8c cmake - Add ability to run tests under CMake 2016-01-24 19:54:33 -06:00
RobGowin 9b82651d3a Don't skip test under clang when using Guile 2.x 2016-01-24 16:28:12 -08:00
RobGowin 2bf0fed4a3 Change test to use LIBDIR to find dynamic libraries 2016-01-24 16:28:12 -08:00
RobGowin 7ab481a134 Add TEST_PATH variable to test
This allows the tests to run from some place other
than the current working directory.
2016-01-24 16:28:12 -08:00
RobGowin ed8e79c671 [cmake] Reflect commit db0fd2 (Replace the TP pt.po ...) in CMake build. 2016-01-22 09:46:00 -06:00
RobGowin 88a1d1412a Tweak handling of COPYING file
* Fix symlink to not escape local directory
* Copy instead of link for Win32
* Remove COPYING and INSTALL from maint branch
2016-01-15 09:59:55 -08:00
RobGowin 53b7c51632 Support CMake 3.0 for Debian Jessie 2016-01-14 09:58:29 -08:00
Rob Gowin 448148681f CMake build changes for maint
* Rename various .cpp files back to .c

* Carry copy INSTALL and COPYING from autotools.

* Fix unrelated issue with installing quote scripts.
2016-01-12 14:47:11 -08:00
Rob Gowin 1d474968ca Add ability to build GnuCash with CMake
Backported from master.
2016-01-12 14:47:11 -08:00
Rob Gowin 34c314aa48 Add ability to build GnuCash with CMake 2015-12-09 13:25:49 -06:00
Rob Gowin 4ee5763075 Fix build issues
src/backend/sql/gnc-transaction-sql.cpp:
   Move inclusion of escape.h out of extern "C" block since
   escape.h is now C++ code.

src/backend/xml/gnc-backend-xml.cpp:
   Move inclusion of gnc-pref.s out of extern "C" block since
   gnc-pref.c is still plain C code.
2015-12-02 14:23:17 +01:00
RobGowin 1c57e9c61d link gnc-gnome into gncmod-csv-exp 2015-11-23 15:25:43 -06:00
Rob.Gowin 05f08f330d Clean up bitrot to get CuteCash building again.
1. Use guile-2.0 instead of guile-1.8.
2. Set GNC_PLATFORM_POSIX on Unix (for gnc_timezone.cpp).
3. Pass guile include files when compiling cutecash.
4. Link Boost libraries.
5. Add -std=gnu99 to CMAKE_C_FLAGS.
6. Temporarily put -O2 in CMAKE_C_FLAGS since Fedora requires
    optimization for FORTIFY_SOURCE.  (Eventually with CMake
    we will have separate Debug and Release builds.)

Tested that cutecash builds and launches on OS X, Fedora 23 and Ubuntu 14.04.3.
2015-11-07 15:01:05 -06:00