src/gen-hb-version.py


Log

Author Commit Date CI Message
aneejit1 a55a4244 2022-03-24T20:16:41 Meson build writes to the source directory (issue #3507 ) (#3508) Don't write to source directory if files did not change Remove writes to the source directory which cause a meson build failure if the source directory is read-only. https://github.com/harfbuzz/harfbuzz/pull/3508
Behdad Esfahbod 6f190943 2021-09-23T08:39:29 [getn-hb-version.py] Open old output in UTF-8 mode as well Fixes https://github.com/harfbuzz/harfbuzz/issues/3227
Ryan 769a21aa 2020-12-23T02:31:03 meson: avoid regenerating hb-version.h unnecessarily The file is a dependency for the library as a whole, so previously editing the Meson build files at all would force a full rebuild. This will only rebuild it if the version has changed.
Ross Burton bc1c93fb 2020-09-07T17:11:17 [build] No need to pass source directory to gen-hb-version The input file is by definition in the source directory, so dirname() that instead of needing the directory to be passed. Needed because a follow-up commit will change when this is called, and the source directory isn't trivially available at that point.
Ebrahim Byagowi a7e82e4f 2020-07-04T12:04:41 [meson] use the recommended way to generate hb-version.h As https://github.com/harfbuzz/harfbuzz/pull/2532
Ebrahim Byagowi 82c6ddb9 2020-07-03T15:09:10 [py] remove not needed imports
Ebrahim Byagowi 9737170b 2020-06-02T19:18:35 minor fixes on src gen scripts
Ebrahim Byagowi 368ca306 2020-05-29T00:42:32 minor on python scripts * remove not needed imports * remove semicolons
Ebrahim Byagowi 08f1d95a 2020-05-28T15:01:15 minor, move scripts manuals to __doc__
Ebrahim Byagowi e3af529e 2020-05-23T22:13:32 [meson] update generated headers only when the result is different This way it won't ruin incremental builds. We need a better way to declare source altering tasks https://github.com/mesonbuild/meson/issues/7156 yet this is good enough despite being not idiomatic. It is however not that smooth yet as the change may is detected on the next meson run. One of course can issue ./gen-ragel-artifacts.py manually for better experience before running meson.
Ebrahim Byagowi f9b31dda 2020-05-21T08:37:44 [build] State encoding explicitly for hb-version.h.in As https://circleci.com/gh/harfbuzz/harfbuzz/140481 Traceback (most recent call last): File "./gen-hb-version.py", line 14, in <module> output_file.write (input_file.read () File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 16: ordinal not in range(128)
Ebrahim Byagowi 4fc6189a 2020-04-21T12:19:16 [meson] Generate harfbuzz.cc, hb-version.h and ragel artifacts