<s> from conans . model import Generator <EOL> from conans . paths import BUILD_INFO_YCM <EOL> class YouCompleteMeGenerator ( Generator ) : <EOL> template = '''<STR_LIT>''' <EOL> @ property <EOL> def filename ( self ) : <EOL> return BUILD_INFO_YCM <EOL> @ property <EOL> def content ( self ) : <EOL> def prefixed ( prefix , values ) : <EOL> return [ prefix + x for x in values ] <EOL> flags = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> flags . extend ( self . deps_build_info . cppflags ) <EOL> flags . extend ( self . build_info . cppflags ) <EOL> flags . extend ( prefixed ( "<STR_LIT>" , self . deps_build_info . defines ) ) <EOL> flags . extend ( prefixed ( "<STR_LIT>" , self . build_info . defines ) ) <EOL> flags . extend ( prefixed ( "<STR_LIT>" , self . build_info . include_paths ) ) <EOL> flags . extend ( prefixed ( "<STR_LIT>" , self . deps_build_info . include_paths ) ) <EOL> return self . template . format ( default_flags = "<STR_LIT:'>" + "<STR_LIT>" . join ( flags ) + "<STR_LIT:'>" ) </s>
