blob: f42656b2968db6b8648d03348d7f820b6a7cbb2c [file] [log] [blame]
Nan Zhou307386e2022-10-12 20:29:34 +00001# 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())
9# enable_redfish_aggregation = get_option('redfish-aggregation')
10# conf_data.set10('BMCWEB_ENABLE_REDFISH_AGGREGATION', enable_redfish_aggregation.enabled())
11insecure_push_style_notification = get_option('insecure-push-style-notification')
12conf_data.set10('BMCWEB_INSECURE_ENABLE_HTTP_PUSH_STYLE_EVENTING', insecure_push_style_notification.enabled())
13conf_data.set('MESON_INSTALL_PREFIX', get_option('prefix'))
14conf_data.set('HTTPS_PORT', get_option('https_port'))
15
16conf_h_dep = declare_dependency(
17 include_directories: include_directories('.'),
18 sources: configure_file(
19 input: 'bmcweb_config.h.in',
20 output: 'bmcweb_config.h',
21 configuration: conf_data
22 )
23)
24
25# Configure and install systemd unit files
26
27configure_file(input : 'bmcweb.socket.in',
28 output : 'bmcweb.socket',
29 install_dir: systemd_system_unit_dir,
30 configuration: conf_data,
31 install : true)
32
33configure_file(input : 'bmcweb.service.in',
34 output : 'bmcweb.service',
35 install_dir: systemd_system_unit_dir,
36 configuration: conf_data,
37 install : true)
38
39# Copy pam-webserver to etc/pam.d
40configure_file(input : 'pam-webserver',
41 output : 'webserver',
42 copy : true,
43 install_dir: '/etc/pam.d',
44 install : true)