cmake2meson.py: Fix missing quote around options type/name

pull/834/head
Gautier Pelloux-Prayer 8 years ago committed by Jussi Pakkanen
parent 08aeac22a9
commit 7bd06d88d5
  1. 1
      authors.txt
  2. 8
      tools/cmake2meson.py

@ -49,3 +49,4 @@ Franz Zapata
Emanuele Aina
Guillaume Poirier-Morency
Scott D Phillips
Gautier Pelloux-Prayer

@ -279,15 +279,15 @@ class Converter:
defaultstr = ''
else:
if default == 'OFF':
typestr = ' type : boolean,'
typestr = ' type : \'boolean\','
default = 'false'
elif default == 'ON':
default = 'true'
typestr = ' type : boolean,'
typestr = ' type : \'boolean\','
else:
typestr = ' type : string,'
typestr = ' type : \'string\','
defaultstr = ' value : %s,' % default
line = "option(%s,%s%s description : '%s')\n" % (optname,
line = "option(%r,%s%s description : '%s')\n" % (optname,
typestr,
defaultstr,
description)

Loading…
Cancel
Save