summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/harfbuzz-src/replace-enum-strings.cmake
blob: 42fdbff900206aa00719a63087c89a10debb429a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# CMake script to replace items
# in sources generated by glib-mkenums

FILE(READ ${ENUM_INPUT_SRC} enum_in)

STRING(REPLACE
  "_t_get_type"
  "_get_type"
  enum_out_tmp
  "${enum_in}"
  )

STRING(REPLACE
  "_T ("
  " ("
  enum_out
  "${enum_out_tmp}"
  )

FILE(WRITE ${ENUM_OUTPUT_SRC} "${enum_out}")
FILE(REMOVE ${ENUM_INPUT_SRC})