meson.build (fca2cbeafc22a46875314309c147a55a9d1cee87) | meson.build (e7245fe847e7282522a7979f816fd76f925348d3) |
---|---|
1# Gather the Configuration data 2 3conf_data = configuration_data() 4conf_data.set('BMCWEB_HTTP_REQ_BODY_LIMIT_MB', get_option('http-body-limit')) 5xss_enabled = get_option('insecure-disable-xss') 6conf_data.set10('BMCWEB_INSECURE_DISABLE_XSS_PREVENTION', xss_enabled.enabled()) 7enable_redfish_query = get_option('insecure-enable-redfish-query') 8conf_data.set10('BMCWEB_INSECURE_ENABLE_QUERY_PARAMS', enable_redfish_query.enabled()) --- 13 unchanged lines hidden (view full) --- 22conf_data.set10('BMCWEB_ENABLE_HTTP2', enable_http2.enabled()) 23 24# Logging level 25loglvlopt = get_option('bmcweb-logging') 26if get_option('buildtype').startswith('debug') and loglvlopt == 'disabled' 27 # Override logging level as 'debug' if 'bmcweb-logging' is set as 'dsiabled' 28 loglvlopt = 'debug' 29endif | 1# Gather the Configuration data 2 3conf_data = configuration_data() 4conf_data.set('BMCWEB_HTTP_REQ_BODY_LIMIT_MB', get_option('http-body-limit')) 5xss_enabled = get_option('insecure-disable-xss') 6conf_data.set10('BMCWEB_INSECURE_DISABLE_XSS_PREVENTION', xss_enabled.enabled()) 7enable_redfish_query = get_option('insecure-enable-redfish-query') 8conf_data.set10('BMCWEB_INSECURE_ENABLE_QUERY_PARAMS', enable_redfish_query.enabled()) --- 13 unchanged lines hidden (view full) --- 22conf_data.set10('BMCWEB_ENABLE_HTTP2', enable_http2.enabled()) 23 24# Logging level 25loglvlopt = get_option('bmcweb-logging') 26if get_option('buildtype').startswith('debug') and loglvlopt == 'disabled' 27 # Override logging level as 'debug' if 'bmcweb-logging' is set as 'dsiabled' 28 loglvlopt = 'debug' 29endif |
30loglvlopt = loglvlopt.to_upper() |
|
30conf_data.set('BMCWEB_LOGGING_LEVEL', loglvlopt) 31 32conf_h_dep = declare_dependency( 33 include_directories: include_directories('.'), 34 sources: configure_file( 35 input: 'bmcweb_config.h.in', 36 output: 'bmcweb_config.h', 37 configuration: conf_data --- 24 unchanged lines hidden --- | 31conf_data.set('BMCWEB_LOGGING_LEVEL', loglvlopt) 32 33conf_h_dep = declare_dependency( 34 include_directories: include_directories('.'), 35 sources: configure_file( 36 input: 'bmcweb_config.h.in', 37 output: 'bmcweb_config.h', 38 configuration: conf_data --- 24 unchanged lines hidden --- |