Commit Graph

142 Commits

Author SHA1 Message Date
Moritz Bunkus
6710d27554 build: add tests for header/include guard syntax 2017-07-15 11:57:45 +02:00
Moritz Bunkus
5886f4cf75 build system: run test suite with LC_ALL=C
Otherwise the translations of an existing installation of MKVToolNix
might be used causing tests such as the file size formatting functions
to fail as translated unit names are used.

See #2011.
2017-06-18 11:50:18 +02:00
Moritz Bunkus
4772eaa20a Rakefile: method for updating Windows installer translation files from English 2017-05-20 19:00:31 +02:00
Moritz Bunkus
485030bcc0 build system: only build files intended for target 2017-04-04 19:26:54 +02:00
Moritz Bunkus
8b295e1332 build system: fix pugixml again
Another part of the implementation of #1891.
2017-02-13 21:37:29 +01:00
Moritz Bunkus
c1213feac3 build system: try detecting pugixml via pkg-config with fallback
Implements #1891.
2017-02-13 20:47:45 +01:00
Moritz Bunkus
040c0fccf4 build system: remove included drake 2017-01-08 21:00:55 +01:00
Moritz Bunkus
d7b691b6f5 all: remove --check-for-updates command line option & dependency on CURL 2016-12-30 15:01:30 +01:00
Moritz Bunkus
c7e004efa1 PCH #include scanner: force string encoding to be UTF-8
If the locale is set to non-UTF-8 when (d)rake is invoked then Ruby will
set the encoding of all strings read from files to US-ASCII. As several
source files do use non-ASCII characters this results in warnings from
Ruby about "invalid byte sequence in US-ASCII".

As all of my source code files are encoded in UTF-8 we can simply
enforce this.

This happens when building the RPMs which sets the locale to C.
2016-12-10 11:32:50 +01:00
Moritz Bunkus
9c2ecc392a build system: update Project-Id-Version PO header on manual updates, too 2016-11-20 17:27:08 +01:00
Moritz Bunkus
d2e4b377d6 build system: normalize-po: constrict msgstr entries to number of plurals in header 2016-11-02 15:28:26 +01:00
Moritz Bunkus
1bf229372e po helpers: don't remove fuzzy flag in orig item if present in updated item, too 2016-07-23 14:20:05 +02:00
Moritz Bunkus
e0c97ab528 format string verification: ignore fuzzy entries 2016-07-11 21:53:14 +02:00
Moritz Bunkus
38b05acd3a translations: mark "0.3%" entry not to contain format strings 2016-07-11 21:52:43 +02:00
Moritz Bunkus
3c2b49200f build: extend format string verification to plurals 2016-07-11 20:59:19 +02:00
Moritz Bunkus
e1862cbc3a build system: ignore one more translatable string in c-format checks 2016-07-10 17:53:56 +02:00
Moritz Bunkus
56af6d1273 update_translations.rb: merge new entries instead of copying the file
That way changes to the source locations won't trigger huge diffs.
2016-05-23 09:31:01 +02:00
Moritz Bunkus
f22fc8b426 update_translation.rb: normalize po file after copying it 2016-04-10 15:22:19 +02:00
KonaBlend
8ae78da74e build system: fix open file leak 2016-04-08 10:39:27 -04:00
Moritz Bunkus
dd54191eba build: accept unchanged strings from Transifex if original is fuzzy 2016-04-02 10:56:06 +02:00
Moritz Bunkus
3c27ccf5d0 Rakefile: optionally include Transifex push/pull targets for languages in -T 2016-03-29 14:57:08 +02:00
Moritz Bunkus
9a2beaca81 build system: add git sub-command to action side of non-verbose output 2016-03-28 17:41:07 +02:00
Moritz Bunkus
9bbe8da474 build system: puts_runq has been refactored to puts_qaction, not puts_vaction 2016-03-28 17:40:48 +02:00
Moritz Bunkus
39f421bffb Transifex pull: use Plural-Forms meta entry from Transifex 2016-03-28 17:36:47 +02:00
Moritz Bunkus
78a561113d build system: puts_runq has been refactored to puts_vaction 2016-03-28 17:34:32 +02:00
KonaBlend
ca686f2ff8 build system: consolidate puts_runq and $verbose 2016-03-28 05:32:00 -04:00
KonaBlend
693de4f112 build system: fix moc dependencies
- fix is a combination of 95c2edd3 and cee1debe progression
- 95c2edd3 masked a cee1debe regression

