comparison mupdf-source/thirdparty/harfbuzz/replace-enum-strings.cmake @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # CMake script to replace items
2 # in sources generated by glib-mkenums
3
4 FILE(READ ${ENUM_INPUT_SRC} enum_in)
5
6 STRING(REPLACE
7 "_t_get_type"
8 "_get_type"
9 enum_out_tmp
10 "${enum_in}"
11 )
12
13 STRING(REPLACE
14 "_T ("
15 " ("
16 enum_out
17 "${enum_out_tmp}"
18 )
19
20 FILE(WRITE ${ENUM_OUTPUT_SRC} "${enum_out}")
21 FILE(REMOVE ${ENUM_INPUT_SRC})