Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Elstner 812c0e3592 build: Limit auto-versioning to git revision hash
When building from a git checkout and HEAD does not exactly match
a tag, append the shortened revision hash to the hardcoded version
string. Do not attempt to provide any information beyond that.

This brings the PulseView versioning in line with the other modules
in the sigrok stack.
2015-11-02 22:14:39 +01:00
Daniel Elstner 3d87310109 Build: Use -dirty version suffix for local changes
Pass --dirty to git describe.  This needed a slight hack to
GetGitRevisionDescription.cmake to make it work.  Also pass
--tags to make git include lightweight tags in its search.
2015-07-25 19:11:40 +02:00
Daniel Elstner 1e8c82e90f build: Derive PulseView version from git tags
Derive the PulseView version numbers and suffix from the git
repository if available. In order to make builds from source
tarballs work, also include a generated VERSION file in the
source package generated by CPack.

The included GetGitRevisionDescription.cmake file is a copy
from the https://github.com/rpavlik/cmake-modules repository.
2015-07-25 19:11:40 +02:00
Joel Holdsworth 649f62311e Removed cotire
cotire has proven itself to be counter-productive. It rebuilds the pre-compiled
header after any header in pulseview is modified causes a complete rebuild of
all of PulseView. Also, the pre-compiled header contains a union of all the
includes of all source files, which masks errors where source files are missing
needed includes.
2014-12-03 22:56:57 +00:00
Joel Holdsworth b825c9cdf2 Upgraded cotire to 1.6.6 2014-11-22 14:32:09 +00:00
Uwe Hermann d48a82ee52 memaccess.cmake: Use STATUS instead of WARNING for output.
Using STATUS looks nicer here (and it's an informational message only).

Old:
CMake Warning at CMake/memaccess.cmake:39 (MESSAGE):
  Cross compiling - using portable code for memory access
Call Stack (most recent call first):
  CMakeLists.txt:93 (memaccess_check_unaligned_le)

New:
-- Cross compiling - using portable code for memory access
2014-02-20 14:35:28 +01:00
Uwe Hermann 1b1dbb9158 memaccess.cmake: Cosmetics, whitespace, consistency fixes.
Match the rest of PulseView's CMake file conventions more closely.
2014-02-20 14:34:47 +01:00
Marcus Comstedt 7846778e25 Skip check for unportable sample pack/unpack when cross-compiling 2014-02-19 19:40:34 +01:00
Marcus Comstedt 9df8453f68 Check if unportable sample pack/unpack works and in that case use it. 2014-02-19 16:35:06 +01:00
Joel Holdsworth 0cf9fb2478 Used cotire to enhance build performance
Cotire (compile time reducer) is a CMake module that speeds up the
build process of CMake based build systems by fully automating
techniques as precompiled header usage and single compilation unit
builds for C and C++.

Cotire is released under the MIT license.
2013-09-03 12:50:48 +01:00