mirror of https://github.com/nirenjan/libx52.git
feat: Add Python paths module
This will be used in future commits to enable Python supportlipc-refactor
parent
3f4990de4d
commit
9aaec8b2f0
|
|
@ -102,6 +102,7 @@ dep_inih = dependency('inih')
|
||||||
includes = include_directories('include')
|
includes = include_directories('include')
|
||||||
|
|
||||||
subdir('include')
|
subdir('include')
|
||||||
|
subdir('python')
|
||||||
subdir('libx52')
|
subdir('libx52')
|
||||||
subdir('libx52io')
|
subdir('libx52io')
|
||||||
subdir('libx52util')
|
subdir('libx52util')
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Generate the paths module so that the Python scripts work
|
||||||
|
# exactly the same as the C code.
|
||||||
|
|
||||||
|
path_data = configuration_data()
|
||||||
|
path_data.set('PREFIX', get_option('prefix'))
|
||||||
|
path_data.set('SYSCONFDIR', get_option('prefix') / get_option('sysconfdir'))
|
||||||
|
path_data.set('LOCALSTATEDIR', get_option('prefix') / get_option('localstatedir'))
|
||||||
|
path_data.set('DATADIR', get_option('prefix') / get_option('datadir'))
|
||||||
|
path_data.set('SOCK_PATH', get_option('prefix') / get_option('localstatedir') / 'run' / 'x52d' / 'x52d.cmd')
|
||||||
|
|
||||||
|
path_data_py = configure_file(
|
||||||
|
input: 'paths.py.in',
|
||||||
|
output: 'paths.py',
|
||||||
|
configuration: path_data
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
"""System paths defined at build time"""
|
||||||
|
|
||||||
|
PREFIX = "@PREFIX@"
|
||||||
|
SYSCONFDIR = "@SYSCONFDIR@"
|
||||||
|
LOCALSTATEDIR = "@LOCALSTATEDIR@"
|
||||||
|
DATADIR = "@DATADIR@"
|
||||||
|
SOCK_PATH = "@SOCK_PATH@"
|
||||||
Loading…
Reference in New Issue