mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Fix CI with systemd
This commit is contained in:
@@ -90,6 +90,7 @@ Run-time dependencies:
|
|||||||
* ``freetype`` (not needed on macOS)
|
* ``freetype`` (not needed on macOS)
|
||||||
* ``fontconfig`` (not needed on macOS)
|
* ``fontconfig`` (not needed on macOS)
|
||||||
* ``libcanberra`` (not needed on macOS)
|
* ``libcanberra`` (not needed on macOS)
|
||||||
|
* ``libsystemd`` (optional, not needed on non systemd systems)
|
||||||
* ``ImageMagick`` (optional, needed to display uncommon image formats in the terminal)
|
* ``ImageMagick`` (optional, needed to display uncommon image formats in the terminal)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
* Distributed under terms of the GPL3 license.
|
* Distributed under terms of the GPL3 license.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include "data-types.h"
|
#include "data-types.h"
|
||||||
#include "cleanup.h"
|
#include "cleanup.h"
|
||||||
|
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -633,8 +633,9 @@ def kitty_env(args: Options) -> Env:
|
|||||||
platform_libs = []
|
platform_libs = []
|
||||||
with suppress(SystemExit, subprocess.CalledProcessError):
|
with suppress(SystemExit, subprocess.CalledProcessError):
|
||||||
cflags.extend(pkg_config('libsystemd', '--cflags-only-I', fatal=False))
|
cflags.extend(pkg_config('libsystemd', '--cflags-only-I', fatal=False))
|
||||||
has_systemd = 1
|
systemd_libs = pkg_config('libsystemd', '--libs')
|
||||||
platform_libs.extend(pkg_config('libsystemd', '--libs'))
|
platform_libs.extend(systemd_libs)
|
||||||
|
has_systemd = bool(systemd_libs)
|
||||||
cppflags.append(f'-DKITTY_HAS_SYSTEMD={has_systemd}')
|
cppflags.append(f'-DKITTY_HAS_SYSTEMD={has_systemd}')
|
||||||
cflags.extend(pkg_config('harfbuzz', '--cflags-only-I'))
|
cflags.extend(pkg_config('harfbuzz', '--cflags-only-I'))
|
||||||
platform_libs.extend(pkg_config('harfbuzz', '--libs'))
|
platform_libs.extend(pkg_config('harfbuzz', '--libs'))
|
||||||
|
|||||||
Reference in New Issue
Block a user