Commit Graph

65 Commits

Author SHA1 Message Date
Moritz Bunkus
b8549432ef
build system: use compiler-style warning output when updating QRC
Allows editors to pick up on them & "go to next warning/error" type
key bindings to work
2020-12-12 13:05:12 +01:00
Ofir Petrushka
962088f59c style: rubocop Style/Encoding
Fix Style/Encoding by rubocop

Signed-off-by: Cody Coder <cody.coder@gitcodebuddy.com>
2020-10-07 11:58:06 +11:00
Moritz Bunkus
572bf8d552
Rakefile: fix name/description of target generating ISO 639 language list 2020-07-02 19:09:47 +02:00
Moritz Bunkus
d34d87804c
build system: fix dependencies of QRC files wrt. icons 2020-06-21 20:23:11 +02:00
Moritz Bunkus
3e4f59d3ab
build system: add dev target for updating ISO 639 language list 2020-06-02 19:33:10 +02:00
Moritz Bunkus
e9d65b182b
build system: add dependencies for Qt resource files 2019-11-08 11:12:53 +01:00
Moritz Bunkus
95f7d12f48
Revert "build system: verify configured host type is same as current host type"
This reverts commit af744cea80.
2019-09-27 18:02:13 +02:00
Moritz Bunkus
af744cea80
build system: verify configured host type is same as current host type 2019-09-27 17:01:22 +02:00
Moritz Bunkus
6a8246e7eb
build system: include git commit number since last release in version for dev builds 2019-09-11 20:27:47 +02:00
Moritz Bunkus
61b8dfd203
build system: create ebml_export.h if using internal libEBML 2019-05-25 12:24:38 +02:00
Moritz Bunkus
3cbd95b003
build system: move compiler flag determination to Rakefile
Logic's more straight forward to implement there instead of having to
check in `configure`, adding a variable to `build-local.in` and using
that variable later on. The logic's the same in both places anyway.
2019-02-23 21:11:19 +01:00
Moritz Bunkus
0830be34db
build sys: include globally-required modules from single place 2019-02-05 13:45:34 +01:00
Moritz Bunkus
cc7b32a6f4
build system: implement fmt::format & Qt verification in translation files 2018-12-04 17:18:50 +01:00
Moritz Bunkus
c6ad3ba3cb
generate manifest.xml files from templates 2018-10-28 13:48:27 +01:00
Moritz Bunkus
64a52f7590
build system: fix dependency calculation with zapcc part 2
In revision 9f2038a8ef I tried to fix
dependency handling for zapcc which were output in a different
format. Unfortunately this broke with other compiler versions that
still put multiple source files on a single line separated by spaces.

So fix the fix.
2018-08-20 17:12:34 +02:00
Moritz Bunkus
9f2038a8ef
build system: fix dependency calculation with zapcc
zapcc (and probably newer clangs, too) will always output absolute
paths to source files in the dependency files they create. Therefore
the algorithm that removes any file not part of the MKVToolNix source
tree from the dependency list has to take that into account.
2018-08-20 14:49:16 +02:00
Moritz Bunkus
de37cf3418 build system: output error if command to execute isn't found 2018-01-21 12:48:15 +01:00
Moritz Bunkus
eebe77f6a3 build system: use FileUtils.mkdir_p instead of a mutex for creating directories
No need for a full-blown mutex as `mkdir_p` already handles the
directory existing correctly via catching the corresponding
exception.

See #2194.
2018-01-13 21:30:56 +01:00
Moritz Bunkus
635e546a58 build system: avoid race condition when creating dependency directories 2018-01-08 21:10:52 +01:00
Moritz Bunkus
c2f7fbb05a build system: extend RUN_SHOW_START_STOP to runq_git 2018-01-02 22:36:54 +01:00
Moritz Bunkus
80761260be build system: show start/stop messages including duration with RUN_SHOW_START_STOP 2018-01-02 15:40:24 +01:00
Moritz Bunkus
17eb6205e0 Rakefile: add task for dumping a task's dependencies 2018-01-01 11:02:38 +01:00
Moritz Bunkus
f22fc8b426 update_translation.rb: normalize po file after copying it 2016-04-10 15:22:19 +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
KonaBlend
ca686f2ff8 build system: consolidate puts_runq and $verbose 2016-03-28 05:32:00 -04: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
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
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
ba3fbeaa14 build system: fix po style adjustment with very long file names
If a path + file name exceeds the wrap length then the translation
update mechanism went into an endless loop. So always output at least
one file, even if the line length limit is violated.
2015-06-26 21:04:15 +02:00
Moritz Bunkus
8221f3453c build system: force UTF-8 string encoding when reading source files
The files are encoded in UTF-8. Unfortunately there are situations in
which the environment either has no locale set at all or one that
doesn't use an encoding of UTF-8 (e.g. LC_ALL=C). In such cases Ruby's
default string encoding is set to US-ASCII.

Fixes #1189.
2015-05-11 18:20:50 +02:00
Moritz Bunkus
0bad8270cb build system: fix Ruby warnings
These include:

- assigned but unused local variable
- & interpreted as argument prefix
- ambiguous first argument
- shadowed variables
2015-03-24 13:20:18 +01:00
Moritz Bunkus
8b22523e55 build system: multiple sources in one line in Swedish translation file 2015-03-24 13:14:55 +01:00
Moritz Bunkus
da54691975 man page translations: fix format
po4a-translate requires empty lines at precisely the right places in
order to recognize entries.

Fixes #1134.
2015-02-27 18:51:40 +01:00
Moritz Bunkus
7ce1885173 Build system: don't word-wrap Turkish .po file 2014-08-24 14:40:12 +02:00
Moritz Bunkus
f6b4a41ded build system: adjust nl translation to translator's poedit style 2014-06-11 08:17:58 +02:00
Moritz Bunkus
aeb65b3caa build system: adjust to poedit style for Basque translations 2014-04-28 20:33:18 +02:00
Moritz Bunkus
1ea5a2f8c9 Build system: adjust po settings for Polish translator's poedit 2014-04-18 09:16:29 +02:00
Moritz Bunkus
2f97945b15 build system: adjust Ukrainian translation files format 2014-03-22 09:25:27 +01:00
Moritz Bunkus
2d3be2275f build system: use tighter dependencies for Qt files 2014-02-01 23:43:57 +01:00
Moritz Bunkus
4d946f05e1 Merge branch 'master' into mkvtoolnix-gui 2014-01-17 16:49:54 +01:00
Moritz Bunkus
3d015db49b build system: convert bin2h call from Ruby executable to built-in function 2014-01-01 21:41:01 +01:00
Moritz Bunkus
1e8b9e8540 Rake: Helper method for debugging dependency issues 2013-12-30 19:35:25 +01:00
Moritz Bunkus
17562886a6 build system: reformat certain po files to match poedit's current output 2013-12-29 00:29:28 +01:00
Moritz Bunkus
06c07a0906 Rakefile: task for cleaning just the unit tests 2013-07-04 23:11:44 +02:00
Moritz Bunkus
cdc7dddb90 Avoid warning from Ruby 1.8.7 2012-04-26 15:58:35 +02:00