1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
sources = files(
'ce-page.c',
'ce-polkit-button.c',
'ce-polkit.c',
'ce-utils.c',
'connection-helpers.c',
'ip4-routes-dialog.c',
'ip6-routes-dialog.c',
'nm-connection-editor.c',
'nm-connection-list.c',
'main.c',
'page-8021x-security.c',
'page-bridge.c',
'page-bridge-port.c',
'page-bluetooth.c',
'page-bond.c',
'page-dcb.c',
'page-dsl.c',
'page-ethernet.c',
'page-general.c',
'page-infiniband.c',
'page-ip-tunnel.c',
'page-ip4.c',
'page-ip6.c',
'page-macsec.c',
'page-master.c',
'page-mobile.c',
'page-ppp.c',
'page-proxy.c',
'page-team.c',
'page-team-port.c',
'page-vlan.c',
'page-vpn.c',
'page-wifi.c',
'page-wifi-security.c',
'page-wireguard.c',
'ppp-auth-methods-dialog.c',
'vpn-helpers.c'
)
resource_data = files(
'ce-ip4-routes.ui',
'ce-ip6-routes.ui',
'ce-new-connection.ui',
'ce-page-bluetooth.ui',
'ce-page-bond.ui',
'ce-page-bridge-port.ui',
'ce-page-bridge.ui',
'ce-page-dcb.ui',
'ce-page-dsl.ui',
'ce-page-ethernet.ui',
'ce-page-general.ui',
'ce-page-infiniband.ui',
'ce-page-ip4.ui',
'ce-page-ip6.ui',
'ce-page-ip-tunnel.ui',
'ce-page-macsec.ui',
'ce-page-mobile.ui',
'ce-page-ppp.ui',
'ce-page-proxy.ui',
'ce-page-team-port.ui',
'ce-page-team.ui',
'ce-page-vlan.ui',
'ce-page-wifi-security.ui',
'ce-page-wifi.ui',
'ce-page-wireguard.ui',
'ce-ppp-auth-methods.ui',
'gtk/menus.ui',
'nm-connection-editor.ui',
'nm-connection-list.ui'
)
sources += gnome.compile_resources(
'ce-resources',
'ce.gresource.xml',
dependencies: resource_data
)
incs = [
top_inc,
utils_inc,
src_inc,
shared_inc,
wireless_security_inc
]
deps = [
gtk_dep,
libnm_dep,
libnma_dep,
m_dep,
libutils_libnm_dep
]
cflags = [
'-DBINDIR="@0@"'.format(nma_bindir),
'-DDATADIR="@0@"'.format(nma_datadir),
'-DLIBDIR="@0@"'.format(nma_libdir),
'-DNMALOCALEDIR="@0@"'.format(nma_localedir),
'-DSYSCONFDIR="@0@"'.format(nma_sysconfdir),
'-DICONDIR="@0@"'.format(nma_icondir)
]
if enable_selinux
deps += libselinux_dep
endif
if enable_team
deps += jansson_dep
endif
executable(
'nm-connection-editor',
sources,
include_directories: incs,
dependencies: deps,
c_args: cflags,
link_args: '-Wl,--version-script,@0@'.format(linker_script_ver),
link_depends: linker_script_ver,
link_whole: libwireless_security_libnm,
install: true,
install_dir: nma_bindir
)
|