replace-enum-strings.cmake 352 字节
Newer Older
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})