公司动态
BmcWeb:Meson定义常量
Meson有一套自己的定义常量的方式,以BmcWeb举例://meson.options# BMCWEB_SESSION_AUTHoption( 'session-auth', type: 'feature', value: 'enabled', description: 'Enable session authentication',)//定义了一个option//meson.buildfeature_options = [ ... 'session-auth', ...]foreach feature_type, feature_list : { 'Feature': feature_options, 'Numeric': int_options, 'String': string_options,} summary_dict = {}