11project (
2- ' python-systemd' ,
3- ' c' ,
4- version : ' 236' ,
5- license : ' LGPL-2.1-or-later' ,
6- default_options : [' warning_level=2' , ' c_std=c99' ],
2+ ' python-systemd' ,
3+ ' c' ,
4+ version : ' 236' ,
5+ license : ' LGPL-2.1-or-later' ,
6+ default_options : [' warning_level=2' , ' c_std=c99' ],
77)
88
99# Dependencies
@@ -12,89 +12,89 @@ python_dep = python.dependency()
1212
1313# Try to find libsystemd
1414foreach name : [
15- ' libsystemd' ,
16- ' libsystemd-journal' ,
17- ' libsystemd-daemon' ,
18- ' libsystemd-id128' ,
19- ' libsystemd-login' ,
15+ ' libsystemd' ,
16+ ' libsystemd-journal' ,
17+ ' libsystemd-daemon' ,
18+ ' libsystemd-id128' ,
19+ ' libsystemd-login' ,
2020]
21- libsystemd_dep = dependency (name, required : false )
22- if libsystemd_dep.found()
23- break
24- endif
21+ libsystemd_dep = dependency (name, required : false )
22+ if libsystemd_dep.found()
23+ break
24+ endif
2525endforeach
2626
2727# Common compile arguments matching setup.py
2828common_c_args = [
29- ' -std=c99' ,
30- ' -Werror=implicit-function-declaration' ,
31- ' -DPACKAGE_VERSION="' + meson .project_version() + ' "' ,
32- ' -DLIBSYSTEMD_VERSION=' + libsystemd_dep.version(),
29+ ' -std=c99' ,
30+ ' -Werror=implicit-function-declaration' ,
31+ ' -DPACKAGE_VERSION="' + meson .project_version() + ' "' ,
32+ ' -DLIBSYSTEMD_VERSION=' + libsystemd_dep.version(),
3333]
3434
3535# Build _journal extension module
3636python.extension_module(
37- ' _journal' ,
38- [' systemd/_journal.c' , ' systemd/pyutil.c' ],
39- dependencies : [libsystemd_dep],
40- c_args : common_c_args,
41- install : true ,
42- subdir : ' systemd' ,
37+ ' _journal' ,
38+ [' systemd/_journal.c' , ' systemd/pyutil.c' ],
39+ dependencies : [libsystemd_dep],
40+ c_args : common_c_args,
41+ install : true ,
42+ subdir : ' systemd' ,
4343)
4444
4545# Build _reader extension module
4646python.extension_module(
47- ' _reader' ,
48- [' systemd/_reader.c' , ' systemd/pyutil.c' , ' systemd/strv.c' ],
49- dependencies : [libsystemd_dep],
50- c_args : common_c_args,
51- install : true ,
52- subdir : ' systemd' ,
47+ ' _reader' ,
48+ [' systemd/_reader.c' , ' systemd/pyutil.c' , ' systemd/strv.c' ],
49+ dependencies : [libsystemd_dep],
50+ c_args : common_c_args,
51+ install : true ,
52+ subdir : ' systemd' ,
5353)
5454
5555# Build _daemon extension module
5656python.extension_module(
57- ' _daemon' ,
58- [' systemd/_daemon.c' , ' systemd/pyutil.c' , ' systemd/util.c' ],
59- dependencies : [libsystemd_dep],
60- c_args : common_c_args,
61- install : true ,
62- subdir : ' systemd' ,
57+ ' _daemon' ,
58+ [' systemd/_daemon.c' , ' systemd/pyutil.c' , ' systemd/util.c' ],
59+ dependencies : [libsystemd_dep],
60+ c_args : common_c_args,
61+ install : true ,
62+ subdir : ' systemd' ,
6363)
6464
6565# Build id128 extension module
6666python.extension_module(
67- ' id128' ,
68- [' systemd/id128.c' , ' systemd/pyutil.c' ],
69- dependencies : [libsystemd_dep],
70- c_args : common_c_args,
71- install : true ,
72- subdir : ' systemd' ,
67+ ' id128' ,
68+ [' systemd/id128.c' , ' systemd/pyutil.c' ],
69+ dependencies : [libsystemd_dep],
70+ c_args : common_c_args,
71+ install : true ,
72+ subdir : ' systemd' ,
7373)
7474
7575# Build login extension module
7676python.extension_module(
77- ' login' ,
78- [' systemd/login.c' , ' systemd/pyutil.c' , ' systemd/strv.c' ],
79- dependencies : [libsystemd_dep],
80- c_args : common_c_args,
81- install : true ,
82- subdir : ' systemd' ,
77+ ' login' ,
78+ [' systemd/login.c' , ' systemd/pyutil.c' , ' systemd/strv.c' ],
79+ dependencies : [libsystemd_dep],
80+ c_args : common_c_args,
81+ install : true ,
82+ subdir : ' systemd' ,
8383)
8484
8585# Install Python modules (matching py_modules in setup.py)
8686python.install_sources(
87- ' systemd/__init__.py' ,
88- ' systemd/journal.py' ,
89- ' systemd/daemon.py' ,
90- subdir : ' systemd' ,
87+ ' systemd/__init__.py' ,
88+ ' systemd/journal.py' ,
89+ ' systemd/daemon.py' ,
90+ subdir : ' systemd' ,
9191)
9292
9393# Install test modules
9494python.install_sources(
95- ' systemd/test/test_daemon.py' ,
96- ' systemd/test/test_journal.py' ,
97- ' systemd/test/test_login.py' ,
98- ' systemd/test/test_id128.py' ,
99- subdir : ' systemd/test' ,
95+ ' systemd/test/test_daemon.py' ,
96+ ' systemd/test/test_journal.py' ,
97+ ' systemd/test/test_login.py' ,
98+ ' systemd/test/test_id128.py' ,
99+ subdir : ' systemd/test' ,
100100)
0 commit comments