mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-03 06:07:20 +02:00

This reduces duplication of the split lock mitigation path. Additionally, it allows extending the functionality of procsysctl into also getting the split lock mitigation state.
41 lines
895 B
Meson
41 lines
895 B
Meson
# Convenience library for the duplicated logging functionality
|
|
common_sources = [
|
|
'common-logging.c',
|
|
'common-governors.c',
|
|
'common-profile.c',
|
|
'common-splitlock.c',
|
|
'common-external.c',
|
|
'common-helpers.c',
|
|
'common-gpu.c',
|
|
'common-cpu.c',
|
|
'common-pidfds.c',
|
|
'common-power.c',
|
|
]
|
|
|
|
daemon_common = static_library(
|
|
'daemon-common',
|
|
sources: common_sources,
|
|
install: false,
|
|
include_directories: [config_h_dir]
|
|
)
|
|
|
|
link_daemon_common = declare_dependency(
|
|
link_with: daemon_common,
|
|
include_directories: [include_directories('.')]
|
|
)
|
|
|
|
lib_common = static_library(
|
|
'lib-common',
|
|
sources: [
|
|
'common-helpers.c',
|
|
'common-pidfds.c'
|
|
],
|
|
install: false,
|
|
include_directories: [config_h_dir]
|
|
)
|
|
|
|
link_lib_common = declare_dependency(
|
|
link_with: lib_common,
|
|
include_directories: [include_directories('.')]
|
|
)
|