1
1
project (
2
- ' phosphor-networkd' ,
3
- ' cpp' ,
4
- version : ' 0.1' ,
5
- meson_version : ' >=1.1.1' ,
6
- default_options : [
7
- ' warning_level=3' ,
8
- ' cpp_std=c++23' ,
9
- ])
2
+ ' phosphor-networkd' ,
3
+ ' cpp' ,
4
+ version : ' 0.1' ,
5
+ meson_version : ' >=1.1.1' ,
6
+ default_options : [' warning_level=3' , ' cpp_std=c++23' ],
7
+ )
10
8
11
9
default_busname = ' xyz.openbmc_project.Network'
12
10
13
11
conf_data = configuration_data ()
14
12
conf_data.set_quoted(' DEFAULT_BUSNAME' , default_busname)
15
13
conf_data.set(' HAVE_UBOOT_ENV' , get_option (' uboot-env' ))
16
14
conf_data.set(
17
- ' LINK_LOCAL_AUTOCONFIGURATION' ,
18
- get_option (' default-link-local-autoconf' ))
19
- conf_data.set(
20
- ' ENABLE_IPV6_ACCEPT_RA' ,
21
- get_option (' default-ipv6-accept-ra' ))
15
+ ' LINK_LOCAL_AUTOCONFIGURATION' ,
16
+ get_option (' default-link-local-autoconf' ),
17
+ )
18
+ conf_data.set(' ENABLE_IPV6_ACCEPT_RA' , get_option (' default-ipv6-accept-ra' ))
22
19
conf_data.set(' SYNC_MAC_FROM_INVENTORY' , get_option (' sync-mac' ))
23
20
conf_data.set(' PERSIST_MAC' , get_option (' persist-mac' ))
24
21
conf_data.set10(' FORCE_SYNC_MAC_FROM_INVENTORY' , get_option (' force-sync-mac' ))
@@ -28,10 +25,12 @@ sdbusplusplus_prog = find_program('sdbus++', native: true)
28
25
sdbuspp_gen_meson_prog = find_program (' sdbus++-gen-meson' , native : true )
29
26
sdbusplusplus_depfiles = files ()
30
27
if sdbusplus_dep.type_name() == ' internal'
31
- sdbusplusplus_depfiles = subproject (' sdbusplus' ).get_variable (' sdbusplusplus_depfiles' )
28
+ sdbusplusplus_depfiles = subproject (' sdbusplus' ).get_variable (
29
+ ' sdbusplusplus_depfiles' ,
30
+ )
32
31
endif
33
32
34
- yaml_selected_subdirs = [ ' xyz' ]
33
+ yaml_selected_subdirs = [' xyz' ]
35
34
should_generate_cpp = true
36
35
should_generate_markdown = false
37
36
should_generate_registry = false
@@ -40,17 +39,15 @@ networkd_dbus_includes = include_directories('gen')
40
39
41
40
phosphor_dbus_interfaces_dep = dependency (' phosphor-dbus-interfaces' )
42
41
43
- networkd_dbus_deps = [
44
- phosphor_dbus_interfaces_dep,
45
- sdbusplus_dep,
46
- ]
42
+ networkd_dbus_deps = [phosphor_dbus_interfaces_dep, sdbusplus_dep]
47
43
48
44
networkd_dbus_lib = static_library (
49
- ' networkd_dbus' ,
50
- generated_sources,
51
- implicit_include_directories : false ,
52
- include_directories : networkd_dbus_includes,
53
- dependencies : networkd_dbus_deps)
45
+ ' networkd_dbus' ,
46
+ generated_sources,
47
+ implicit_include_directories : false ,
48
+ include_directories : networkd_dbus_includes,
49
+ dependencies : networkd_dbus_deps,
50
+ )
54
51
55
52
generated_files_headers = []
56
53
foreach s : generated_sources
@@ -63,39 +60,41 @@ foreach s : generated_sources
63
60
endforeach
64
61
65
62
networkd_dbus_dep = declare_dependency (
66
- sources : generated_files_headers,
67
- include_directories : networkd_dbus_includes,
68
- link_with : networkd_dbus_lib,
69
- dependencies : networkd_dbus_deps)
63
+ sources : generated_files_headers,
64
+ include_directories : networkd_dbus_includes,
65
+ link_with : networkd_dbus_lib,
66
+ dependencies : networkd_dbus_deps,
67
+ )
70
68
71
69
subdir (' src' )
72
70
73
71
configure_file (
74
- input : ' 60-phosphor-networkd-default.network.in' ,
75
- output : ' 60-phosphor-networkd-default.network' ,
76
- configuration : conf_data,
77
- install : true ,
78
- install_dir : dependency (' systemd' ).get_variable (
79
- ' systemdutildir ' ) / ' network ' )
72
+ input : ' 60-phosphor-networkd-default.network.in' ,
73
+ output : ' 60-phosphor-networkd-default.network' ,
74
+ configuration : conf_data,
75
+ install : true ,
76
+ install_dir : dependency (' systemd' ).get_variable (' systemdutildir ' ) / ' network ' ,
77
+ )
80
78
81
79
configure_file (
82
- input : ' xyz.openbmc_project.Network.service.in' ,
83
- output : ' xyz.openbmc_project.Network.service' ,
84
- configuration : {
85
- ' SYSTEMD_TARGET' : ' multi-user.target' ,
86
- ' DEFAULT_BUSNAME' : default_busname,
87
- },
88
- install : true ,
89
- install_dir : dependency (' systemd' ).get_variable (
90
- ' systemdsystemunitdir ' ) )
80
+ input : ' xyz.openbmc_project.Network.service.in' ,
81
+ output : ' xyz.openbmc_project.Network.service' ,
82
+ configuration : {
83
+ ' SYSTEMD_TARGET' : ' multi-user.target' ,
84
+ ' DEFAULT_BUSNAME' : default_busname,
85
+ },
86
+ install : true ,
87
+ install_dir : dependency (' systemd' ).get_variable (' systemdsystemunitdir ' ),
88
+ )
91
89
92
90
configure_file (
93
- input : ' xyz.openbmc_project.Network.conf.in' ,
94
- output : ' xyz.openbmc_project.Network.conf' ,
95
- configuration : {' DEFAULT_BUSNAME' : default_busname},
96
- install : true ,
97
- install_dir : get_option (' datadir' ) / ' dbus-1' / ' system.d' )
91
+ input : ' xyz.openbmc_project.Network.conf.in' ,
92
+ output : ' xyz.openbmc_project.Network.conf' ,
93
+ configuration : {' DEFAULT_BUSNAME' : default_busname},
94
+ install : true ,
95
+ install_dir : get_option (' datadir' ) / ' dbus-1' / ' system.d' ,
96
+ )
98
97
99
98
if get_option (' tests' ).allowed()
100
- subdir (' test' )
99
+ subdir (' test' )
101
100
endif
0 commit comments