When pch is enabled we must establish a .moco => .moc dependency
(regressed by cee1debe).

Other changes are cosmetic.
2016-03-27 17:21:58 -04:00
Moritz Bunkus
95c2edd329 build system: fix dependencies for pre-compiled headers
The error was that a dependency was set from the source files to the
pre-compiled header (e.g. src/mkvmerge/mkvmerge.cpp =>
src/common/common_pch.h.pch). The dependency must be for the object
file, though, otherwise the source files will always be considered to be
out of date.
2016-03-26 13:21:59 +01:00
Moritz Bunkus
98e5bda5e9 build system: fix indentation 2016-03-26 13:10:31 +01:00
Moritz Bunkus
7e600c7e70 build system: centralize runq output
That way adjusting to a uniform width is easier.
2016-03-26 12:34:52 +01:00
Moritz Bunkus
8af78d72fc build system: add targets for pushing to Transifex 2016-03-26 12:15:11 +01:00
KonaBlend
cee1debeaf add explicit pch support
- convert gcc to use -include
- add clang support for -include
- new target namespace: pch (invoke rake -T or pch:overview for details)
- move pch logic into rake.d/pch.rb
- convert a few troublesome source files from ISO-8859-1 -> UTF-8
- add persistent config: config.pch.json
- add TTY support for running commands with filters (keeps pretty
  color diagnostics even when filtering compiler stdout/stderr)
- for fun try:

        drake "pch[pretty]"
        drake -j4
        drake pch:status
2016-03-26 03:52:21 -04:00
Moritz Bunkus
9d4098f2da build system: update .po meta info when pulling from Transifex 2016-02-28 16:37:03 +01:00
Moritz Bunkus
c2eb33c261 build system: remove old suggestions when merging updates from Transifex 2016-02-28 15:56:05 +01:00
Moritz Bunkus
64d6ad3c40 build system: add targets for pulling & merging from Transifex 2016-02-28 11:47:01 +01:00
Moritz Bunkus
ede64202c9 build system: Mutex is always required 2016-02-28 11:34:53 +01:00
Moritz Bunkus
9bb97976d6 build system: add target for normalizing all .po files to one format
Pulling and integrating the translation updates from Transifex
will need automation. In order to keep the resulting diffs as
small as possible all files will have to use a unified format.

This code re-writes all po files in that format.
2016-02-28 11:08:00 +01:00
Moritz Bunkus
5d38913181 build system: helper target for pulling from Transifex 2016-02-21 15:19:28 +01:00
Moritz Bunkus
01e6695b8c build system: remove superfluous bin2h functions
This function and the associated rules are leftovers from the
mmg/wxWidgets days.
2016-01-18 21:12:49 +01:00
Moritz Bunkus
d867a79d97 build system: use {EBML,MATROSKA}_{CFLAGS,LIBS} from pkg-config if not internal 2015-11-21 11:56:27 +01:00
Moritz Bunkus
5dde8524e3 Merge branch 'master' of github.com:mbunkus/mkvtoolnix 2015-08-28 19:26:18 +02:00
Moritz Bunkus
6e7d212a45 build system: don't use u flag for ar
Newer ar seem to be built with --enable-dterministic-archives. In that
mode u has no effect, and ar emits a warning. Since u is not really a
speed gain nowadays let's just not use it at all.
2015-08-28 17:49:57 +02:00
Moritz Bunkus
50c600ef84 add_po.rb: move to build/development-tools directory 2015-08-27 22:38:10 +02:00
Moritz Bunkus
f1b2032c79 add_po.rb: add support for tar files 2015-08-23 21:47:04 +02:00
Moritz Bunkus
84c65b1ee6 add_po.rb: support for 7zipRAR archives 2015-08-16 17:32:27 +02:00
Moritz Bunkus
64465ce72b all: remove support for wxWidgets; remove mmg 2015-08-15 20:33:46 +02:00
Moritz Bunkus
ca24089eb4 add_po.rb: support for RAR archives 2015-08-15 08:05:08 +02:00
Moritz Bunkus
58414b1f4f add_po.rb: unlink archive after extraction 2015-07-24 15:36:08 +02:00
Moritz Bunkus
58b79f1c98 add a script for adding po files automatically 2015-07-24 15:19:12 +02:00
Moritz Bunkus
c9fed48fdb build system: function »error« does not existt 2015-07-18 20:21:26 +02:00