Home | History | Annotate | Download | only in harfbuzz_ng
      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})