File: replace-enum-strings.cmake

package info (click to toggle)
harfbuzz 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100,084 kB
  • sloc: ansic: 77,785; cpp: 61,949; python: 4,961; xml: 4,651; sh: 426; makefile: 105
file content (21 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (8)
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})